17. Replacing a boot disk and keeping the old info The easy way is to use Ignite/UX, but if you don't have that: Manual procedure: 1. Find an available Volume Group number: # ll /dev/*/group crw-r----- ... 64 0x000000 Oct 8 1996 /dev/vg00/group crw-rw-rw- ... 64 0x010000 Oct 30 1996 /dev/vg01/group crw-r--r-- ... 64 0x020000 Oct 30 1996 /dev/vg02/group crw-r--r-- ... 64 0x020000 Oct 30 1996 /dev/vgtest/group the two hex digits after the "0x" are the VG number, 00,01,02 in the above listing from my system, so "03" would be the logical choice. 2. Create a new VG a. mkdir /dev/vgboot b. mknod /dev/vgboot/group c 64 0x030000 Note the new VG number! c. pvcreate -B /dev/rdsk/cItTd0 Make LVM disk and reserve boot area d. vgcreate vgboot /dev/dsk/cItTd0 3. Put LIF boot stuff and AUTO boot string on it. a. mkboot /dev/rdsk/cItTd0 b. copy any other LIF stuff for f in `lifls /dev/rdsk/c0t6d0` ; do lifcp /dev/rdsk/c0t6d0:$f /dev/rdsk/cItTd0:$f ; done (assuming that your current boot disk is /dev/rdsk/c0t6d0) c. mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/cItTd0 4. Create your logical volumes on the new disk that correspond to the LVs on the current root disk: lvcreate -l 40 -n stand -r n -C y /dev/vgboot lvcreate -l 300 -n swap -r n -C y /dev/vgboot lvcreate -l 48 -n root -r n -C y /dev/vgboot (note the contiguous allocation and no BAD-block-relocate) lvcreate -l 400 -n usr /dev/vgboot lvcreate -l 100 -n tmp /dev/vgboot lvcreate -l 200 -n opt /dev/vgboot etc..... You can take this opportunity to adjust the sizes as you wish. 5. Create filesystems on the new LVs created in 3., above newfs -F hfs /dev/vgboot/rstand newfs -F vxfs /dev/vgboot/rroot newfs -F vxfs /dev/vgboot/rusr newfs -F vxfs /dev/vgboot/rtmp etc.... Note: here, that you have the opportunity to make root and the other "system" filesystems JFS (Journaled FS), which is highly recommended. /stand must remain HFS 6. mount the new filesystems into temporary directories a. mkdir /tmp_mnt mkdir /tmp_mnt/root mkdir /tmp_mnt/usr mkdir /tmp_mnt/tmp ... b. mount /dev/vgboot/root /tmp_mnt/root mount /dev/vgboot/usr /tmp_mnt/usr mount /dev/vgboot/usr /tmp_mnt/tmp ... c. Set permissions on the root directory of each filesystem the same as is currently set: chmod 755 /tmp_mnt/root ( or whatever chmod 555 /tmp_mnt/usr you currently have) *** chmod 777 /tmp_mnt/tmp ... ****************************************** NOTE : You probably will not be copying /tmp, BUT BE SURE TO MAKE IT WORLD WRITABLE : # chmod 777 /tmp_mnt/tmp ****************************************** 7. now copy the filesystems: a. use 'cpio' on root filesystem: cd / ; find . -xdev -hidden | cpio -pdmux /tmp_mnt/root b. I prefer fbackup for the others (it gets ACLs): (cd /; fbackup -i stand -f -) | (cd /tmp_mnt; frecover -r -f -) (cd /; fbackup -i var -f -) | (cd /tmp_mnt; frecover -r -f -) etc..... 8. update BDRA for vgboot PVs: a. lvlnboot -r /dev/vgboot/root /dev/vgboot lvlnboot -b /dev/vgboot/stand /dev/vgboot lvlnboot -s /dev/vgboot/swap /dev/vgboot b. Check config: lvlnboot -v vgboot Boot Definitions for Volume Group /dev/vgboot: Physical Volumes belonging in Root Volume Group: /dev/dsk/cItTd0 -- Boot Disk Root: root on: /dev/dsk/cItTd0 Swap: swap on: /dev/dsk/cItTd0 No Dump Logical Volume configured 9. Update the fstab file on the new root filesystem to reflect the new logical volume names, particularly the VG portion thereof: vi /tmp_mnt/root/etc/fstab /dev/vgboot/stand /stand hfs defaults 0 1 /dev/vgboot/swap ... swap pri=1 0 2 /dev/vgboot/root / vxfs rw,suid,delaylog,datainlog 0 2 /dev/vgboot/usr /usr vxfs rw,suid,delaylog,datainlog 0 2 ... 10. Boot off the new disk to see if it works !!!! You'll have to interrupt the boot process and specify the path to the new disk as the boot device.