root@mephistos-GA-880GA-UD3H:~# fdisk -l 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: 0x000c0a96 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 1920251903 1920249856 915.7G 83 Linux /dev/sda2 1920253950 1953523711 33269762 15.9G 5 Extended /dev/sda5 1920253952 1953523711 33269760 15.9G 82 Linux swap / Solaris Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt Disk identifier: BFAE2033-B502-4C5B-9959-82E50F8E9920 Device Start End Sectors Size Type /dev/sdb1 72 41961848 41961777 20G Microsoft basic data /dev/sdb2 41961856 3907029106 3865067251 1.8T Microsoft basic data Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt Disk identifier: B6515182-BF5B-4DED-AAB1-5AE489BF23B0 Device Start End Sectors Size Type /dev/sdc1 72 41961848 41961777 20G Microsoft basic data /dev/sdc2 41961856 3907029106 3865067251 1.8T Microsoft basic data Disk /dev/sdd: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt Disk identifier: 378627A1-2696-4DAC-88D1-B90AFD2B1A98 Device Start End Sectors Size Type /dev/sdd1 72 41961848 41961777 20G Microsoft basic data /dev/sdd2 41961856 3907029106 3865067251 1.8T Microsoft basic data Disk /dev/sde: 1.8 TiB, 2000398934016 bytes, 3907029168 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: gpt Disk identifier: BA871E29-DB67-4266-A8ED-E5A33D6C24D2 Device Start End Sectors Size Type /dev/sde1 72 41961848 41961777 20G Microsoft basic data /dev/sde2 41961856 3907029106 3865067251 1.8T Microsoft basic data
root@mephistos-GA-880GA-UD3H:~# lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT sdd |-sdd2 linux_raid_member px4-300r-THXLON:1 27b7ba6d-6a41-dd56-ad4b-7652f461a3b6 `-sdd1 linux_raid_member px4-300r-THXLON:0 b8b8526a-37ef-2a9b-e9e7-c249645dacb0 sdb |-sdb2 linux_raid_member px4-300r-THXLON:1 27b7ba6d-6a41-dd56-ad4b-7652f461a3b6 `-sdb1 linux_raid_member px4-300r-THXLON:0 b8b8526a-37ef-2a9b-e9e7-c249645dacb0 sde |-sde2 linux_raid_member px4-300r-THXLON:1 27b7ba6d-6a41-dd56-ad4b-7652f461a3b6 `-sde1 linux_raid_member px4-300r-THXLON:0 b8b8526a-37ef-2a9b-e9e7-c249645dacb0 sdc |-sdc2 linux_raid_member px4-300r-THXLON:1 27b7ba6d-6a41-dd56-ad4b-7652f461a3b6 `-sdc1 linux_raid_member px4-300r-THXLON:0 b8b8526a-37ef-2a9b-e9e7-c249645dacb0 sda |-sda2 |-sda5 swap 451578bf-ed6d-4ee7-ba91-0c176c433ac9 [SWAP] `-sda1 ext4 fdd535f2-4350-4227-bb5e-27e402c64f04 /
root@mephistos-GA-880GA-UD3H:~# apt-get install mdadm
root@mephistos-GA-880GA-UD3H:~# mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 mdadm: /dev/md0 has been started with 4 drives. root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/md0 root@mephistos-GA-880GA-UD3H:~# mount /dev/md0 /mnt/md0/ mount: unknown filesystem type 'LVM2_member'
root@mephistos-GA-880GA-UD3H:~# apt-get install lvm2
root@mephistos-GA-880GA-UD3H:~# lvmdiskscan /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. /dev/ram0 [ 64.00 MiB] /dev/md0 [ 20.01 GiB] LVM physical volume /dev/ram1 [ 64.00 MiB] /dev/sda1 [ 915.65 GiB] /dev/ram2 [ 64.00 MiB] /dev/ram3 [ 64.00 MiB] /dev/ram4 [ 64.00 MiB] /dev/ram5 [ 64.00 MiB] /dev/sda5 [ 15.86 GiB] /dev/ram6 [ 64.00 MiB] /dev/ram7 [ 64.00 MiB] /dev/ram8 [ 64.00 MiB] /dev/ram9 [ 64.00 MiB] /dev/ram10 [ 64.00 MiB] /dev/ram11 [ 64.00 MiB] /dev/ram12 [ 64.00 MiB] /dev/ram13 [ 64.00 MiB] /dev/ram14 [ 64.00 MiB] /dev/ram15 [ 64.00 MiB] 0 disks 18 partitions 0 LVM physical volume whole disks 1 LVM physical volume
root@mephistos-GA-880GA-UD3H:~# lvdisplay /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. --- Logical volume --- LV Path /dev/66e7945b_vg/vol1 LV Name vol1 VG Name 66e7945b_vg LV UUID No8Pga-YZaE-7ubV-NQ05-7fMh-DEa8-p1nP4c LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 20.01 GiB Current LE 5122 Segments 1 Allocation inherit Read ahead sectors auto
root@mephistos-GA-880GA-UD3H:~# mdadm --assemble /dev/md1 /dev/sdb2 /dev/sdc2 /dev/sdd2 /dev/sde2 mdadm: /dev/md1 has been started with 4 drives.
root@mephistos-GA-880GA-UD3H:~# lvmdiskscan /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. /dev/ram0 [ 64.00 MiB] /dev/md0 [ 20.01 GiB] LVM physical volume /dev/ram1 [ 64.00 MiB] /dev/sda1 [ 915.65 GiB] /dev/md1 [ 5.40 TiB] LVM physical volume /dev/ram2 [ 64.00 MiB] /dev/ram3 [ 64.00 MiB] /dev/ram4 [ 64.00 MiB] /dev/ram5 [ 64.00 MiB] /dev/sda5 [ 15.86 GiB] /dev/ram6 [ 64.00 MiB] /dev/ram7 [ 64.00 MiB] /dev/ram8 [ 64.00 MiB] /dev/ram9 [ 64.00 MiB] /dev/ram10 [ 64.00 MiB] /dev/ram11 [ 64.00 MiB] /dev/ram12 [ 64.00 MiB] /dev/ram13 [ 64.00 MiB] /dev/ram14 [ 64.00 MiB] /dev/ram15 [ 64.00 MiB] 0 disks 18 partitions 0 LVM physical volume whole disks 2 LVM physical volumes
root@mephistos-GA-880GA-UD3H:~# lvdisplay /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. --- Logical volume --- LV Path /dev/3b9b96bf_vg/lv6231c27b LV Name lv6231c27b VG Name 3b9b96bf_vg LV UUID wwRwuz-TjVh-aT6G-r5iR-7MpJ-tZ0P-wjbb6g LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 2.00 TiB Current LE 524288 Segments 2 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Path /dev/3b9b96bf_vg/lv22a5c399 LV Name lv22a5c399 VG Name 3b9b96bf_vg LV UUID GHAUtd-qvjL-n8Fa-OuCo-sqtD-CBzg-M46Y9o LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 3.00 GiB Current LE 768 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Path /dev/3b9b96bf_vg/lv13ed5d5e LV Name lv13ed5d5e VG Name 3b9b96bf_vg LV UUID iMQZFw-Xrmj-cTkq-E1NT-VwUa-X0E0-MpbCps LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 10.00 GiB Current LE 2560 Segments 2 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Path /dev/3b9b96bf_vg/lv7a6430c7 LV Name lv7a6430c7 VG Name 3b9b96bf_vg LV UUID UlFd4y-huNe-Z501-EylQ-mOd6-kAGt-jmvlqa LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 1.00 TiB Current LE 262144 Segments 1 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Path /dev/3b9b96bf_vg/lv47d612ce LV Name lv47d612ce VG Name 3b9b96bf_vg LV UUID pzlrpE-dikm-6Rtn-GU6O-SeEx-3QJJ-cK3cdR LV Write Access read/write LV Creation host, time s-mars-stor-1, 2017-02-04 16:14:49 +0200 LV Status NOT available LV Size 1.32 TiB Current LE 345600 Segments 2 Allocation inherit Read ahead sectors auto --- Logical volume --- LV Path /dev/66e7945b_vg/vol1 LV Name vol1 VG Name 66e7945b_vg LV UUID No8Pga-YZaE-7ubV-NQ05-7fMh-DEa8-p1nP4c LV Write Access read/write LV Creation host, time , LV Status NOT available LV Size 20.01 GiB Current LE 5122 Segments 1 Allocation inherit Read ahead sectors auto
root@mephistos-GA-880GA-UD3H:~# vgdisplay /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. --- Volume group --- VG Name 3b9b96bf_vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 49 VG Access read/write VG Status resizable MAX LV 0 Cur LV 5 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 5.40 TiB PE Size 4.00 MiB Total PE 1415429 Alloc PE / Size 1135360 / 4.33 TiB Free PE / Size 280069 / 1.07 TiB VG UUID Qg8rb2-rQpK-zMRL-qVzm-RU5n-YNv8-qOV6yZ --- Volume group --- VG Name 66e7945b_vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 20.01 GiB PE Size 4.00 MiB Total PE 5122 Alloc PE / Size 5122 / 20.01 GiB Free PE / Size 0 / 0 VG UUID Sy2RsX-h51a-vgKt-n1Sb-u1CA-HBUf-C9sUNT
root@mephistos-GA-880GA-UD3H:~# lvscan /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. inactive '/dev/3b9b96bf_vg/lv6231c27b' [2.00 TiB] inherit inactive '/dev/3b9b96bf_vg/lv22a5c399' [3.00 GiB] inherit inactive '/dev/3b9b96bf_vg/lv13ed5d5e' [10.00 GiB] inherit inactive '/dev/3b9b96bf_vg/lv7a6430c7' [1.00 TiB] inherit inactive '/dev/3b9b96bf_vg/lv47d612ce' [1.32 TiB] inherit inactive '/dev/66e7945b_vg/vol1' [20.01 GiB] inherit
root@mephistos-GA-880GA-UD3H:~# modprobe dm-mod
root@mephistos-GA-880GA-UD3H:~# vgchange -ay /run/lvm/lvmetad.socket: connect failed: No such file or directory WARNING: Failed to connect to lvmetad. Falling back to internal scanning. 5 logical volume(s) in volume group "3b9b96bf_vg" now active 1 logical volume(s) in volume group "66e7945b_vg" now active
root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/1 root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/2 root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/3 root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/4 root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/5 root@mephistos-GA-880GA-UD3H:~# mkdir /mnt/6 root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv6231c27b /mnt/1 root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv22a5c399 /mnt/2 NTFS signature is missing. Failed to mount '/dev/mapper/3b9b96bf_vg-lv22a5c399': Invalid argument The device '/dev/mapper/3b9b96bf_vg-lv22a5c399' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (eg /dev/sda, not /dev/sda1)? Or the other way around? root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv13ed5d5e /mnt/3 root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv7a6430c7 /mnt/4 NTFS signature is missing. Failed to mount '/dev/mapper/3b9b96bf_vg-lv7a6430c7': Invalid argument The device '/dev/mapper/3b9b96bf_vg-lv7a6430c7' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (eg /dev/sda, not /dev/sda1)? Or the other way around? root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv7a6430c7 /mnt/5 NTFS signature is missing. Failed to mount '/dev/mapper/3b9b96bf_vg-lv7a6430c7': Invalid argument The device '/dev/mapper/3b9b96bf_vg-lv7a6430c7' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (eg /dev/sda, not /dev/sda1)? Or the other way around? root@mephistos-GA-880GA-UD3H:~# mount /dev/3b9b96bf_vg/lv47d612ce /mnt/5 NTFS signature is missing. Failed to mount '/dev/mapper/3b9b96bf_vg-lv47d612ce': Invalid argument The device '/dev/mapper/3b9b96bf_vg-lv47d612ce' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (eg /dev/sda, not /dev/sda1)? Or the other way around? root@mephistos-GA-880GA-UD3H:~# mount /dev/66e7945b_vg/vol1 /mnt/6
root@mephistos-GA-880GA-UD3H:/mnt/3# apt-get install vmfs-tools
root@mephistos-GA-880GA-UD3H:/mnt/3# vmfs-fuse /dev/3b9b96bf_vg/lv7a6430c7 /mnt/4 VMFS VolInfo: invalid magic number 0x00000000 VMFS: Unable to read volume information Trying to find partitions Unable to open device/file "/dev/3b9b96bf_vg/lv7a6430c7". Unable to open filesystem
losetup -r /dev/loop0 /dev/mapper/3b9b96bf_vg-lv47d612ce
root@triplesxi:~# apt-get install kpartx
root@triplesxi:~# kpartx -a -v /dev/loop0 add map loop0p1 (253:6): 0 2831153119 linear /dev/loop0 2048
root@triplesxi:~# vmfs-fuse /dev/mapper/loop0p1 /mnt/vmfs/ VMFS: Warning: Lun ID mismatch on /dev/mapper/loop0p1 ioctl: Invalid argument ioctl: Invalid argument
Here we will skip the succession of unsuccessful attempts to copy the virtual machines themselves from the mounted datastor.
As it turned out, files a couple of hundred gigabytes in size cannot be copied:
root@triplesxi:~# cp /mnt/vmfs/tstst/tstst_1-flat.vmdk /root/ cp: error reading '/mnt/vmfs/tstst/tstst_1-flat.vmdk': Input/output error cp: failed to extend '/root/tstst_1-flat.vmdk': Input/output error
Source: https://habr.com/ru/post/322754/
All Articles