PRIMECLUSTER Global File Services Configuration and Administration Guide 4.2 (Solaris(TM) Operating Environment) |
Contents Index |
Part 3 Global File Services Shared File System | > Chapter 15 File System Design | > 15.2 System Design |
Make /var file system in all nodes which use the GFS Shared File System when using of 11 GFS Shared File Systems or more. And, store it on the local disk device besides the local disk device where the root file system is stored.
Otherwise, the MDS failure recovery done with the node down, the node stop, and the unmount might fail, and the GFS Shared File System is blockaded.
The following steps provide the sample procedure to divide /var to another local disk device.
1. Become super user.
% su
2. Bring the system to single-user mode.
# shutdown -g0 -y
3. Create new file system for /var with newfs(1M) on the another local disk device, and mount as /newvar.
# newfs /dev/sfdsk/classXX/rdsk/volumeXX # mount -F ufs /dev/sfdsk/classXX/dsk/volumeXX /newvar
4. Copy files from /var to /newvar with ufsdump(1M) and ufsrestore(1M).
# ufsdump 0cf - /var | (cd /newvar ; ufsrestore xf - ) : DUMP: Mapping (Pass I) [regular files] DUMP: Mapping (Pass II) [directories] DUMP: Writing 63 Kilobyte records DUMP: Estimated 6928072 blocks (3382.85MB). DUMP: Dumping (Pass III) [directories] DUMP: Dumping (Pass IV) [regular files] DUMP: 63.78% done, finished in 0:05 DUMP: 6927982 blocks (3382.80MB) on 1 volume at 3740 KB/sec DUMP: DUMP IS DONE set owner/mode for '.'? [yn] y
5. Move and delete files under /var directory.
# mv /newvar/var/* /newvar/. # rmdir /newvar/var # rm -rf /var/*
6. Mount point definition of /var file system is added to a /etc/vfstab file with the vi(1).
The added entry example is shown as follows.
/dev/sfdsk/classXX/dsk/volumeXX /dev/sfdsk/classXX/rdsk/volumeXX /var ufs 1 no -
7. Reboot system.
# shutdown -y -i6 -g0
See "System Administrator Guide" in Solaris X System Administrator Collection for more information about file copy.
Contents Index |