After finally having to tackle Solaris after so many years with i386 boxes, I was truly disappointed to find out that I was going to have build and repair software raids on all of the servers that I inherited.
Enter the T2000:
With these new T2000 servers, we can build a hardware raid and swap out disks without the painful work of unbuilding and rebuilding raids (and those ever-so-costly typo’s).
Building the hardware raid was actually quite simple. The OS was already preinstalled, so I was able to boot the server to single-user mode and issue the necessary commands from there. On the first machine, I booted single-user mode from the dvd. Later, I set up a network-installation server and was able to use ok> boot net -s to be able to boot the subsequent machines from the network. (This helped with the reinstall afterwards too).
Once I got a prompt it was easy.
SINGLE USER MODE
# raidctl
No RAID volumes found
# raidctl -c c0t0d0 c0t1d0 #(this was for a mirror)
you’d add a -r, I believe, if you wanted stripes instead.
This built a raid called c0t0d0 with sub-disks that can be swapped out in case of a failure. The OS will install and interact with c0t0d0.
After I ran the initial command, I could run raidctl to see what the status of my new mirror was:
# raidctl
RAID Volume RAID RAID Disk
Volume Type Status Disk Status
——————————————————
c0t0d0 IM RESYNCING c0t0d0 OK
c0t1d0 OK
When the sync finished, the raid looked like this:
# raidctl
RAID Volume RAID RAID Disk
Volume Type Status Disk Status
——————————————————
c0t0d0 IM OK c0t0d0 OK
c0t1d0 OK
Installing the raid killed everything on the disk, so I’m now performing another install … but at least now I’m doing it knowing that I don’t have to work thru the whole software raid process when I’m done
.
Ooooh … just figured this one out the hard way. Don’t forget to label your disk!
Once I finished installing the OS, I use the same command to see the status of my raid:
bash-3.00# raidctl
Controller: 0
Volume:c0t0d0
Disk: 0.0.0
Disk: 0.1.0