If you ever need to create a RAID from scratch, either because too many disks have failed in an old set, or because you have a nice shiny new set of disks, budget a bit of time for it!
vncserver -geometry 1024×768or just
vncserverif the command has been run before but the node has since been restarted.
> java -jar RAID_Admin.jar
/nfs/apps/vlbi/RAID_Admin_151) check that all disks are available (click on each disk, and Make Available using Disk Utilities if necessary).
You'll need a password at some point. Ask Aidan or Claire if you don't know it.
Also, these images are huge. If anyone knows how to rescale images, please do!! :)
While building, you can Slice the disks. A “slice” is like a hardware partition. In VLBI we used to use 2 slices on 500GB disk sets, 3 slices on
750GB disk sets, creating slices of approximately 1.4TB (the XRAID admin tools will give you a size estimate of the whole array, I assume you can divide by
2 or 3!). However with newer kernels we're now able to work with devices larger than 2TB, so we no longer slice our disks (giving us 3TB for 500GB sets, and
4.5TB for 750GB sets).
Once the RAID is built, you still need to partition and format the slices before they can be used. Each slice is seen on the computer as a separate device (ie 1.5TB hard disk, effectively). If you are unslicing a previously used VLBI disk, this still needs to be done as the computer will otherwise only see 1 1.5TB partition, and it won't have a valid partition table.
sshto the computer to which the XRAID is attached.
kill -9on the process ID (find it using
sudo fdisk -l
This will give you a list of available devices. XRAID devices will likely
show up as sdc, sdd, through sdh. You can tell which is which by looking at the links in /dev/disk/by-label.
Failing all else, do
sudo shutdown -r now
(or -r 1m etc). This solves most problems except where someone else is using the computer at the time! Always check first!
sudo /nfs/apps/vlbi/partitiondisk.pl /dev/sdX
and check that it did what you wanted with
sudo parted /dev/sdX
sudo parted and
sudo fdisk -lagain to make sure you now have devices sdc1, sdd1 etc which are the appropriate sizes (will give silly numbers if >2TB).
mkfs.xfs -f -l size=64m -L "ATNF V006B" /dev/sdc1
as appropriate, and for optimised performance, mount using
mount -o noatime,nodiratime,logbufs=8 /dev/sdc1 /exports/xraid01/l_1
fstab to remember these options if required.