sdb1 disk added to "pve" group.. needs to be removed

neliasen

Renowned Member
Jul 24, 2013
2
0
66
hello

I have the following "pve" group which I have added a disk "sdb1" that I would like to remove.. have to go into another system!

root@proxmox:/etc/apt# pvs -o+pv_used
PV VG Fmt Attr PSize PFree Used
/dev/sda2 pve lvm2 a-- 297.59g 0 297.59g
/dev/sdb1 pve lvm2 a-- 1.82t 16.00g 1.80t
root@proxmox:/etc/apt# pvmove /dev/sdb1
No extents available for allocation
root@proxmox:/etc/apt# pvremove /dev/sdb1
PV /dev/sdb1 belongs to Volume Group pve so please use vgreduce first.
(If you are certain you need pvremove, then confirm by using --force twice.)

Layout is as follows:
rroot@proxmox:/etc/apt# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 391M 492K 391M 1% /run
/dev/mapper/pve-root 74G 1.7G 68G 3% /
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 782M 19M 763M 3% /run/shm
/dev/mapper/pve-data 2.0T 16G 2.0T 1% /var/lib/vz
/dev/sda1 495M 78M 392M 17% /boot
/var/lib/vz/private/100 40G 10G 31G 25% /var/lib/vz/root/100
tmpfs 52M 100K 52M 1% /var/lib/vz/root/100/run
tmpfs 5.0M 0 5.0M 0% /var/lib/vz/root/100/run/lock
tmpfs 205M 0 205M 0% /var/lib/vz/root/100/run/shm
/var/lib/vz/private/105 4.0G 1.1G 3.0G 27% /var/lib/vz/root/105
tmpfs 256M 4.0K 256M 1% /var/lib/vz/root/105/lib/init/rw
tmpfs 256M 0 256M 0% /var/lib/vz/root/105/dev/shm
/dev/fuse 30M 16K 30M 1% /etc/pve

I saw a hint about doing something along the following:
lvresize -L 297G /dev/mapper/pve-data
e2fsck -f /dev/mapper/pve-data
resize2fs -p /dev/mapper/pve-data

but I am ... clearly... a bit nervous about this(live system).... Is this the only solution, or are there alternatives ??
and how come the "sdb1" disk appears to have next to no free space ?


tia
niels
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!