I am first time user here. Problem on my centos-root reached 70%, I need to extend centos-home disk space to centos-root.
i only have
- one harddisk with sda1 and sda2.
- currently dev\mapper\centos-home mount to \home
- /home have data inside which need to be maintained.
- sda2 consists of centos-home and centos-root
- my dev\mapper\centos-home size: 1.0TB xfs
- my dev\mapper\centos-root size: 80GB
to do this, am i require to
1. backup \home
2. #umount /dev/mapper/centos-home
3. #lvremove /dev/mapper/centos-home
4. #lvextend -l +300G -r /dev/mapper/centos-root
5. #xfs_growfs /dev/mapper/centos-root
6. #lvcreate -L 200 GiB -n home centos
7. #mkfs.ext4 -L <volumelable> /dev/mapper/centos-home
8. #mount -t ext4 /dev/mapper/centos-home /home
9. restore \home backup to newly created \home
any mistake here before i proceed to actual computer? please help and thank you in advanced.
Steps move centos-home XFS to centos-root
Re: Steps move centos-home XFS to centos-root
Looks fine to me. You'll probably need to be in single user mode or, at least, kill a bunch of stuff so that you can umount /home cleanly.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: Steps move centos-home XFS to centos-root
Hi TrevorH,
meaning have to force with command -fl ?
umount -fl \deve\mapper\centos-home
meaning have to force with command -fl ?
umount -fl \deve\mapper\centos-home
Re: Steps move centos-home XFS to centos-root
No, meaning you have to stop everything that is using it. Pretty sure that force or lazy umounting /home will not work as any attempt to do anything with it will detect that it's still in use. Use fuser -m /home to get a list of the process ids using the mount point and work out what they are and stop them. If you login to the server as a normal user then su to root, make sure you change your current directory to one that is not /home before you su or your underlying session will be using it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke