vmfs5debug

vmfs5debug

Created 週一 09 一月 2012

file access bug

\~ # sbin/partedUtil "getptbl" /vmfs/devices/disks/mpx.vmhba1\:C0\:T1\:L0 unknown 13054 255 63 209715200

209712509 = (13054*255*63-1) // endsector

\~ # /sbin/partedUtil "setptbl" /vmfs/devices/disks/mpx.vmhba1\:C0\:T1\:L0 "gpt" "1 2048 209712509 AA31E02A400F11DB9590000C2911D1B8 0" gpt 0 0 0 0 1 2048 209712509 AA31E02A400F11DB9590000C2911D1B8 0 \~ # /sbin/vmkfstools -C vmfs5 -b 1m -S test /vmfs/devices/disks/mpx.vmhba1\:C0\:T1\:L0 /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0 /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0:1 \~ # /sbin/vmkfstools -C vmfs5 -b 1m -S test /vmfs/devices/disks/mpx.vmhba1\:C0\:T1\:L0 /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0 /vmfs/devices/disks/mpx.vmhba1:C0:T1:L0:1 \~ # /sbin/vmkfstools -C vmfs5 -b 1m -S test /vmfs/devices/disks/mpx.vmhba1\:C0\:T1\:L0\:1 Checking if remote hosts are using this device as a valid file system. This may take a few seconds... Creating vmfs5 file system on "mpx.vmhba1:C0:T1:L0:1" with blockSize 1048576 and volume label "test". Successfully created new volume: 4f3292bd-11d213f0-f55d-000c29266f11 \~ # df Filesystem Bytes Used Available Use% Mounted on VMFS-5 3221225472 652214272 2569011200 20% /vmfs/volumes/datastore1 VMFS-5 107105746944 1018167296 106087579648 1% /vmfs/volumes/test vfat 4293591040 2555904 4291035136 0% /vmfs/volumes/4f2fef18-99f48302-e2f2-000c29c20761 vfat 261853184 133623808 128229376 51% /vmfs/volumes/63027170-67ad75aa-3920-682cf23c1fcf vfat 261853184 8192 261844992 0% /vmfs/volumes/cae1d574-f6e4b4f7-32ba-f92d399e0b39 vfat 299712512 184737792 114974720 62% /vmfs/volumes/4f2fef12-8e18cb56-338a-000c29c20761

update done vmfs_file_read: reading block 0x000068c1 type 0x01 len 0 from pos 1048576 vmfs_file_read: reading block 0x00006901 type 0x01 len 917504 from pos 1179648

2012年01月18日 Reinstall "Vmware ESXi5" clone to "vmware-esxi5-empty-clone" imager "Vmware ESXi5"/datastore1

more Created 週一 09 一月 2012 md5sum a/* 195cb46f16f14fe89860166f6f63c05f a/clonezilla-live-1.2.11-30-amd64.iso b5256aba66c4318532a696d7da2726ff a/clonezilla-live-1.2.11-30-i686-pae.iso 40562d26447207cb5111f94b93957a58 a/linuxmint-12-gnome-cd-nocodecs-32bit.iso 62fb5d750c30a27a26d01c5f3d8df459 a/ubuntu-11.10-desktop-amd64.iso c396dd0f97bd122691bdb92d7e68fde5 a/ubuntu-11.10-desktop-i386.iso

md5sum b/* 195cb46f16f14fe89860166f6f63c05f b/clonezilla-live-1.2.11-30-amd64.iso b5256aba66c4318532a696d7da2726ff b/clonezilla-live-1.2.11-30-i686-pae.iso 40562d26447207cb5111f94b93957a58 b/linuxmint-12-gnome-cd-nocodecs-32bit.iso 62fb5d750c30a27a26d01c5f3d8df459 b/ubuntu-11.10-desktop-amd64.iso b8664a859b9ee6c4e4ca4c7156597f07 b/ubuntu-11.10-desktop-i386.iso

root@debian:/home/partimag/dev/tmp/vmfs-tools/debugvmfs# md5sum a/.* md5sum: a/.: Is a directory md5sum: a/..: Is a directory ea33d9f5caa2542c31f305a686bb0f64 a/.fbb.sf 9405b944724e2727ee9d9801bedc30f5 a/.fdc.sf 7674d33e47abeb36499e2f383d667267 a/.pb2.sf 99a490fe8bf9646fedd1c481da3cd248 a/.pbc.sf cc071aaca002cdf7f92aff4aa2a417cd a/.sbc.sf 354ef6a62692f51a2104f92d481f6cdb a/.vh.sf root@debian:/home/partimag/dev/tmp/vmfs-tools/debugvmfs# md5sum b/.* md5sum: b/.: Is a directory md5sum: b/..: Is a directory ea33d9f5caa2542c31f305a686bb0f64 b/.fbb.sf 9405b944724e2727ee9d9801bedc30f5 b/.fdc.sf b568c0a5fe8f5af12f4e450907c5c3e6 b/.pb2.sf 99a490fe8bf9646fedd1c481da3cd248 b/.pbc.sf cc071aaca002cdf7f92aff4aa2a417cd b/.sbc.sf 354ef6a62692f51a2104f92d481f6cdb b/.vh.sf

debugvmfs> show inode["ubuntu-11.10-desktop-i386.iso"].blocks pos = 8331264 0x2000ff03 debugvmfs> show blkid[0x2000ff03].item Referred Item: pbc.entry[1020].item[2] debugvmfs> show pbc.entry[1020].item[2].blocks

vmfs3 \~ # df Filesystem 1k-blocks Used Available Use% Mounted on visorfs 1312968 261760 1051208 20% / vfat 4192960 2048 4190912 0% /vmfs/volumes/4c6bb2a4-c0e95ed7-eb8f-000c296a0576 vfat 292752 138784 153968 47% /vmfs/volumes/3c3693e8-f77a642a-1910-5c6bdcb26d3a vfat 255716 4 255712 0% /vmfs/volumes/2d2a997b-8c76bd94-e4b0-187efa9dc006 vfat 255716 89928 165788 35% /vmfs/volumes/3f94b573-a48300d9-e8d0-83c751dc1189 vmfs3 3145728 302080 2843648 10% /vmfs/volumes/4b82631a-e7ac98ff-08c0-000c296a0576

debugvmfs -h debugvmfs v0.2.1-patched Syntax: debugvmfs \<device_name...> \<command> \<args...>

Available commands: - cat : Concatenate files and print on standard output - ls : List files in specified directory - truncate : Truncate file - copy_file : Copy a file to VMFS volume - chmod : Change permissions - mkdir : Create a directory - df : Show available free space - show_file_blocks : Show file blocks - get_file_block : Get file block - check_file_blocks : Check file blocks - check_vol_bitmaps : Check volume bitmaps - show_heartbeats : Show active heartbeats - read_block : Read a block - dump_block : Dump a block in hex - get_block_status : Get block status - alloc_block_fixed : Allocate block (fixed) - alloc_block : Find and Allocate a block - free_block : Free block - show_bitmap_item : Show a bitmap item - show : Display value(s) for the given variable - shell : Opens a shell

root@debian:\~# debugvmfs /dev/sda3 df ioctl: Inappropriate ioctl for device ioctl: Inappropriate ioctl for device Block size : 1048576 bytes Total blocks : 3072 Total size : 3072 Mb Allocated blocks : 294 Allocated space : 294 Mb Free blocks : 2778 Free size : 2778 Mb

vmfs-fuse /dev/sda3 /mnt/ ioctl: Inappropriate ioctl for device ioctl: Inappropriate ioctl for device root@debian:\~# cd /mnt/ root@debian:/mnt# ls clonezilla-live root@debian:/mnt# find . -exec md5sum '{}' \; md5sum: .: Is a directory 332baabd2876440d795234085eb9c820 ./.fbb.sf 9ab6256db43d1c6918699dc581c8ee99 ./.fdc.sf adebd8e5c7ac9d05c83caa311a714d65 ./.pbc.sf 5eca69a24e7e8dcb7cee7abd4d608737 ./.sbc.sf 5ad523cf089a006aba242a17889bd9d0 ./.vh.sf md5sum: ./clonezilla-live: Is a directory md5sum: ./clonezilla-live/alternative: Is a directory md5sum: ./clonezilla-live/alternative/testing: Is a directory md5sum: ./clonezilla-live/alternative/testing/source: Is a directory 1548050943ffb243dd7e83bf34b15162 ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-precise.debian-live.tar.gz dd7dc1f7b32906725095c5e4cbfde0fb ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-precise.debian-live.list a47aa545b4b4b82335194019197b1600 ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-oneiric.ubuntu.list 5eb471e2e6d6a3ba9925c66ba3692691 ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-precise.ubuntu.tar.gz 71cd9fe1814e9c2582e462c8b07e3056 ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-precise.ubuntu.list 1233978151901fec21cc4bbd7942e86a ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-oneiric.ubuntu.tar.gz d9204aab4530ff2a036a950918b6926b ./clonezilla-live/alternative/testing/source/SHA1SUMS a549985816352ed88f2b0a2a2a09bdd7 ./clonezilla-live/alternative/testing/source/CHECKSUMS.TXT 4823b90d164ee11326d5ceb9d9ce8f58 ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-oneiric.debian-live.tar.gz dd7dc1f7b32906725095c5e4cbfde0fb ./clonezilla-live/alternative/testing/source/clonezilla-live-src-20120111-oneiric.debian-live.list 3d14f7d080c37572a7850578a6d23c12 ./clonezilla-live/alternative/testing/source/MD5SUMS 5d2cfebbf071bef2b735f9e58c58e5b4 ./clonezilla-live/alternative/testing/clonezilla-live-20110922-oneiric.zip 916c5c1c9bbb298544eaff939bc21d75 ./clonezilla-live/alternative/testing/clonezilla-live-20120111-oneiric.iso 00bc8160be04fe47673d00165ea8b157 ./clonezilla-live/alternative/testing/clonezilla-live-20110912-natty.zip f5c237c36293b0eb698f237428dfd891 ./clonezilla-live/alternative/testing/RELEASE-NOTES-Clonezilla-live.php 32d53ee758d64118645954afb89b8a2e ./clonezilla-live/alternative/testing/SHA1SUMS f38a0798fff82dda41639718e58f9cad ./clonezilla-live/alternative/testing/CHECKSUMS.TXT 0cfa5926bd782d623d01c1e5f3ff130f ./clonezilla-live/alternative/testing/Known-issues-Clonezilla-live.txt 2383802472573467343f1382a329dac8 ./clonezilla-live/alternative/testing/MD5SUMS 1e17d517be3f8815efd8cd9624266c0f ./clonezilla-live/alternative/testing/clonezilla-live-20120111-precise.iso 381b1a507e6844caf8e595b3a9edf47c ./clonezilla-live/alternative/testing/clonezilla-live-20110912-oneiric.zip 381b1a507e6844caf8e595b3a9edf47c ./clonezilla-live/alternative/testing/clonezilla-live-20110922-natty.zip 65d5cf66cfcfef6cbd9b55faede2d5a4 ./clonezilla-live/alternative/testing/ChangeLog-Clonezilla-live.txt md5sum: ./clonezilla-live/alternative/stable: Is a directory md5sum: ./clonezilla-live/alternative/stable/source: Is a directory md5sum: ./clonezilla-live/stable: Is a directory old convert log: ./vmfs5debug/tag%3E%20zzarchive)

Comments