lvm extend on running file system
Hi
I wonder can I extend file system and lvm volume on running server. File system is being used when I want to extend its size. Can I do this without any danger to file system itself ? ths for help. |
LVM volume: Yes. File system: depends on the file system.
No -- there is always a small possibility of something going wrong. |
I have ext3 fs.
How can I do it without downtime ? |
The fs itself couldn't be resized when it's mounted and in use, take full backup if you try to force it, but in case it fails you have more downtime, so better to do do it unmounted.
|
thx for info.
But if I perform fs extension while fs is mounted but there is no I/O operations ? |
Not (necessarily) true.
Ext3 has supported online resize for some time (years). Extending the f/s can be done online, is supported, and works (for me). Check "man resize2fs". A backup is always prudent. |
Yep, my mistake there, you can resize you ext3 or ext4 fs with resize2fs (as long as the kernel supports it [from the man page]).
I have did it today with my /root ext4 partition that was on a 10G logical volume but the fs itself was just 7G, so with the /root partition mounted as root I have used resize2fs /dev/mapper/system-root (my lv name), and it became 10G in 2 sec. |
All times are GMT -5. The time now is 08:09 PM. |