2021年8月7日 星期六

[Vmware] 如何 mount ESXi6 Disk & mount vmdk

  • mount EXSi (假設sda1)
  • #apt-get install vmfs6-tools
    #vmfs-fuse /dev/sda1 /mnt/vmware
  • mount vmdk (假設image.vmdk)
  • #apt install qemu-utils
    #modprobe nbd
    #qemu-nbd -r -c /dev/nbd1 ./image.vmdk
    #mount /dev/nbd1
  • mount RAID (假設image.vmdk)
  • 如果底層是使用RAID,則mount可能會發生以下錯誤
    mount: unknown filesystem type 'linux_raid_member'
    解決方法:
    1. 確認RAID是否已生成
    #cat /proc/mdstat
    Personalities : [raid1] [raid6] [raid5] [raid4]
    md1 : active raid1 sdb2[1] sda2[0]
    136448 blocks [2/2] [UU]

    2. 若沒有生成RAID,則 #fdisk -l
    //则会显示/dev/nbd1的partion
    /dev/nbd1p1
    /dev/nbd1p2
    /dev/nbd1p3
    再生成正确的partion to md1
    mdadm --assemble --run /dev/md1 /dev/nbd1p3

    3. 确认RAID m1已生成,即可挂载
    #mount /dev/md1 /mnt

1 則留言:

  1. Titanium Cross Necklace & Necklace | Etched Crossword Clue | TITIA
    【Cricket】titanium titanium max trimmer cross necklace titanium septum jewelry 【WG】titanium cross necklace blue titanium 【VIP】titanium chi titanium flat irons cross necklace 【Cricket】titanium cross 출장안마 【Cricket】titanium cross

    回覆刪除