cancel
Showing results for 
Search instead for 
Did you mean: 

lvextend - vgexport

grkmep
Occasional Visitor

lvextend - vgexport

Fellas,
If I extend an existing lv do I need the procedure to vgexport-vgimport ?

If yes what are the rights step to do?

Thanks,
Massimo
6 REPLIES
Ivan Krastev
Honored Contributor

Re: lvextend - vgexport

No,

You are not changing the disks in the volume group with lvextend - only increase the logical volume size.

Just do the following:

# lvextend -L 15G /dev/vgXX/lvXX

# ext2online /mountpoint

When logical volume /dev/vgXX/lvolXX is mounted under /mountpoint.

regards,
ivan
grkmep
Occasional Visitor

Re: lvextend - vgexport

Ok,
But I don't have etx2online command.

I have 2.6 kernel and I read that is possible use resize2fs ((As of this writing, the Linux 2.6 kernel supports on-line resize for filesystems mounted using ext3 only.)).

It's true that I can extend the lvol without stop the package ?

And:
On the second node these steps are right if I extend a volume group?

a. pvscan
b. vgexport vgname
c. vgimport vgname /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 etc.etc

Regards,
Massimo
skt_skt
Honored Contributor

Re: lvextend - vgexport

ur first post no where talks about cluster.. It is recommended to export/import on alternate node if in cluster
grkmep
Occasional Visitor

Re: lvextend - vgexport

Right,
I don't specify above but the post is in the serviceguard section, then I mean that my qustion was oriented in a cluster enviroment.

I have more knowledge in mc/sg in the hpux o.s. but not in the linux o.s.

In the hpux there are some option for vgexport (like -s -p -m mapfile) that I don't find in the linux box.

Can somebody suggest me the right procedure after I extended a lvol (or vg) in one of nodes of the cluster?

Thanks,
Massimo
skt_skt
Honored Contributor

Re: lvextend - vgexport


something simialr it should be.

vgchange -a n vgec_rde0_d
vgexport -v /dev/vgec_rde0_d
vgimport /dev/vgec_rde0_dbin /dev/sdm
Kevin Wright
Honored Contributor

Re: lvextend - vgexport

lvextend/resize2fs.