1753396 Members
7566 Online
108792 Solutions
New Discussion юеВ

Re: lvextend - vgexport

 
grkmep
New Member

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 6
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
New Member

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
New Member

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.