HP-UX HB v13.00 Ch-04 - System Recovery

HP-UX Handbook Rev 13.00 Page 30 (of 54)
Chapter 04 System Recovery
October 29, 2013
Co-Procedure: Mounting Volumes of an Imported Root VG
If you need to access the file systems of your root VG you may check and mount them now.
In our example we assume a separate HFS boot volume /stand while all other volumes are
VxFS.
1. Import the root VG (see Co-Procedure).
2. Load mount and fsck commands if needed.
# loadfile /sbin/fs/hfs/mount /sbin/fs/hfs/fsck
# loadfile /sbin/fs/vxfs/mount /sbin/fs/vxfs/fsck
3. Check the file systems using the appropriate fsck(1M) command.
# /sbin/fs/hfs/fsck /dev/vg00/rlvol1
** /dev/vg00/rlvol1
** Last Mounted on /stand
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
63 files, 0 icont, 74047 used, 54185 free (97 frags, 6761 blocks)
# /sbin/fs/vxfs/fsck -o full /dev/vg00/rlvol3
log replay in progress
pass0 - checking structural files
pass1 - checking inode sanity and blocks
pass2 - checking directory linkage
pass3 - checking reference counts
pass4 - checking resource maps
OK to clear log? (ynq)y
set state to CLEAN? (ynq)y
Repeat that check for all remaining volumes.
4. Mount the file systems under /ROOT. Please note that your numbering of the logical
volumes may differ from our example!
# mkdir /ROOT
# /sbin/fs/vxfs/mount /dev/vg00/lvol3 /ROOT
# /sbin/fs/hfs/mount /dev/vg00/lvol1 /ROOT/stand
# /sbin/fs/vxfs/mount /dev/vg00/lvol4 /ROOT/opt
# /sbin/fs/vxfs/mount /dev/vg00/lvol5 /ROOT/tmp
# /sbin/fs/vxfs/mount /dev/vg00/lvol6 /ROOT/usr
# /sbin/fs/vxfs/mount /dev/vg00/lvol7 /ROOT/home
# /sbin/fs/vxfs/mount /dev/vg00/lvol8 /ROOT/var
5. /ROOT should now represent your original file system layout. you should confirm that the
logical volumes are mounted to the correct mount points. Then, you may chroot(1M) into
/ROOT if needed.
# loadfile chroot