HereiswhatIdidtoincreasethespaceontherootpartitiononDB31:1)createadirectory/var/home/rlubbers2)cp-rpv/home/rlubbers/* /var/home/rlubbers3) log out as rlubbers4) log in as borg and become root5) usermod -d /var/home/rlubbers rlubbers6) log out as borg, and back in as rlubbers7) run `pwd` to assure that I was indeed in /var/home/rlubbers and not /home/rlubbers8) umount /homeNOW THAT /HOME IS UNMOUNTED, NOBODY ELSE CAN LOG INTO THIS MACHINE. FOR SOME REASON THE SLAVE PROCESS ON DB31 TOOK ISSUE WITH THIS AND THREW AN ALARM9) make sure the unmounted /home partitiioon is sane: e2fsck -f /dev/mapper/konverbd31--vg-home 10) reduce the size of the filesystem. I reduced it to 5G (should be enough)resize2fs /dev/mapper/konverbd31--vg-home 5G11) reduce the Logical Volume to the same sizeroot@konverdb31:~# lvreduce -L 5G /dev/mapper/konverbd31--vg-home WARNING: Reducing active logical volume to 5.00 GiB. THIS MAY DESTROY YOUR DATA (filesystem etc.)Do you really want to reduce konverbd31-vg/home? [y/n]: y Size of logical volume konverbd31-vg/home changed from <7.63 GiB (1953 extents) to 5.00 GiB (1280 extents). Logical volume konverbd31-vg/home successfully resized.12) remount the /home partition:mount /dev/mapper/konverbd31--vg-home /home13) logout as rlubbers, log back in as borg, become root14) usermod -d /home/rlubbers rlubbers15) logged out as borg, logged back in as rlubbers and verified that /home/rlubbers was actually my home directory
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.