Can anyone help ? I have 2 disks spanning my main partitions. 1 is 460Gb and the other is a 1TB. I would like to remove the 1TB - I would like to use it in another machine.
The volume group isn't using a lot of space anyway, I only have docker with a few containers using that disk and my docker container volumes are on a different physical disk anyway.
If I just remove the disk ([physically]), it is going to cause problems right?
Here is some info
pvdisplay
--- Physical volume ---
PV Name /dev/sda3
VG Name ubuntu-vg
PV Size <464.26 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 118850
Free PE 0
Allocated PE 118850
PV UUID DA7Q8E-zJEz-2FzO-N64t-HtU3-2Z8P-UQydU4
--- Physical volume ---
PV Name /dev/sdb1
VG Name ubuntu-vg
PV Size 931.51 GiB / not usable 4.69 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238466
Free PE 0
Allocated PE 238466
PV UUID Sp6b1v-nOj2-XXdb-GZYf-1Vej-cfdr-qLB3GU
LVM confuses me a little :-)
Is there not just a simple case of saying,
"remove yourself from the VG and assing anything you are using the remaining group member" ?
Its worth noting that the 1TB was added afterwards, so assume its easier to remove ?
Any help really appreciated
EDIT
Also some more info
df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 1.4M 3.2G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 1.4T 5.1G 1.3T 1% /
It sames its using only 1%
also output of lvs
lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
ubuntu-lv ubuntu-vg -wi-ao---- 1.36t
EDIT
pvdisplay -m
--- Physical volume ---
PV Name /dev/sda3
VG Name ubuntu-vg
PV Size <464.26 GiB / not usable 2.00 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 118850
Free PE 0
Allocated PE 118850
PV UUID DA7Q8E-zJEz-2FzO-N64t-HtU3-2Z8P-UQydU4
--- Physical Segments ---
Physical extent 0 to 118849:
Logical volume /dev/ubuntu-vg/ubuntu-lv
Logical extents 0 to 118849
--- Physical volume ---
PV Name /dev/sdb1
VG Name ubuntu-vg
PV Size 931.51 GiB / not usable 4.69 MiB
Allocatable NO
PE Size 4.00 MiB
Total PE 238466
Free PE 0
Allocated PE 238466
PV UUID Sp6b1v-nOj2-XXdb-GZYf-1Vej-cfdr-qLB3GU
--- Physical Segments ---
Physical extent 0 to 238465:
Logical volume /dev/ubuntu-vg/ubuntu-lv
Logical extents 118850 to 357315
EDIT
Output of
lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
loop0 squashfs /snap/core/9066
loop2 squashfs /snap/core/9289
sda
├─sda1 vfat E6CC-2695 /boot/efi
├─sda2 ext4 0909ad53-d6a7-48c7-b998-ac36c8f629b7 /boot
└─sda3 LVM2_membe DA7Q8E-zJEz-2FzO-N64t-HtU3-2Z8P-UQydU4
└─ubuntu--vg-ubuntu--lv
ext4 b64f2bf4-cd6c-4c21-9009-76faa2627a6b /
sdb
└─sdb1 LVM2_membe Sp6b1v-nOj2-XXdb-GZYf-1Vej-cfdr-qLB3GU
└─ubuntu--vg-ubuntu--lv
ext4 b64f2bf4-cd6c-4c21-9009-76faa2627a6b /
sdc xfs 1a9d0e4e-5cec-49f3-9634-37021f65da38 /gluster/bricks/2
sdc above is a different drive - and not related.