Sorry for my poor English.
When I want to extend my lvm-thin, I use this code maked a img from lvm-root:
when I finish the tasks , I removed the file temp.img.
then reboot my pve, my vms are all inactive,
Now I can't backup my vms, and can't start them.
How can I resolve this ?
Thanks for any help.
Below is my pvs/lvs information:
When I want to extend my lvm-thin, I use this code maked a img from lvm-root:
Bash:
dd if=/dev/zero of=~/temp.img bs=1024M count=16
fdisk ~/temp.img
losetup -Pf --show ~/temp.img
pvcreate /dev/loop0p1
lvextend -l +100%FREE -r pve/root /dev/loop0p1 --force
## I forgot what I wrote then, but it almost like this.
when I finish the tasks , I removed the file temp.img.
then reboot my pve, my vms are all inactive,
Now I can't backup my vms, and can't start them.
How can I resolve this ?
Thanks for any help.
Below is my pvs/lvs information:
Bash:
root@pve:~# vgs
Couldn't find device with uuid ULyj0T-yyH8-bm9C-U87I-7Bay-wtVP-GT8lpt.
VG #PV #LV #SN Attr VSize VFree
pve 2 6 0 wz-pn- 127.28g 0
root@pve:~# pvs
Couldn't find device with uuid ULyj0T-yyH8-bm9C-U87I-7Bay-wtVP-GT8lpt.
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- <111.29g 0
[unknown] pve lvm2 a-m <16.00g 0
root@pve:~# lvs
Couldn't find device with uuid ULyj0T-yyH8-bm9C-U87I-7Bay-wtVP-GT8lpt.
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi---tzp- 90.53g
root pve -wi-ao---- 27.75g
swap pve -wi-ao---- 7.00g
vm-101-disk-0 pve Vwi---tzp- 52.00m data
vm-102-disk-0 pve Vwi---tzp- 52.00g data
vm-103-disk-0 pve Vwi---tzp- 32.00g data
root@pve:~# lvdisplay
Couldn't find device with uuid ULyj0T-yyH8-bm9C-U87I-7Bay-wtVP-GT8lpt.
--- Logical volume ---
LV Path /dev/pve/swap
LV Name swap
VG Name pve
LV UUID lbF2k4-BUsw-19rA-6T3g-zq3E-EWtC-Zxvedc
LV Write Access read/write
LV Creation host, time proxmox, 2021-05-15 22:42:40 +0800
LV Status available
# open 2
LV Size 7.00 GiB
Current LE 1792
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/pve/root
LV Name root
VG Name pve
LV UUID KLVRGK-e0a9-1aXj-RGlw-00iv-dcvW-jM5I3w
LV Write Access read/write
LV Creation host, time proxmox, 2021-05-15 22:42:40 +0800
LV Status available
# open 1
LV Size 27.75 GiB
Current LE 7104
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name data
VG Name pve
LV UUID D49kt8-FwgB-MxGm-UvnN-GokP-ch5Z-H2vKn4
LV Write Access read/write
LV Creation host, time proxmox, 2021-05-15 22:42:40 +0800
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status NOT available
LV Size 90.53 GiB
Current LE 23176
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/pve/vm-102-disk-0
LV Name vm-102-disk-0
VG Name pve
LV UUID KsabaN-vBsv-hPQ5-3aSn-htdX-TPXo-FbfQDF
LV Write Access read/write
LV Creation host, time pve, 2021-06-02 00:21:26 +0800
LV Pool name data
LV Status NOT available
LV Size 52.00 GiB
Current LE 13312
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/pve/vm-101-disk-0
LV Name vm-101-disk-0
VG Name pve
LV UUID OqHfHA-IdCq-8ZRU-Xke5-fdl8-pRpo-jWPTNg
LV Write Access read/write
LV Creation host, time pve, 2021-06-06 14:43:17 +0800
LV Pool name data
LV Status NOT available
LV Size 52.00 MiB
Current LE 13
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/pve/vm-103-disk-0
LV Name vm-103-disk-0
VG Name pve
LV UUID ucspbe-kALY-kmlB-OesG-IWFS-0SDN-eTFxhJ
LV Write Access read/write
LV Creation host, time pve, 2021-06-12 13:29:46 +0800
LV Pool name data
LV Status NOT available
LV Size 32.00 GiB
Current LE 8192
Segments 1
Allocation inherit
Read ahead sectors auto
root@pve:~#
Last edited: