Friday, November 18, 2016

How To Resize Logical Volumes

I've been using my Ubuntu set up since March and downloading stuff from
the Internet. I have initially set my logical volumes like these:

/dev/mapper/ubuntu-vg/Music-lv 300GB 38% used
/dev/mapper/ubuntu-vg/Videos-lv 400GB 83% used

My Volume group is 2.05TB

I will be needing additional space for Videos-lv. I decided to take the
70% free space available from the RAID5 device. I opened the terminal
and typed:

#lvextend -l 70%PVS -r /dev/ubuntu-vg/Videos-lv /dev/md0
#lvresize -l 70%PVS -r /dev/ubuntu-vg/Videos-lv /dev/md0

The -r flag also resizes the underlying filesystem and not just the
logical volumes.
Post a Comment

Some Help You Are

Not all good motives end well. You thought you were doing somebody a favor but the other person is doing you mischief.