You are not logged in.
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> df
Filesystem Size Used Avail Use% Mounted on
rootfs 29G 6.3G 22G 23% /
dev 1.7G 0 1.7G 0% /dev
run 1.7G 404K 1.7G 1% /run
/dev/sdb2 29G 6.3G 22G 23% /
shm 1.7G 0 1.7G 0% /dev/shm
tmpfs 1.7G 72K 1.7G 1% /tmp
/dev/sdb3 67G 57G 7.3G 89% /home
/dev/mapper/dabox--storage-stuff 2.9T 2.1T 667G 77% /media/stuff
/dev/sde1 299G 113G 186G 38% /media/mydrive
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> sudo pvscan
PV /dev/sdc1 VG dabox-storage lvm2 [1.36 TiB / 0 free]
PV /dev/sda2 VG dabox-storage lvm2 [244.38 GiB / 0 free]
PV /dev/sdb1 VG dabox-storage lvm2 [366.19 GiB / 0 free]
PV /dev/sdd1 VG dabox-storage lvm2 [931.51 GiB / 0 free]
PV /dev/sda1 VG dabox-storage lvm2 [53.70 GiB / 0 free]
Total: 5 [2.92 TiB] / in use: 5 [2.92 TiB] / in no VG: 0 [0 ]
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "dabox-storage" using metadata type lvm2
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> sudo lvscan
ACTIVE '/dev/dabox-storage/stuff' [2.92 TiB] inherit
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> So I have 667GB free on this LV as you can see from df, yet this is happening when I try to remove a volume:
└─> sudo pvmove -v /dev/sdb1
Finding volume group "dabox-storage"
No extents available for allocation
┌─[ 09/17/12 01:21:37 PM ][ ~ ]
└─> sudo pvmove -v /dev/sda1
Finding volume group "dabox-storage"
No extents available for allocationI keep getting this message no matter which PV I try.
Here's pvdisplay -m
sudo pvdisplay -m
[sudo] password for bobby:
--- Physical volume ---
PV Name /dev/sdc1
VG Name dabox-storage
PV Size 1.36 TiB / not usable 897.00 KiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 357699
Free PE 0
Allocated PE 357699
PV UUID Khz636-PmiK-pGwn-YIAA-V0pV-iQsp-viRTLt
--- Physical Segments ---
Physical extent 0 to 357698:
Logical volume /dev/dabox-storage/stuff
Logical extents 0 to 357698
--- Physical volume ---
PV Name /dev/sda2
VG Name dabox-storage
PV Size 244.38 GiB / not usable 2.89 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 62561
Free PE 0
Allocated PE 62561
PV UUID fuNir3-tgpT-wq8v-ztLv-0E08-JVS2-YA7ZCc
--- Physical Segments ---
Physical extent 0 to 62560:
Logical volume /dev/dabox-storage/stuff
Logical extents 357699 to 420259
--- Physical volume ---
PV Name /dev/sdb1
VG Name dabox-storage
PV Size 366.19 GiB / not usable 2.12 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 93744
Free PE 0
Allocated PE 93744
PV UUID lHtf0O-uqSh-rq9N-RHHo-RF0r-4051-zl3dNX
--- Physical Segments ---
Physical extent 0 to 93743:
Logical volume /dev/dabox-storage/stuff
Logical extents 420260 to 514003
--- Physical volume ---
PV Name /dev/sdd1
VG Name dabox-storage
PV Size 931.51 GiB / not usable 3.19 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238466
Free PE 0
Allocated PE 238466
PV UUID g091ul-udvl-XmJ0-KG19-0rb4-Dag7-5GFeUH
--- Physical Segments ---
Physical extent 0 to 238465:
Logical volume /dev/dabox-storage/stuff
Logical extents 514004 to 752469
--- Physical volume ---
PV Name /dev/sda1
VG Name dabox-storage
PV Size 53.71 GiB / not usable 3.92 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 13748
Free PE 0
Allocated PE 13748
PV UUID YNqPYg-Zbn3-z1dj-2HlR-mwoX-aG4U-qPjV10
--- Physical Segments ---
Physical extent 0 to 13747:
Logical volume /dev/dabox-storage/stuff
Logical extents 752470 to 766217What I am trying to do is remove /dev/sdb1 at the least, and/or sda1+2 so I can take out that drive. I'd really appreciate any help with this folks, thanks!! (Any other output required please ask.)
Offline
I think all the space is in use by the LVM although you didn't write up all the disk space. Could you paste the output of pvs && vgs && lvs ?
Last edited by slytux (2012-09-18 03:07:03)
Offline
sudo pvs
PV VG Fmt Attr PSize PFree
/dev/sda1 dabox-storage lvm2 a-- 53.70g 0
/dev/sda2 dabox-storage lvm2 a-- 244.38g 0
/dev/sdb1 dabox-storage lvm2 a-- 366.19g 0
/dev/sdc1 dabox-storage lvm2 a-- 1.36t 0
/dev/sdd1 dabox-storage lvm2 a-- 931.51g 0
┌─[ 09/17/12 11:08:30 PM ][ ~ ]
└─> sudo vgs
VG #PV #LV #SN Attr VSize VFree
dabox-storage 5 1 0 wz--n- 2.92t 0
┌─[ 09/17/12 11:08:30 PM ][ ~ ]
└─> sudo lvs
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert
stuff dabox-storage -wi-ao-- 2.92t Offline
pvmove and the partition by itselfy may not be enough, you could specify the target to move to as the second argument to pvmove.
Ex. take out sdb1:
pvmove /dev/sdb1 /dev/sdc1
Last edited by slytux (2012-09-18 03:26:49)
Offline
pvmove and the partition by itselfy may not be enough, you could specify the target to move to as the second argument to pvmove.
Ex. take out sdb1:
pvmove /dev/sdb1 /dev/sdc1
Yup, have tried that with all sorts of combinations:
└─> sudo pvmove /dev/sdb1 /dev/sdc1
No free extents on physical volume "/dev/sdc1"
No specified PVs have space available
┌─[ 09/17/12 11:27:53 PM ][ ~ ]
└─> sudo pvmove /dev/sdb1 /dev/sdd1
No free extents on physical volume "/dev/sdd1"
No specified PVs have space available
┌─[ 09/17/12 11:27:53 PM ][ ~ ]
└─> sudo pvmove /dev/sda1 /dev/sdb1
No free extents on physical volume "/dev/sdb1"
No specified PVs have space available
┌─[ 09/17/12 11:27:53 PM ][ ~ ]
└─> sudo pvmove /dev/sda1 /dev/sdc1
No free extents on physical volume "/dev/sdc1"
No specified PVs have space available
┌─[ 09/17/12 11:27:53 PM ][ ~ ]
└─> sudo pvmove /dev/sda1 /dev/sdd1
No free extents on physical volume "/dev/sdd1"
No specified PVs have space availableI've pretty much given up, I bought my SSD tonight, and now I'm going to buy a 2TB drive tomorrow and move my important stuff over, then dismantle the LVM and not use it again. Thanks for your help mate I appreciate it ![]()
Offline
Very well. I haven't tested this but you still might be able to do this if you shrink the lv & overlying filesystem to greater than the df used but you'll only be able to remove the drive if you have enough free space.
Offline