Operating System - HP-UX
1826631 Members
3839 Online
109695 Solutions
New Discussion

Re: Can't un-mirror a disk

 
SOLVED
Go to solution
Dario_1
Trusted Contributor

Can't un-mirror a disk

How can I un-mirror the root disk. vgreduce -m is complaining about an illegal option. HP-UX 11.11.

Thank you for your help.
7 REPLIES 7
John Poff
Honored Contributor
Solution

Re: Can't un-mirror a disk

Hi,

Maybe you meant to try 'lvreduce -m' ?

JP
James R. Ferguson
Acclaimed Contributor

Re: Can't un-mirror a disk

Hi:

# lvreduce -m 0 /dev/vg00/lvolX

...for each logical volume that is mirrored.

Regards!

...JRF...
James R. Ferguson
Acclaimed Contributor

Re: Can't un-mirror a disk

Hi (again):

...since you probably should specify which disk (that's best), do:

# lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/cXtYdZ

...JRF...

Re: Can't un-mirror a disk


hi,

Assuming you have only one mirror volume and your disk is /dev/dsk/c2t6d0

for LVOL in /dev/vg00/lv*
> do
> echo $LVOL
> lvreduce -m 0 $LVOL
> vgreduce /dev/vg00 /dev/dsk/c2t6d0
> done


Sekar
Marco Santerre
Honored Contributor

Re: Can't un-mirror a disk

Unfortunately, the mirrors are done at the Logical Volume level, so that's why you'd have to use the lvreduce -m 0 instead of vgreduce -m 0
Cooperation is doing with a smile what you have to do anyhow.
Michael Steele_2
Honored Contributor

Re: Can't un-mirror a disk

And if this fails the please provide the exact error message. Thanks!
Support Fatherhood - Stop Family Law
Dario_1
Trusted Contributor

Re: Can't un-mirror a disk

Thank you. It got confused with the command.