I have a debian container (199) that I needed to increase from ~1TB to ~25TB.
(Note: the name of the /dev/x14TB/ is named because it's a raid card of 14TB drives, not a single 14TB drive)
I shut down the container and used the web gui "resize disk" button and I got this error.
It ended with Task ok and I thought it had worked at first, but when attempting to start the container, I get this error.
I went back to the resize and saw it had failed and gave me a command to run to fix it, so I tried that and got this error.
I know the storage still exists, because I can see it in the online gui for the storage device, and it shows the new increased size.
I have another container with a disk on the same drive (102), so I started comparing what I could find different.
I then ran lvdisplay and saw that it shows not available
I ran
I've searched through the forum and found two similar posts but neither had a resolution posted. I'm currently at a loss for my next step. Looking for advise on how to recover this disk. I do have a backup of all the data but it would take a while to rebuild.
(Note: the name of the /dev/x14TB/ is named because it's a raid card of 14TB drives, not a single 14TB drive)
I shut down the container and used the web gui "resize disk" button and I got this error.
Code:
Size of logical volume x14TB/vm-199-disk-0 changed from 1000.00 GiB (256000 extents) to 24.41 TiB (6400000 extents).
Logical volume x14TB/vm-199-disk-0 successfully resized.
e2fsck 1.44.5 (15-Dec-2018)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/x14TB/vm-199-disk-0: 101117/65536000 files (1.2% non-contiguous), 160323221/262144000 blocks
resize2fs 1.44.5 (15-Dec-2018)
resize2fs: MMP: invalid magic number while trying to resize /dev/x14TB/vm-199-disk-0
Please run 'e2fsck -fy /dev/x14TB/vm-199-disk-0' to fix the filesystem
after the aborted resize operation.
Resizing the filesystem on /dev/x14TB/vm-199-disk-0 to 6553600000 (4k) blocks.
Failed to update the container's filesystem: command 'resize2fs /dev/x14TB/vm-199-disk-0' failed: exit code 1
TASK OK
It ended with Task ok and I thought it had worked at first, but when attempting to start the container, I get this error.
Code:
run_buffer: 314 Script exited with status 32
lxc_init: 798 Failed to run lxc.hook.pre-start for container "199"
__lxc_start: 1945 Failed to initialize container "199"
TASK ERROR: startup for container '199' failed
I went back to the resize and saw it had failed and gave me a command to run to fix it, so I tried that and got this error.
Code:
root@prox:~# e2fsck -fy /dev/x14TB/vm-199-disk-0
e2fsck 1.44.5 (15-Dec-2018)
e2fsck: No such file or directory while trying to open /dev/x14TB/vm-199-disk-0
Possibly non-existent device?
I know the storage still exists, because I can see it in the online gui for the storage device, and it shows the new increased size.
I have another container with a disk on the same drive (102), so I started comparing what I could find different.
I then ran lvdisplay and saw that it shows not available
Code:
--- Logical volume ---
LV Path /dev/x14TB/vm-102-disk-0
LV Name vm-102-disk-0
VG Name x14TB
LV UUID VMeCiZ-cYjs-RekP-0FVt-P3gf-297s-kRNGcW
LV Write Access read/write
LV Creation host, time prox, 2022-01-20 14:50:22 -0500
LV Status available
# open 1
LV Size 19.53 TiB
Current LE 5120000
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Path /dev/x14TB/vm-199-disk-0
LV Name vm-199-disk-0
VG Name x14TB
LV UUID Z4tVsj-lYxY-pf04-lsa1-4rsf-jn88-W3QS70
LV Write Access read/write
LV Creation host, time prox, 2022-07-28 16:29:53 -0400
LV Status NOT available
LV Size 24.41 TiB
Current LE 6400000
Segments 1
Allocation inherit
Read ahead sectors auto
I ran
fdisk -l
ls /dev/mapper
and ls /dev/x14TB
I can see an entry for 102s disk but not 199s disk in each.I've searched through the forum and found two similar posts but neither had a resolution posted. I'm currently at a loss for my next step. Looking for advise on how to recover this disk. I do have a backup of all the data but it would take a while to rebuild.
Last edited: