storage didn't come after reboot

batu

New Member
Oct 16, 2018
1
0
1
43
Hello,

I have been using proxmox since July, and I have 7 virtual servers running on it. I had an electrical problem with the storage. Reboot proxmox and storage doesn't reach. I searched almost the entire forum. Do you have any idea how to mount it back ?

Data is on pve disk. When i try to fsck says magic superblock errors.

Code:
root@cloud:/# fdisk -l
Disk /dev/sda: 278.5 GiB, 298999349248 bytes, 583983104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C08DD22C-6F5D-4FFD-AF9B-B8AA66F4F2C9

Device      Start       End   Sectors   Size Type
/dev/sda1    2048      4095      2048     1M BIOS boot
/dev/sda2    4096    528383    524288   256M EFI System
/dev/sda3  528384 583983070 583454687 278.2G Linux LVM


Disk /dev/sdb: 2 TiB, 2199023255552 bytes, 4294967296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 4B06C08D-E1BD-4589-815A-10FD458A26FF


Disk /dev/mapper/pve-root: 69.5 GiB, 74625056768 bytes, 145752064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/pve-swap: 8 GiB, 8589934592 bytes, 16777216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/pve-vm--100--disk--1: 1000 GiB, 1073741824000 bytes, 2097152000 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 65536 bytes / 65536 bytes
Disklabel type: dos
Disk identifier: 0x9e3b7649

Device                                 Boot  Start        End    Sectors   Size Id Type
/dev/mapper/pve-vm--100--disk--1-part1 *      2048     718847     716800   350M  7 HPFS/NTFS/exFAT
/dev/mapper/pve-vm--100--disk--1-part2      718848 2097149951 2096431104 999.7G  7 HPFS/NTFS/exFAT


Disk /dev/mapper/pve-data_meta0: 1.9 GiB, 1983905792 bytes, 3874816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
root@cloud:/#

Code:
root@cloud:~# vgdisplay
  --- Volume group ---
  VG Name               pve
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  28
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               278.21 GiB
  PE Size               4.00 MiB
  Total PE              71222
  Alloc PE / Size       67599 / 264.06 GiB
  Free  PE / Size       3623 / 14.15 GiB
  VG UUID               eUknzo-Z1vQ-PSAl-MZFm-RGUi-tB3D-ZD0ZjI

root@cloud:~# lvdisplay
  --- Logical volume ---
  LV Path                /dev/pve/swap
  LV Name                swap
  VG Name                pve
  LV UUID                9RiL21-ZA2P-f2iE-rWWh-HJvI-bXT1-99HYkN
  LV Write Access        read/write
  LV Creation host, time proxmox, 2018-06-06 16:45:44 +0300
  LV Status              available
  # open                 2
  LV Size                8.00 GiB
  Current LE             2048
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1

  --- Logical volume ---
  LV Path                /dev/pve/root
  LV Name                root
  VG Name                pve
  LV UUID                XgV2it-9Kbw-yRCt-DqtN-FcIa-uEbk-sufBLF
  LV Write Access        read/write
  LV Creation host, time proxmox, 2018-06-06 16:45:44 +0300
  LV Status              available
  # open                 1
  LV Size                69.50 GiB
  Current LE             17792
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Logical volume ---
  LV Name                data
  VG Name                pve
  LV UUID                eY5NLb-68LU-Dokj-wghA-v44g-M7yU-FyqVdK
  LV Write Access        read/write
  LV Creation host, time proxmox, 2018-06-06 16:45:45 +0300
  LV Pool metadata       data_tmeta
  LV Pool data           data_tdata
  LV Status              available
  # open                 2
  LV Size                181.02 GiB
  Allocated pool data    4.09%
  Allocated metadata     0.25%
  Current LE             46340
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:4

  --- Logical volume ---
  LV Path                /dev/pve/vm-100-disk-1
  LV Name                vm-100-disk-1
  VG Name                pve
  LV UUID                vllPK8-h9Cf-B0Nm-77s9-DvAd-nlrz-6eXWgP
  LV Write Access        read/write
  LV Creation host, time cloud, 2018-07-16 16:36:14 +0300
  LV Pool name           data
  LV Status              available
  # open                 0
  LV Size                1000.00 GiB
  Mapped size            0.74%
  Current LE             256000
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:5

  --- Logical volume ---
  LV Path                /dev/pve/data_meta0
  LV Name                data_meta0
  VG Name                pve
  LV UUID                GV1jLY-nyzJ-oKUZ-XG2w-NamF-wZ1y-kiCyYN
  LV Write Access        read/write
  LV Creation host, time proxmox, 2018-06-06 16:45:45 +0300
  LV Status              available
  # open                 0
  LV Size                1.85 GiB
  Current LE             473
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:7

root@cloud:~#

Code:
root@cloud:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   95G     0   95G   0% /dev
tmpfs                  19G  9.5M   19G   1% /run
/dev/mapper/pve-root   68G   19G   46G  29% /
tmpfs                  95G   63M   95G   1% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
tmpfs                  95G     0   95G   0% /sys/fs/cgroup
/dev/sda2             253M  288K  252M   1% /boot/efi
/dev/fuse              30M   24K   30M   1% /etc/pve
tmpfs                  19G     0   19G   0% /run/user/0
root@cloud:~#

Code:
root@cloud:~# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content backup,vztmpl,iso

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: Data-Storage
        thinpool data
        vgname pve
        content rootdir,images
        nodes cloud

root@cloud:~#

Code:
root@cloud:~# pvesh get /storage
200 OK
[
   {
      "content" : "iso,vztmpl,backup",
      "digest" : "f28b101f9b82ac3fd825bc34e4d11be1e7298deb",
      "path" : "/var/lib/vz",
      "storage" : "local",
      "type" : "dir"
   },
   {
      "content" : "rootdir,images",
      "digest" : "f28b101f9b82ac3fd825bc34e4d11be1e7298deb",
      "storage" : "Data-Storage",
      "thinpool" : "data",
      "type" : "lvmthin",
      "vgname" : "pve"
   },
   {
      "content" : "images,rootdir",
      "digest" : "f28b101f9b82ac3fd825bc34e4d11be1e7298deb",
      "storage" : "local-lvm",
      "thinpool" : "data",
      "type" : "lvmthin",
      "vgname" : "pve"
   }
]
root@cloud:~#

Code:
root@cloud:~# pvesm status
Name                Type     Status           Total            Used       Available        %
Data                 dir     active        71208088        19403056        48144848   27.25%
Data-Storage     lvmthin     active       189808640         7763173       182045466    4.09%
local                dir     active        71208088        19403056        48144848   27.25%
local-lvm        lvmthin     active       189808640         7763173       182045466    4.09%
root@cloud:~#
 
Last edited:
afaics, your 2tb disk (/dev/sdb) has no partitions on it, and is not referenced by anything
you have 1 vg that is only on /dev/sda
that contains 1 thinpool 'data'
and you have 2 storages pointing to the 'data' thinpool on /dev/sda (so they are really the same storage)

also something is wrong with your output, since pvesm lists a 'Data' storage that does not exist in your config, that should not happen
 

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!