Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Showing results for 
Search instead for 
Did you mean: 

Lvextend -m question

Go to solution
Christophe CRIMETZ
Occasional Contributor

Lvextend -m question

Hi all,

I'm new to hpux and i wonder if it matters if i mirror an lvol before creating a filesystem on it.

Thanks in advance
Jeff Schussele
Honored Contributor

Re: Lvextend -m question

Hi Christophe,

No, it doesn't really matter.
But you definitely want to mirror prior to putting data on it.
The more data in the LV, the longer the initial mirror will take.

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: Lvextend -m question

lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c#t#d0

use a real dsk device.

I'd have the mirror set up before I use the logical volume if possible.

Steven E Protter
Owner of ISN Corporation
Massimo Bianchi
Honored Contributor

Re: Lvextend -m question

it does not matter at all.
It in the underlying level, and the fs isn't aware of the existance of the mirror, anyway.

Just a suggestion.
The best way to do mirroring is

lvcreate -n lvolXX vgXX /dev/dsk/c1t2d3 (create at 0 size !)

lvextentd -m 1 /dev/vgXX/lvolXX /dev/dsk/c2t2d3 (mirror the 0 sized lvol)

lvextend -l dimension_you_want /dev/vgXX/lvolXX

(extend the mirrored lvol)

In this way you have no time spent uselees.

If you first create the lvol at full size and after increase it, you will have to wait a lot....