Gaining console access (i.e. telnet/ssh)
The TS Live comes with an already "open" firmware. As from nas-central.org, the only thing needed to allow telnet/ssh access is to use acp_commander.
Detailed instructions here on nas-central.org.
Adding a bootstrap loader/installer
Instructions on this post on nas-central.org
Basically, after gaining telnet/ssh access, create a directrory on the RAID array to store optware feeds, get and run the bootstrap loader, and you're done!
mkdir /mnt/array1/tmp
cd /mnt/array1/tmp
wget http://ipkg.nslu2-linux.org/feeds/optware/cs05q3armel/cross/stable/teraprov2-bootstrap_1.1-1_arm.xsh
sh teraprov2-bootstrap_1.1-1_arm.xsh
Warning!
Check /etc/init.d/rc.optware and look if /mnt/array1/.optware is mounted. In ny case the rc.optware script was wrong, since defined /mnt/disk1/.optware as volume to mount. That path doesn't exist, and as a result I had the RAM filesystem mounted as /opt, which is a bad thing, since it gets full in a cinch!
Once the bootstrap is installed:
- /dev/md2 (the first or unique RAID volume) is also mounted as /opt.
- in /opt several folders are created
- ipkg is installed in /opt/bin/ipkg and the config file with the selected feeds is in /opt/etc/ipkg.conf
- PATH is modified into PATH=/opt/bin:/opt/sbin:$PATH so one can use the binaries installed via ipkg as if they were normally installed.
- /etc/init.d/rcS is modified appending at the end
# Optware setup
[ -x /etc/init.d/rc.optware ] && /etc/init.d/rc.optware start
After the installation, reconnect to make sure the new $PATH is working.
Now it is possible to use ipkg the standard way, to both update the packages list and install packages:
ipkg update
ipkg upgrade
ipkg install <appname>
Cannot login via web interface
This link says that this happens either because /etc/melco/userinfo is missing or empty...
That file should at the base minimum contain the following lines:
admin<>Built-in account for administering the system;
guest<>Built-in account for guest access to the system;
Note that I've still never tested it, just placed here for reference...
Replacing hard disks
In the end, 4x500 GB can be a tight space, espacially if storing backups.
Looking for supported 2TB SATA 3.5" drives, I found:
on rebuilding the RAID array
Buffalo Technology forum
Replacing disks under RAID5, on nas-central.org
Exploiting md recovering and growing capabilities, on nas-central.org.
My recipe
The TS Live has been reconfigured out of the box to use the four 500 GB drives as two RAID1 separate volumes.
That is, the drives and partition situation goes like this:
| drive # | blocks | device | system |
| 1 | 297171 | /dev/sda1 | 83 Linux |
| 1 | 498015 | /dev/sda2 | 83 Linux |
| 1 | 487588815 | /dev/sda4 | 5 Extended |
| 1 | 136521 | /dev/sda5 | 82 Linux swap |
| 1 | 487315678+ | /dev/sda6 | 83 Linux |
| 2 | 297171 | /dev/sdb1 | 83 Linux |
| 2 | 498015 | /dev/sdb2 | 83 Linux |
| 2 | 487588815 | /dev/sdb4 | 5 Extended |
| 2 | 136521 | /dev/sdb5 | 82 Linux swap |
| 2 | 487315678+ | /dev/sdb6 | 83 Linux |
| 3 | 297171 | /dev/sdc1 | 83 Linux |
| 3 | 498015 | /dev/sdc2 | 83 Linux |
| 3 | 487588815 | /dev/sdc4 | 5 Extended |
| 3 | 136521 | /dev/sdc5 | 82 Linux swap |
| 3 | 487315678+ | /dev/sdc6 | 83 Linux |
| 4 | 297171 | /dev/sdd1 | 83 Linux |
| 4 | 498015 | /dev/sdd2 | 83 Linux |
| 4 | 487588815 | /dev/sdd4 | 5 Extended |
| 4 | 136521 | /dev/sdd5 | 82 Linux swap |
| 4 | 487315678+ | /dev/sdd6 | 83 Linux |
As in the procedure on
nas-central.org, the TS Live has been stopped, and drive #4 has been replaced with a WD20EARS 2.0 TB Caviar Green. Restarted and re-synced RAID1 array ("Rearing", via web interface).
After that (three hours), stopped again and replaced drive #3 with a second WD20EARS, restart and resync.
The partition table for /dev/sdc and /dev/sdd now looks like that:
| drive # | blocks | device | system |
| 3 | 297171 | /dev/sdc1 | 83 Linux |
| 3 | 498015 | /dev/sdc2 | 83 Linux |
| 3 | 1952716815 | /dev/sdc4 | 5 Extended |
| 3 | 136521 | /dev/sdc5 | 82 Linux swap |
| 3 | 1 | /dev/sdc6 | 83 Linux |
| 4 | 297171 | /dev/sdd1 | 83 Linux |
| 4 | 498015 | /dev/sdd2 | 83 Linux |
| 4 | 487588815 | /dev/sdd4 | 5 Extended |
| 4 | 136521 | /dev/sdd5 | 82 Linux swap |
| 4 | 487315678+ | /dev/sdd6 | 83 Linux |
So far, so good. Last two steps now:
first, grow the md array to the maximum available size:
mdadm --grow /dev/md3 -z max
on a 2 TB volume, this takes about 20 hours...
next, grow the
xfs with
the
xfs file system can be "grown" while
mdadm --grow is still running.
Note that, differently from what suggested on the procedure I used as reference on nas-central.org, letting the web interface rebuild (i.e. "rear") the array was not only harmless, but worked as expected, perhaps a tad slower.