TITLE : Instructions for deleting and re-creating /var OS LEVEL : AIX 3.2.5 DATE : 15/02/99 VERSION : 1.0 ---------------------------------------------------------------------------- 1, Create a mksysb tape 2, Backup /var onto another tape using tar -cvf /dev/rmt0 /var/* 3, Insert mksysb tape into tape drive, put the key switch into service mode, and reboot the system using shutdown -Fr 4, Press 1 and return at the prompt to define the system console 5, Press 4 and return at the prompt to start a limited maintenance shell 6, At the shell prompt import rootvg from hdisk0 using getrootfs hdisk0 7, Check that /var is mounted using df 8, Unmount the /var filesystem using umount /var 9, Remove the /var filesystem and logical volume using rmfs /var 10, Write to disk and reboot using sync;sync;sync;reboot Ensure that the mksysb tape is still in the tape drive and the key is still set to service mode. 11, Press 1 and return at the prompt to define the system console 12, Press 4 and return at the prompt to start a limited maintenance shell 13, At the shell prompt import rootvg from hdisk0 using getrootfs hdisk0 14, Check that /var has been removed using df 15, Create a new logical volume using mklv rootvg 4 hdisk0 16, Rename the new logical volume to hd9var using chlv -n hd9var lv?? 17, Create a filesystem on the new logical volume using crfs -v jfs -d hd9var -m /var -A yes -a check=false -a free=false -a vol=/var This should report :- New file system size is 32768 18, Mount the new filesystem using /var 19, Change the permissions of the new filesystem using chmod 755 /var chown bin /var chgrp bin /var 20, Restore the /var filesytem from tape using chdev -l rmt0 -a block_size=0 tar -xvf /dev/rmt0 21, Write to disk and reboot using sync;sync;sync;reboot