Resize LVM

1. Resize LV:

– Add more space to a LV

lvextend -L +250 /dev/fileserver/share

lvextend -L 25000 /dev/fileserver/share

– Reduce space from a LV

lvreduce -L -250 /dev/fileserver/share

lvreduce -L 15000 /dev/fileserver/share

2. Resize VG:

– Add a PV to a VG:

vgextend fileserver /dev/sdd1

– Remove a PV from VG:

vgreduce fileserver /dev/sdb1

Can remove only when that PV is not in use. If it’s in use, this command will move all data on that PV to another one then remove it from the VG:

pvmove /dev/sdb1

It can move only when there’re enough space to store data from the removed PV.

P.S: Posted from classroom, no Unikey so wrote in English.

Read More:




About dongthao

"Man does not simply exist but always decides what his existence will be, what he will become the next moment"
This entry was posted in Linux, Linux Tutorial and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s