In the existing setup the current root disk is /dev/dsk/c1t1di and the new disk to which the mirror has to be extended is /dev/dsk/c0t0d0.
#ioscan – to scan the new disk say new disk is /dev/rdsk/c0t0d0
#diskinfo –b /dev/rdsk/c0t0d0 | awk ‘{print $1/1024/1024}’ – shows the new disk size in GB
The new disk should be equal to or greater than in Size than existing root disk that is to be mirrored. The existing root disk is say /dev/dsk/c1t1td1
See the sizes of the 3 partitions on the existing disk c1t1d1 in MB
#diskinfo –b /dev/rdsk/ct1t1d1s1 | awk ‘{print $1/1024}’
#diskinfo –b /dev/rdsk/ct1t1d1s2 | awk ‘{print $1/1024}’
#diskinfo –b /dev/rdsk/ct1t1d1s3 | awk ‘{print $1/1024}’
Let s1 size be 400MB and s3 Size be 500MB
Create the /tmp/pdf file like this in vi editor and save and exit.
3
EFI 400MB
HPUX 100%
HPSP 500MB
Write the partition information to the new disk
#idisk –wf /tmp/pdf /dev/rdsk/c0t0d0 – to create the partitions on the new disk
#insf –e –H< hardware_path_of_new_disk> : install DSF for the new partitions
#ioscan –H< hardware_path_of_new_disk> -- confirm that all the 3 partitions are created as /dev/[r]dsk/c1t1d1s1(EFI), /dev/[r]dsk/c1t1d1s2 (HPUX), /dev/[r]dsk/c1t1d1s3 (HPSP)
#mkboot –e –l /dev/rdsk/c1t1td1 : This formats the EFI partition and populates with the EFI Utilities on it
Create a temp file called /tmp/auto with the contents in a single line such that
#cat /tmp/auto – shows “boot vmunix –lq”
Put the /tmp/auto file to new disk in EFI partition
#efi_cp –d /dev/rdsk/c1t1d1s1 /tmp/auto /efi/hpux/auto
Pvcreate on the S2 to assign that as bootable LVM PV
#pvcreate –B /dev/rdsk/c1t1d1s2
Extend the root VG to include the /dev/dsk/c1t1d1s2
#vgextend /dev/vg00 /dev/dsk/c1t1d1s2
Mirror all the LVs on existing root disk to the new disk s2 partition
#for i in 0 1 2 3 4 5 6 7 8 9
>do
>lvextend –m 1 $i /dev/dsk/c1t1d1s2
>done
Edit the /stand/bootconf file to include the definition of new Boot LV: append a line like below to the file and save and exit
“l /dev/dsk/c1t1d1s2”
The above statement has first character as small L and not number 1 (one)
Update the LVM Boot information
#lvlnboot –vR
Confirm the LVM boot information is updated
#lvlnboot –v
Confirm that there are no stale extents in the rootvg
#for i in 1 2 3 4 5 6 7 8 9
>do
>lvdisplay –v $i | grep –i stale | wc –l
>done
All Reading should be zero.
No comments:
Post a Comment