Operating System - HP-UX
1834599 Members
3850 Online
110069 Solutions
New Discussion

after redecing mirror disk

 
???_185
Regular Advisor

after redecing mirror disk

for patch test, I reduced mirror disk like this.

# vgdisplay –v /dev/vg01 로 확인
# strings /etc/lvmtab
# lvreduce –m /dev/vg01/lvol1 /dev/dsk/c0t6d0
# lvreduce –m /dev/vg01/lvol2 /dev/dsk/c0t6d0
# vgreduce /dev/vg01 /dev/dsk/c0t6d0
# strings /etc/lvmtab으로 확인
# lvdisplay –v /dev/vg01/lvol1로 확인
# lvdisplay –v /dev/vg01/lvol2로 확인

and how should I sync with original disk?
2 REPLIES 2
Luk Vandenbussche
Honored Contributor

Re: after redecing mirror disk

pvcreate -f /dev/rdsk/c0t6d0
vgextend vg01 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg01/lvol1
lvextend -m 1 /dev/vg01/lvol2
Adisuria Wangsadinata_1
Honored Contributor

Re: after redecing mirror disk

Hi,

To sync with original disk, just follow the steps below :

# vgextend /dev/vg01 /dev/dsk/c0t6d0

If the command above not work, you need to create a physical volume first before vgextend :

# pvcreate -f /dev/rdsk/c0t6d0

After that do re-mirror again :

# lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t6d0
# lvextend -m 1 /dev/vg01/lvol2 /dev/dsk/c0t6d0

Check the mirror :

# lvdisplay -v /dev/vg01/lvol1
# lvdisplay -v /dev/vg01/lvol2

For details of the commands, check the man page of the command :

# man pvcreate
# man vgextend
# man lvextend

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix