User Tools

Site Tools


lbaops:lbaobservingnotes:parkesclean

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lbaops:lbaobservingnotes:parkesclean [2009/07/03 14:52]
cehotan
lbaops:lbaobservingnotes:parkesclean [2015/12/18 16:38] (current)
Line 8: Line 8:
 - [[.:#redetect | Redetect]] devices to refresh the number of slices and disk size.\\ - [[.:#redetect | Redetect]] devices to refresh the number of slices and disk size.\\
 - Change the number of [[.:#reslice | slices ]] on a set of disks.\\ - Change the number of [[.:#reslice | slices ]] on a set of disks.\\
-- [[.:#rebuild | Rebuild]] a degraded array.\\ 
 - Put a new [[.:#repartition | partition]] or partition table on some disks (after reslicing, or because there was a problem).\\ - Put a new [[.:#repartition | partition]] or partition table on some disks (after reslicing, or because there was a problem).\\
 - [[.:#reformat | Reformat]] disks so they are clean for the upcoming run.\\ - [[.:#reformat | Reformat]] disks so they are clean for the upcoming run.\\
 +- [[.:#rebuild | Rebuild]] a degraded array.\\
 The most common, of course, is simply reformatting.\\ The most common, of course, is simply reformatting.\\
 \\ \\
Line 64: Line 64:
 We now have a freshly partitioned disk. Can check that did what you want by running ''parted'' and simply type the command ''print all'' - this shows all disks attached to the host. If that didn't work for some reason, try formatting manually using Parted. We now have a freshly partitioned disk. Can check that did what you want by running ''parted'' and simply type the command ''print all'' - this shows all disks attached to the host. If that didn't work for some reason, try formatting manually using Parted.
  
-''> parted /dev/sdc\\ +<code>> parted /dev/sdc 
-(parted) help'' [View the available commands]\\ +(parted) help</code> 
-''(parted) mklabel gpt ''[We'll make a GPT partition]\\ +%color=#006600%View the available commands.\\ 
-''(parted) mkpart primary 0 -0 '' [Make a primary partition that fills the whole disk]\\ +We'll make a GPT disk, with a primary partition that fills the whole disk.**\\ 
-''(parted) quit''\\+<code>(parted) mklabel gpt 
 +(parted) mkpart primary 0 -0 
 +(parted) quit</code>
 \\ \\
 As with any other hard disk, after partitioning the disk needs to be formatted.\\ As with any other hard disk, after partitioning the disk needs to be formatted.\\
Line 77: Line 79:
 Substitute appropriate machine numbers and device names below - check with Chris if you don't have the vlbi or root passwords.\\ Substitute appropriate machine numbers and device names below - check with Chris if you don't have the vlbi or root passwords.\\
 \\ \\
-''hostname> ssh vlbi@pkvsi1\\ +<code>hostname> ssh vlbi@pkvsi1 
-pkvsi1:~> su -\\ +pkvsi1:~> su - 
-Password:   ''                 [Root password for vsi machines]\\ +Password:   </code> 
-''pkvsi1:~# df -h    ''          [Check if the disks are currently mounted - must unmount to format]\\ +%color=#006600%Root password for vsi machines.\\ 
-''Filesystem            Size  Used Avail Use% Mounted on\\ +Check if the disks are currently mounted - must unmount to format.**\\ 
-/dev/sda1             9.2G  7.8G 1007M  89% /\\ +<code>pkvsi1:~# df -h 
-tmpfs                 764M      764M   0% /lib/init/rw\\ +Filesystem            Size  Used Avail Use% Mounted on 
-udev                   10M  112K  9.9M   2% /dev\\ +/dev/sda1             9.2G  7.8G 1007M  89% / 
-tmpfs                 764M      764M   0% /dev/shm\\ +tmpfs                 764M      764M   0% /lib/init/rw 
-/dev/md1              723G  112G  612G  16% /data/internal\\ +udev                   10M  112K  9.9M   2% /dev 
-/dev/md0              1.6T  1.2T  437G  73% /data/removable\\ +tmpfs                 764M      764M   0% /dev/shm 
-/dev/sdc1             2.7T  202M  2.7T   1% /data/xraid0       ''    [Make note of device names - /dev/sdc1 is /data/xraid0]\\ +/dev/md1              723G  112G  612G  16% /data/internal 
-''/dev/sdd1             2.7T  202M  2.7T   1% /data/xraid1\\ +/dev/md0              1.6T  1.2T  437G  73% /data/removable 
-pkvsi1:~umount /data/xraid0\\ +/dev/sdc1             2.7T  202M  2.7T   1% /data/xraid0 
-pkvsi1:~# e2label /dev/sdc1  ''   [Check that the disk sets already contain labels (which ideally should be correct, you can check that they are during formatting and change afterward with ''e2label'' if necessary]\\ +/dev/sdd1             2.7T  202M  2.7T   1% /data/xraid1</code> 
-''ATNF V017A\\ +%color=#006600%Make note of device names - /dev/sdc1 is /data/xraid0.**\\ 
-pkvsi1:~# formatdisk.pl /dev/sdc1''  [Run the formatting script for VLBI disks]\\ +<code>pkvsi1:~# umount /data/xraid0</code> 
-''pkvsi1:/~# mount /dev/sdc1 /data/xraid0 ''        [Mount the disk so that you can access it again]\\+%color=#006600%Check that the disk sets already contain labels (which ideally should be correct, you can check that they are during formatting and change afterward with ''e2label'' if necessary.**\\ 
 +<code>pkvsi1:~# e2label /dev/sdc1 
 +ATNF V017A </code> 
 +%color=#006600%Run the formatting script for VLBI disks**\\ 
 +<code>pkvsi1:~# formatdisk.pl /dev/sdc1 
 +pkvsi1:/~# mount /dev/sdc1 /data/xraid0 </code> 
 +%color=#006600%Mount the disk so that you can access it again**\\
 \\ \\
 If the script doesn't work for some reason, the manual command is this:\\ If the script doesn't work for some reason, the manual command is this:\\
Line 100: Line 108:
 ''followed by mounting the disks and running ''chown vlbi:vlbi /dev/sdc1'' - This means we use ext2 format, but the -j means Journalling, so it's actually ext3 format. This isn't the most efficient format, but the journalling is good if accidents happen with disk removal! -m 0 means don't reserve space for root, and -L allows us to specify the disk volume label, and we want the disks to be owned by the group VLBI.\\ ''followed by mounting the disks and running ''chown vlbi:vlbi /dev/sdc1'' - This means we use ext2 format, but the -j means Journalling, so it's actually ext3 format. This isn't the most efficient format, but the journalling is good if accidents happen with disk removal! -m 0 means don't reserve space for root, and -L allows us to specify the disk volume label, and we want the disks to be owned by the group VLBI.\\
 \\ \\
-Repeat for as many disk sets as necessary - can do up to 4 at a time with two chassis (two on pkvsi1 and two on pkvsi2). When all 4 are done (or as many as necessary), run 'df -h' again to check that your devices are mounted, are ~2.7TB and have ~202MB / 1% used, the rest available.\\+Repeat for as many disk sets as necessary - can do up to 4 at a time with two chassis (two on pkvsi1 and two on pkvsi2). When all 4 are done (or as many as necessary), run '''df -h''' again to check that your devices are mounted, are ~2.7TB and have ~202MB / 1% used, the rest available.\\
 \\ \\
 [[.:#rebuild]] [[.:#rebuild]]
lbaops/lbaobservingnotes/parkesclean.1246596744.txt.gz · Last modified: 2015/12/18 16:38 (external edit)