Operating System - HP-UX
1751738 Members
5643 Online
108781 Solutions
New Discussion юеВ

Re: mirroring logical volume

 
bitou
Frequent Advisor

mirroring logical volume

hi,
i have created a logical volume lvol11 and i forget to choose the mirroring option from sam. in addition the logical volume is mounted in /test
my question is how i can mirroring the logical volume?,plz provide me the steps by details.
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: mirroring logical volume

Hi:

You can simply mirror your logical volume now. This is often done when filesystems are mounted and in-use. Simply do:

# lvextend -m 1 /dev/vgNN/lvol11

...or if you want to target a particular disk:

# lvextend -m 1 /dev/vgNN/lvol11 /dev/dsk/cXtYdZ

Regards!

...JRF...
bitou
Frequent Advisor

Re: mirroring logical volume

Hi:
thanks for yr reply, but i have mirroring the boot disk, what is prefered to do?
# lvextend -m 1 /dev/vg00/lvol11


# lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/cxtYdZ

bitou
James R. Ferguson
Acclaimed Contributor

Re: mirroring logical volume

Hi (again):

> but i have mirroring the boot disk, what is preferred to do?

In my opinion it never hurts to be explicit.

# lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/cxtYdZ

...where 'cXtYdz' is the disk on which you want to create the mirror.

Regards!

...JRF...

Ismail Azad
Esteemed Contributor

Re: mirroring logical volume

Hi,

As JRF has rightly mentioned, it doesn't hurt to be "specific" but just in case you have only one boot disk and that contains all your essential O.S lvols and one extra P.V in that V.G and you have the default allocation policy... there is pretty much only one place that lvol go. However, it is always best to have less than three disks in your root volume group.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
P Arumugavel
Respected Contributor

Re: mirroring logical volume

Hi,

Logical volumes in root VG has been allocated with strict policy. Strict policy will not allow to sit the mirror extents on the same disk. If you have more than 2 disk in your VG, then specify the pv path, else you can do without specifying the pv path.


Rgds...
abir chowdhury
Advisor

Re: mirroring logical volume

please umount /test if is a base JFS

#lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
Torsten.
Acclaimed Contributor

Re: mirroring logical volume

No need to unmount anything if you want to mirror ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Viktor Balogh
Honored Contributor

Re: mirroring logical volume

... and he isn't able to umount it since it has turned out that it's about the root disk.
****
Unix operates with beer.
Abid Iqbal
Regular Advisor

Re: mirroring logical volume

Hi,
Just run the below commands and it is done

# lvextend -m 1 /dev/vg00/lvol1
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00