markus.falb at fasel.at
Sun Mar 18 15:08:55 EDT 2012
On 18.3.2012 18:53, John R Pierce wrote:
> On 03/18/12 10:34 AM, madunix at gmail.com wrote:
>> I need to shrink /home(755G) to 150GB and use free space to add to the
>> existing /(50G).
>> #df -kh
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/mapper/vg_web-lv_root 50G 7.8G 40G 17% /
>> tmpfs 7.8G 384K 7.8G 1% /dev/shm
>> /dev/sda2 485M 79M 381M 18% /boot
>> /dev/sda1 200M 256K 200M 1% /boot/efi
>> /dev/mapper/vg_web-lv_home755G 6.2G 711G 1% /home
>> Need to have the step, can this be done online or need to go offline
>> (umount) the file systems.
> IMHO, the only sane way to shrink a file system is to back it up to
> other media, delete it, then recreate it at the new smaller size and
> restore the backup.
Thats a safe way to do it. Anyway, regardless of how the goal will be
achieved, I agree that a restorable backup should exist.
Kind Regards, Markus Falb
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 307 bytes
Desc: OpenPGP digital signature
Url : http://lists.centos.org/pipermail/centos/attachments/20120318/9b5cf896/attachment.bin
More information about the CentOS