I have a logical volume management question (see configuration below):
What I want to do is remove physical disk sdb which contains part of cl-home mounted as /home. I have removed /home contents.
I want to leave physical disk sda (which contains the OS) alone.
I noticed VG name is "CL". sda has cl-root, cl-swap and cl-home.
What command sequence do I use to remove only /home and subsequently remove sdb from my server (I'll probably have to recreate my user account)?
My fear is if I vgreduce /dev/sdb1 it will affect my root partition ("cl ..." ?). And what line(s) do I delete from fstab for reboot
(/dev/mapper/cl-home ??)
Thanks for your help!
Below is my current configuration:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 1.8T 0 part
├─cl-root 253:0 0 50G 0 lvm /
├─cl-swap 253:1 0 15.8G 0 lvm [SWAP]
└─cl-home 253:2 0 3.6T 0 lvm /home
sdb 8:16 0 1.8T 0 disk
└─sdb1 8:17 0 1.8T 0 part
└─cl-home 253:2 0 3.6T 0 lvm /home--- Physical volume ---
PV Name /dev/sdb1
VG Name cl
PV Size <1.82 TiB / not usable 3.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476931
Free PE 0
Allocated PE 476931
PV UUID FIRfBq-wFl4-X6Zn-AcKl-iMqm-faGZ-FJd3LJ++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++/etc/fstab contents:
#
# /etc/fstab
# Created by anaconda on Sun Feb 23 17:13:36 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk/'.
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
#
# After editing this file, run 'systemctl daemon-reload' to update systemd
# units generated from this file.
#
/dev/mapper/cl-root / xfs defaults 0 0
UUID=875d6fec-978b-4450-9fd6-66b96dd464fc /boot ext4 defaults 1 2
/dev/mapper/cl-home /home xfs defaults 0 0
/dev/mapper/cl-swap swap swap defaults 0 0
UUID=A228376928373B9B /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0
Bookmarks