1752599 Members
5273 Online
108788 Solutions
New Discussion юеВ

Re: Lvextend -m question

 
SOLVED
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
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

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.

Rgds,
Jeff
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.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Massimo Bianchi
Honored Contributor

Re: Lvextend -m question

Hi,
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....

Massimo