User Tools

Site Tools


correlator:loaddisks

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
correlator:loaddisks [2008/12/16 18:40]
chotan load/unload procedures when using NFS exports
correlator:loaddisks [2014/03/26 19:31] (current)
hbignall
Line 1: Line 1:
 ====== How to load XRAID disk sets ====== ====== How to load XRAID disk sets ======
  
 +  * **Note:** as we seldom (never?) use NFS mounting now, it is usually OK to simply unmount the Xraids, power off, change disks, power on and mount the new disks. Otherwise, the following instructions may be useful.
   * Ensure no one has left open files on the disks: Run ''​lsof''​ in the directories where the data is located.   * Ensure no one has left open files on the disks: Run ''​lsof''​ in the directories where the data is located.
   * You may also want to see whether anyone is using the machine. Use the "​w"​ command.   * You may also want to see whether anyone is using the machine. Use the "​w"​ command.
Line 37: Line 38:
  
 <​code>​ <​code>​
-> sudo mount /exports/xraid/?_?+> sudo mount /exports/xraid0X/?_?
 </​code> ​ </​code> ​
  
Line 47: Line 48:
 > sudo /​etc/​init.d/​nfs-kernel-server reload > sudo /​etc/​init.d/​nfs-kernel-server reload
 </​code>​ </​code>​
-and on each node where you need to use these data, mount the device over NFS (also see below, though it may be out of date)+and on each node where you need to use these data, mount the device over NFS
 <​code>​ <​code>​
 > mount /​nfs/​xraid0?/?​_?​ > mount /​nfs/​xraid0?/?​_?​
Line 53: Line 54:
 (Note that sudo access is not required for this). (Note that sudo access is not required for this).
  
- +**Tip:** parallel-ssh ​is useful for NFS mounting ​on multiple nodes
-====== NFS mounting ====== +
- +
-**Note** This is not recommended now. The correlator will start datastream processes on the correct local host node provided this is specified in the corresponding line of the machines file (this was apparently not always the case in the past). +
- +
-  * It is now possible to mount the Xraids over nfs as any user, with e.g. ''​mount /​nfs/​xraid01/​l_1''​. To make life easier, there are shell scripts to do it in /​home/​corr/​LBA/​scripts/​ mountxraids.sh and unmountxraids.sh +
-  * On cuppa01, type ''​cssh cuppa''​ to get a multi-window command prompt, so the scripts can be run simultaneously on all cuppas. +
-  * To change disks, after unmounting from NFS, it seems to be necessary to restart the nfs server on the local host node:  +
- +
-<​code>​sudo /​etc/​init.d/​nfs-kernel-server restart</​code>​ +
- +
-in order to  +
- +
-<​code>​umount /​exports/​xraid01/​l_1</​code>​  +
- +
-etc. without getting "​device busy" errors. Be a bit careful doing this... try to check that no one is running stuff first. If other people are logged ​on may get stale file handle problems. +
 \\ \\
  
 [[xraid|Back to XRAID menu]] [[xraid|Back to XRAID menu]]
  
correlator/loaddisks.1229413215.txt.gz · Last modified: 2008/12/16 18:40 by chotan