Is it considered safe to resize a mounted partition (root filesystem) with lvextend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Is it safe to extend a mounted partition ?
For example,
lvextend --size +9G --resizefs /dev/mapper/vg_paeiserver5-lv_my_partition

when
/dev/mapper/vg_paeiserver5-lv_my_partition is mounted ?

I cannot simply unmount that partition as it is the root filesystem
"/" is hosted on it. I can reboot to a second partition as this
is a dual boot machine, and from there run that lvextend, as
/dev/mapper/vg_paeiserver5-lv_my_partition is not mounted there. But I
prefer doing it without boot if it is considered safe
to perform this on a booted partition.

If I try it I get:
"on-line resizing required" message, which I am not sure what it means.
and "df -h" show that the partition was indeed increased by 20GB.

lvextend --size +20G --resizefs /dev/mapper/vg_paeiserver5-lv_my_partition
  Extending logical volume lv_ubuntu to 34.00 GiB
  Logical volume lv_ubuntu successfully resized
resize2fs 1.42.9 (4-Feb-2014)
Filesystem at /dev/mapper/vg_paeiserver5-lv_my_partition is mounted on
/; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 3
The filesystem on /dev/mapper/vg_paeiserver5-lv_my_partition is now
8912896 blocks long.

Regards,
Kevin

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/



[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux