Quantcast
Channel: How do I resize a logical volume to the size of the filesystem within it? - Server Fault
Browsing latest articles
Browse All 3 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 latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>