Quantcast
Channel: How do I resize a logical volume to the size of the filesystem within it? - Server Fault
Browsing all 3 articles
Browse latest View live

Answer by mr.zog for How do I resize a logical volume to the size of the...

It's not really a script per se. rootvol=/dev/mapper/vg_stt-lv_root mkdir /tmp/rootlv mount -t ext4 -o ro $rootvol /tmp/rootlv usedROOT=$(df -h $rootvol | tail -1 | awk '{print $2}' | awk...

View Article



Answer by John Mahowald for How do I resize a logical volume to the size of...

Do it in one step. /sbin/lvresize --resizefs --size -8g /dev/mapper/centos-home Where 8g is the size of the root volume you want to install. Constant size may be acceptable because the size of your new...

View Article

How do I resize a logical volume to the size of the filesystem within it?

Target system is CentOS 6.x but resizing operations will be done in %pre section of CentOS 7.6 kickstart. I have already run resize2fs -M /dev/mapper/centos-home successfully. If I mount the volume,...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images