1753948 Members
7324 Online
108811 Solutions
New Discussion

adding PVs to mirror

 
pbraun
Advisor

adding PVs to mirror

Hi,

On an rx2660 Integrity, HP/UX 11.23, I've got two disks for vg00 and mirrored LVs on it. Two other disks are providing another mirror on vg01. I'm adding four disks in view to extend those filesystems :
- /opt on vg00
- /home on vg00
- / on vg00 (don't sure I'll grow that one... see below)
- /somedir on vg01

Since it's an rx2660 I guess hardware RAID was an option, but the system is already in production and I'll let the new disks without hw raid to keep the whole config consistent.

How to add new PVs to that configuration ? As far as I know I need to keep "/" contiguous on vg00, which implies moving the next LV. I guess I'll also need to create partitions on the new disks, copy EFI on it and lvlnboot -r once the "/" filesystem has growed right ?

Now let's just forget the "/" issue. Growing "/opt" "/home" and "/somedir" may be sufficient. In that case may I just use the new disks as PVs w/o creating partitions (idisk) ?

Here's the procedure I imagine, w/o growing "/". Do you think it will work ? Won't it break anything preventing the system to restart ?

Adding new disks 5 and 6 to vg00,
pvcreate /dev/rdsk/c3t4d0
pvcreate /dev/rdsk/c3t5d0
vgextend vg00 /dev/dsk/c3t4d0
vgextend vg00 /dev/dsk/c3t5d0

Adding disks 7 and 8 to vg01,
pvcreate /dev/rdsk/c3t6d0
pvcreate /dev/rdsk/c3t7d0
vgextend vg01 /dev/dsk/c3t6d0
vgextend vg01 /dev/dsk/c3t7d0

Moving wanted volumes to the new disks,
pvmove -n /dev/vg00/lvol5 /dev/dsk/c3t4d0
pvmove -n /dev/vg00/lvol6 /dev/dsk/c3t4d0
pvmove -n /dev/vg01/lvol1 /dev/dsk/c3t6d0
Note. first new disk of vg00 for /home and /opt
Note. first new disk of vg01 for /somedir

Extending LVs,
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol5
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg00/lvol6
lvextend -L NOUVELLE_TAILLE_MEGA /dev/vg01/lvol1

Growing the filesystems,
fsadm -b NOUVELLE_TAILL_BYTES /home
fsadm -b NOUVELLE_TAILL_BYTES /opt
fsadm -b NOUVELLE_TAILL_BYTES /var/opt/oradata
Note. I need to check OnlineJFS is available

Making mirrors for moved LVs,
lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t5d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c3t7d0

Won't that break anything ?

Thanks
-Pierre-Philipp
1 REPLY 1
pbraun
Advisor

Re: adding PVs to mirror

It worked, I just had to disable (-m 0) the existing mirrors before moving their PEs. In brief, it's possible to move non boot/root/dump/swap LVs on other disks without troubles.