Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ubuntu:~# dmsetup resume root_vg-root
- device-mapper: resume ioctl on root_vg-root failed: Invalid argument
- Command failed
- root@ubuntu:~# dmsetup resume root_vg-root
- device-mapper: resume ioctl on root_vg-root failed: Invalid argument
- Command failed
- root@ubuntu:~# dmsetup info
- Name: root_vg-root
- State: SUSPENDED
- Read Ahead: 256
- Tables present: None
- Open count: 0
- Event number: 0
- Major, minor: 252, 0
- Number of targets: 0
- UUID: LVM-2z70QAEyRN2uvNSb5hKk0brY8qrIfJA2eYiD8ovpnfIkCbmvySL24KJ2YCAeLzis
- Name: root_vg-swap_1
- State: ACTIVE
- Read Ahead: 256
- Tables present: LIVE
- Open count: 0
- Event number: 0
- Major, minor: 252, 1
- Number of targets: 1
- UUID: LVM-2z70QAEyRN2uvNSb5hKk0brY8qrIfJA2m0dtIkdziEWcnmPoRPb7rUyMFoCp6zqM
- Name: root_vg-lv_var_opt
- State: ACTIVE
- Read Ahead: 256
- Tables present: LIVE
- Open count: 0
- Event number: 0
- Major, minor: 252, 2
- Number of targets: 1
- UUID: LVM-2z70QAEyRN2uvNSb5hKk0brY8qrIfJA2bwcezdMwgUuVDLmnJtJ0EIb2x8A2C8U5
- root@ubuntu:~# dmsetup resume root_vg-root
- device-mapper: resume ioctl on root_vg-root failed: Invalid argument
- Command failed
- root@ubuntu:~# pvs -a -v
- Using physical volume(s) on command line.
- Found same device /dev/sda5 with same pvid OgbrGhm632xfDN2LPzYOfVa92ltnGdAJ
- PV VG Fmt Attr PSize PFree DevSize PV UUID
- /dev/loop0 --- 0 0 1.05g
- /dev/ram0 --- 0 0 64.00m
- /dev/ram1 --- 0 0 64.00m
- /dev/ram10 --- 0 0 64.00m
- /dev/ram11 --- 0 0 64.00m
- /dev/ram12 --- 0 0 64.00m
- /dev/ram13 --- 0 0 64.00m
- /dev/ram14 --- 0 0 64.00m
- /dev/ram15 --- 0 0 64.00m
- /dev/ram2 --- 0 0 64.00m
- /dev/ram3 --- 0 0 64.00m
- /dev/ram4 --- 0 0 64.00m
- /dev/ram5 --- 0 0 64.00m
- /dev/ram6 --- 0 0 64.00m
- /dev/ram7 --- 0 0 64.00m
- /dev/ram8 --- 0 0 64.00m
- /dev/ram9 --- 0 0 64.00m
- /dev/root_vg/lv_var_opt --- 0 0 200.00g
- /dev/root_vg/swap_1 --- 0 0 15.89g
- /dev/sda1 --- 0 0 243.00m
- /dev/sda3 --- 0 0 244.61g
- /dev/sda5 root_vg lvm2 a-- 512.00g 56.10g 476.60g OgbrGh-m632-xfDN-2LPz-YOfV-a92l-tnGdAJ
- /dev/sdb1 --- 0 0 1.10g
- /dev/sdb2 --- 0 0 2.22m
- root@ubuntu:~#
- @ubuntu:~# parted -l
- Model: ATA Samsung SSD 850 (scsi)
- Disk /dev/sda: 1000GB
- Sector size (logical/physical): 512B/512B
- Partition Table: msdos
- Disk Flags:
- Number Start End Size Type File system Flags
- 1 1049kB 256MB 255MB primary ext2 boot
- 2 257MB 512GB 512GB extended
- 5 257MB 512GB 512GB logical lvm
- 3 738GB 1000GB 263GB primary ext4
- Warning: The driver descriptor says the physical block size is 2048 bytes, but
- Linux says it is 512 bytes.
- Ignore/Cancel? I
- Model: PNY USB 2.0 FD (scsi)
- Disk /dev/sdb: 32.7GB
- Sector size (logical/physical): 2048B/512B
- Partition Table: mac
- Disk Flags:
- Number Start End Size File system Name Flags
- 1 2048B 6143B 4096B Apple
- 2 1167MB 1169MB 2327kB EFI
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/root_vg-lv_var_opt: 215GB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 215GB 215GB ext4
- Model: Linux device-mapper (linear) (dm)
- Disk /dev/mapper/root_vg-swap_1: 17.1GB
- Sector size (logical/physical): 512B/512B
- Partition Table: loop
- Disk Flags:
- Number Start End Size File system Flags
- 1 0.00B 17.1GB 17.1GB linux-swap(v1)
- @ubuntu:~# fdisk -l /dev/sda
- Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x000d8608
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 * 2048 499711 497664 243M 83 Linux
- /dev/sda2 501758 1000000000 999498243 476.6G 5 Extended
- /dev/sda3 1440530432 1953525167 512994736 244.6G 83 Linux
- /dev/sda5 501760 999999487 999497728 476.6G 8e Linux LVM
- Partition table entries are not in disk order.
- @ubuntu:~# pvdisplay
- --- Physical volume ---
- PV Name /dev/sda5
- VG Name root_vg
- PV Size 512.00 GiB / not usable 3.00 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 131071
- Free PE 14362
- Allocated PE 116709
- PV UUID OgbrGh-m632-xfDN-2LPz-YOfV-a92l-tnGdAJ
- @ubuntu:~# vgdisplay
- --- Volume group ---
- VG Name root_vg
- System ID
- Format lvm2
- Metadata Areas 1
- Metadata Sequence No 20
- VG Access read/write
- VG Status resizable
- MAX LV 0
- Cur LV 3
- Open LV 1
- Max PV 0
- Cur PV 1
- Act PV 1
- VG Size 512.00 GiB
- PE Size 4.00 MiB
- Total PE 131071
- Alloc PE / Size 116709 / 455.89 GiB
- Free PE / Size 14362 / 56.10 GiB
- VG UUID 2z70QA-EyRN-2uvN-Sb5h-Kk0b-rY8q-rIfJA2
- @ubuntu:~# lvdisplay
- --- Logical volume ---
- LV Path /dev/root_vg/root
- LV Name root
- VG Name root_vg
- LV UUID eYiD8o-vpnf-IkCb-mvyS-L24K-J2YC-AeLzis
- LV Write Access read/write
- LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
- LV Status suspended
- # open 0
- LV Size 240.00 GiB
- Current LE 61440
- Segments 2
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:0
- --- Logical volume ---
- LV Path /dev/root_vg/swap_1
- LV Name swap_1
- VG Name root_vg
- LV UUID m0dtIk-dziE-Wcnm-PoRP-b7rU-yMFo-Cp6zqM
- LV Write Access read/write
- LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
- LV Status available
- # open 0
- LV Size 15.89 GiB
- Current LE 4069
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- --- Logical volume ---
- LV Path /dev/root_vg/lv_var_opt
- LV Name lv_var_opt
- VG Name root_vg
- LV UUID bwcezd-MwgU-uVDL-mnJt-J0EI-b2x8-A2C8U5
- LV Write Access read/write
- LV Creation host, time nimbus, 2015-03-18 03:39:40 +0000
- LV Status available
- # open 1
- LV Size 200.00 GiB
- Current LE 51200
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:2
- @ubuntu:~# pvscan
- PV /dev/sda5 VG root_vg lvm2 [512.00 GiB / 56.10 GiB free]
- Total: 1 [512.00 GiB] / in use: 1 [512.00 GiB] / in no VG: 0 [0 ]
- @ubuntu:~# vgscan
- Reading all physical volumes. This may take a while...
- Found volume group "root_vg" using metadata type lvm2
- @ubuntu:~# lvscan
- ACTIVE '/dev/root_vg/root' [240.00 GiB] inherit
- ACTIVE '/dev/root_vg/swap_1' [15.89 GiB] inherit
- ACTIVE '/dev/root_vg/lv_var_opt' [200.00 GiB] inherit
- @ubuntu:~# pvs
- PV VG Fmt Attr PSize PFree
- /dev/sda5 root_vg lvm2 a-- 512.00g 56.10g
- @ubuntu:~# vgs
- VG #PV #LV #SN Attr VSize VFree
- root_vg 1 3 0 wz--n- 512.00g 56.10g
- @ubuntu:~# lvs
- LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
- lv_var_opt root_vg -wi-ao---- 200.00g
- root root_vg -wi-s----- 240.00g
- swap_1 root_vg -wi-a----- 15.89g
- @ubuntu:~# e2fsck /dev/root_vg/root
- e2fsck 1.42.12 (29-Aug-2014)
- e2fsck: No such file or directory while trying to open /dev/root_vg/root
- Possibly non-existent device?
- @ubuntu:~# dumpe2fs -h /dev/root_vg/root
- dumpe2fs 1.42.12 (29-Aug-2014)
- dumpe2fs: No such file or directory while trying to open /dev/root_vg/root
- Couldn't find valid filesystem superblock.
- @ubuntu:~# dumpe2fs -h /dev/root_vg/lv_var_opt
- dumpe2fs 1.42.12 (29-Aug-2014)
- Filesystem volume name: <none>
- Last mounted on: /media/ubuntu/835a2e08-3bd8-4b69-905c-4d89c94f38e1
- Filesystem UUID: 835a2e08-3bd8-4b69-905c-4d89c94f38e1
- Filesystem magic number: 0xEF53
- Filesystem revision #: 1 (dynamic)
- Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
- Filesystem flags: signed_directory_hash
- Default mount options: user_xattr acl
- Filesystem state: clean
- Errors behavior: Continue
- Filesystem OS type: Linux
- Inode count: 13107200
- Block count: 52428800
- Reserved block count: 2304246
- Free blocks: 20977115
- Free inodes: 13085168
- First block: 0
- Block size: 4096
- Fragment size: 4096
- Reserved GDT blocks: 1011
- Blocks per group: 32768
- Fragments per group: 32768
- Inodes per group: 8192
- Inode blocks per group: 512
- RAID stride: 32744
- Flex block group size: 16
- Filesystem created: Wed Mar 18 03:44:05 2015
- Last mount time: Thu Mar 31 22:35:13 2016
- Last write time: Thu Mar 31 22:35:13 2016
- Mount count: 2
- Maximum mount count: -1
- Last checked: Tue Mar 22 18:15:07 2016
- Check interval: 0 (<none>)
- Lifetime writes: 3538 GB
- Reserved blocks uid: 0 (user root)
- Reserved blocks gid: 0 (group root)
- First inode: 11
- Inode size: 256
- Required extra isize: 28
- Desired extra isize: 28
- Journal inode: 8
- Default directory hash: half_md4
- Directory Hash Seed: 420fb49b-9628-4afc-9f31-c3af313ac8c0
- Journal backup: inode blocks
- Journal features: journal_incompat_revoke
- Journal size: 128M
- Journal length: 32768
- Journal sequence: 0x00199921
- Journal start: 1
- root@ubuntu:/etc/lvm/backup# vgcfgrestore -v --file /etc/lvm/archive/root_vg_00000-186308340.vg root_vg
- Found same device /dev/sda5 with same pvid OgbrGhm632xfDN2LPzYOfVa92ltnGdAJ
- Restored volume group root_vg
- @ubuntu:~# fdisk -l /dev/sda
- Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x000d8608
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 * 2048 499711 497664 243M 83 Linux
- /dev/sda2 501758 1000000000 999498243 476.6G 5 Extended
- /dev/sda3 1440530432 1953525167 512994736 244.6G 83 Linux
- /dev/sda5 501760 999999487 999497728 476.6G 8e Linux LVM
- Partition table entries are not in disk order.
- @ubuntu:~# pvdisplay
- --- Physical volume ---
- PV Name /dev/sda5
- VG Name root_vg
- PV Size 512.00 GiB / not usable 3.00 MiB
- Allocatable yes
- PE Size 4.00 MiB
- Total PE 131071
- Free PE 14362
- Allocated PE 116709
- PV UUID OgbrGh-m632-xfDN-2LPz-YOfV-a92l-tnGdAJ
- @ubuntu:~# vgdisplay
- --- Volume group ---
- VG Name root_vg
- System ID
- Format lvm2
- Metadata Areas 1
- Metadata Sequence No 20
- VG Access read/write
- VG Status resizable
- MAX LV 0
- Cur LV 3
- Open LV 1
- Max PV 0
- Cur PV 1
- Act PV 1
- VG Size 512.00 GiB
- PE Size 4.00 MiB
- Total PE 131071
- Alloc PE / Size 116709 / 455.89 GiB
- Free PE / Size 14362 / 56.10 GiB
- VG UUID 2z70QA-EyRN-2uvN-Sb5h-Kk0b-rY8q-rIfJA2
- @ubuntu:~# lvdisplay
- --- Logical volume ---
- LV Path /dev/root_vg/root
- LV Name root
- VG Name root_vg
- LV UUID eYiD8o-vpnf-IkCb-mvyS-L24K-J2YC-AeLzis
- LV Write Access read/write
- LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
- LV Status suspended
- # open 0
- LV Size 240.00 GiB
- Current LE 61440
- Segments 2
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:0
- --- Logical volume ---
- LV Path /dev/root_vg/swap_1
- LV Name swap_1
- VG Name root_vg
- LV UUID m0dtIk-dziE-Wcnm-PoRP-b7rU-yMFo-Cp6zqM
- LV Write Access read/write
- LV Creation host, time ubuntu, 2014-03-04 02:47:55 +0000
- LV Status available
- # open 0
- LV Size 15.89 GiB
- Current LE 4069
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:1
- --- Logical volume ---
- LV Path /dev/root_vg/lv_var_opt
- LV Name lv_var_opt
- VG Name root_vg
- LV UUID bwcezd-MwgU-uVDL-mnJt-J0EI-b2x8-A2C8U5
- LV Write Access read/write
- LV Creation host, time nimbus, 2015-03-18 03:39:40 +0000
- LV Status available
- # open 1
- LV Size 200.00 GiB
- Current LE 51200
- Segments 1
- Allocation inherit
- Read ahead sectors auto
- - currently set to 256
- Block device 252:2
- @ubuntu:~# pvscan
- PV /dev/sda5 VG root_vg lvm2 [512.00 GiB / 56.10 GiB free]
- Total: 1 [512.00 GiB] / in use: 1 [512.00 GiB] / in no VG: 0 [0 ]
- @ubuntu:~# vgscan
- Reading all physical volumes. This may take a while...
- Found volume group "root_vg" using metadata type lvm2
- @ubuntu:~# lvscan
- ACTIVE '/dev/root_vg/root' [240.00 GiB] inherit
- ACTIVE '/dev/root_vg/swap_1' [15.89 GiB] inherit
- ACTIVE '/dev/root_vg/lv_var_opt' [200.00 GiB] inherit
- @ubuntu:~# pvs
- PV VG Fmt Attr PSize PFree
- /dev/sda5 root_vg lvm2 a-- 512.00g 56.10g
- @ubuntu:~# vgs
- VG #PV #LV #SN Attr VSize VFree
- root_vg 1 3 0 wz--n- 512.00g 56.10g
- @ubuntu:~# lvs
- LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
- lv_var_opt root_vg -wi-ao---- 200.00g
- root root_vg -wi-s----- 240.00g
- swap_1 root_vg -wi-a----- 15.89g
- @ubuntu:~# e2fsck /dev/root_vg/root
- e2fsck 1.42.12 (29-Aug-2014)
- e2fsck: No such file or directory while trying to open /dev/root_vg/root
- Possibly non-existent device?
- @ubuntu:~# dumpe2fs -h /dev/root_vg/root
- dumpe2fs 1.42.12 (29-Aug-2014)
- dumpe2fs: No such file or directory while trying to open /dev/root_vg/root
- Couldn't find valid filesystem superblock.
- @ubuntu:~# dumpe2fs -h /dev/root_vg/lv_var_opt
- dumpe2fs 1.42.12 (29-Aug-2014)
- Filesystem volume name: <none>
- Last mounted on: /media/ubuntu/835a2e08-3bd8-4b69-905c-4d89c94f38e1
- Filesystem UUID: 835a2e08-3bd8-4b69-905c-4d89c94f38e1
- Filesystem magic number: 0xEF53
- Filesystem revision #: 1 (dynamic)
- Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
- Filesystem flags: signed_directory_hash
- Default mount options: user_xattr acl
- Filesystem state: clean
- Errors behavior: Continue
- Filesystem OS type: Linux
- Inode count: 13107200
- Block count: 52428800
- Reserved block count: 2304246
- Free blocks: 20977115
- Free inodes: 13085168
- First block: 0
- Block size: 4096
- Fragment size: 4096
- Reserved GDT blocks: 1011
- Blocks per group: 32768
- Fragments per group: 32768
- Inodes per group: 8192
- Inode blocks per group: 512
- RAID stride: 32744
- Flex block group size: 16
- Filesystem created: Wed Mar 18 03:44:05 2015
- Last mount time: Thu Mar 31 22:35:13 2016
- Last write time: Thu Mar 31 22:35:13 2016
- Mount count: 2
- Maximum mount count: -1
- Last checked: Tue Mar 22 18:15:07 2016
- Check interval: 0 (<none>)
- Lifetime writes: 3538 GB
- Reserved blocks uid: 0 (user root)
- Reserved blocks gid: 0 (group root)
- First inode: 11
- Inode size: 256
- Required extra isize: 28
- Desired extra isize: 28
- Journal inode: 8
- Default directory hash: half_md4
- Directory Hash Seed: 420fb49b-9628-4afc-9f31-c3af313ac8c0
- Journal backup: inode blocks
- Journal features: journal_incompat_revoke
- Journal size: 128M
- Journal length: 32768
- Journal sequence: 0x00199921
- Journal start: 1
- root@ubuntu:/etc/lvm/backup# vgcfgrestore -v --file /etc/lvm/archive/root_vg_00000-186308340.vg root_vg
- Found same device /dev/sda5 with same pvid OgbrGhm632xfDN2LPzYOfVa92ltnGdAJ
- Restored volume group root_vg
- root@ubuntu:~# e2fsck /dev/root_vg/root
- e2fsck 1.42.12 (29-Aug-2014)
- e2fsck: Invalid argument while trying to open /dev/root_vg/root
- The superblock could not be read or does not describe a valid ext2/ext3/ext4
- filesystem. If the device is valid and it really contains an ext2/ext3/ext4
- filesystem (and not swap or ufs or something else), then the superblock
- is corrupt, and you might try running e2fsck with an alternate superblock:
- e2fsck -b 8193 <device>
- or
- e2fsck -b 32768 <device>
- root@ubuntu:~# e2fsck -b 8193 /dev/root_vg/root
- e2fsck 1.42.12 (29-Aug-2014)
- e2fsck: Invalid argument while trying to open /dev/root_vg/root
- The superblock could not be read or does not describe a valid ext2/ext3/ext4
- filesystem. If the device is valid and it really contains an ext2/ext3/ext4
- filesystem (and not swap or ufs or something else), then the superblock
- is corrupt, and you might try running e2fsck with an alternate superblock:
- e2fsck -b 8193 <device>
- or
- e2fsck -b 32768 <device>
- root@ubuntu:~# e2fsck -b 32768 /dev/root_vg/root
- e2fsck 1.42.12 (29-Aug-2014)
- e2fsck: Invalid argument while trying to open /dev/root_vg/root
- The superblock could not be read or does not describe a valid ext2/ext3/ext4
- filesystem. If the device is valid and it really contains an ext2/ext3/ext4
- filesystem (and not swap or ufs or something else), then the superblock
- is corrupt, and you might try running e2fsck with an alternate superblock:
- e2fsck -b 8193 <device>
- or
- e2fsck -b 32768 <device>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement