1. backup all data in /home
- #tar -czvf /root/home.tgz -C /home .2. unmount home
- test backup : #tar -tvf /root/home.tgz
- #df-h3. remove the home logical volume
- #umount /dev/mapper/centos-home
- #lvremove /dev/mapper/centos-home4.recreate a new (400GB) logical volume for /home, format and mount it
- #lvcreate -L 400GB -n home centos5.extend /root volume with ALL of the remaining space and resize (-r) the file system while doing so
- #mkfs.xfs /dev/centos/home
- #mount /dev/mapper/centos-home
- #lvextend -r -l +100%FREE /dev/mapper/centos-root6.restore your backup
- #df -h
- #tar -xzvf /root/home.tgz -C /home
0 comments:
Post a Comment