본문 바로가기

Storage

How to use Hexdump

Hexdump 도구를 사용하여, VMFS가 위치한 Disk Device의 On-disk 정보를 수집할 수 있습니다.

 

1. 우선 Volume의 NAA ID 및 Partition Number 확인

# vmkfstools -P -v 10 /vmfs/volumes/645679753b6cd94539b8c824_jhaewon_iscsi_0
VMFS-6.82 (Raw Major Version: 24) file system spanning 1 partitions.
File system label (if any): 645679753b6cd94539b8c824_jhaewon_iscsi_0
Mode: public ATS-only
Capacity 536602476544 (511744 file blocks * 1048576), 127677759488 (121763 blocks) avail, max supported file size 70368744177664
Volume Creation Time: Sat May  6 16:00:55 2023
Files (max/free): 16384/16239
Ptr Blocks (max/free): 0/0
Sub Blocks (max/free): 16384/16113
Secondary Ptr Blocks (max/free): 256/255
File Blocks (overcommit/used/overcommit %): 0/389981/0
Ptr Blocks  (overcommit/used/overcommit %): 0/0/0
Sub Blocks  (overcommit/used/overcommit %): 0/271/0
Large File Blocks (total/used/file block clusters): 1000/88/860
Volume Metadata size: 1510866944
Disk Block Size: 512/512/0
UUID: 645679b7-86144080-f88d-78ac44128f94 ### <-- !!
Logical device: 645679b6-5323cfca-62bf-78ac44128f94
Partitions spanned (on "lvm"):
        naa.60060160c0304e00a47956645b519394:1 ### <-- !!
Unable to connect to vaai-nasd socket [No such file or directory]
Is Native Snapshot Capable: NO
OBJLIB-LIB: ObjLib cleanup done.
WORKER: asyncOps=0 maxActiveOps=0 maxPending=0 maxCompleted=0

 

2. Hexdump를 이용하여, 위에서 확인한 Device에 대해서 수행
## naa.60060160c0304e00a47956645b519394:1 에서 naa.60060160c0304e00a47956645b519394는 Device 명이고, 1은 Partition Number

# hexdump -C /vmfs/devices/disks/naa.60060160c0304e00a47956645b519394:1 | more
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00100000  0d d0 01 c0 06 00 00 00  15 00 00 00 02 16 00 00  |................|
00100010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00100020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 60 06  |..............`.|
00100030  01 60 c0 30 4e 00 a4 79  56 64 5b 51 93 94 56 52  |.`.0N..yVd[Q..VR|
00100040  41 49 44 20 00 00 00 00  00 00 00 00 00 00 00 00  |AID ............|
00100050  00 00 00 00 00 00 00 00  00 00 00 02 00 00 00 ec  |................|
00100060  86 ff 7c 00 00 00 01 00  00 00 01 00 00 00 00 00  |..|.............|
00100070  00 00 03 00 00 00 00 00  00 00 00 00 10 01 00 00  |................|
00100080  00 00 b7 79 56 64 1c 6d  e3 80 d0 2a 78 ac 44 12  |...yVd.m...*x.D.|
00100090  8f 94 c0 9f b8 82 08 fb  05 00 19 d9 b8 82 08 fb  |................|
001000a0  05 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
001000b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
001000c0  00 00 00 00 00 00 00 00  00 00 00 10 00 00 cf 07  |................|
001000d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|

<snip>

 

hexdump 도구의 출력 결과는 다음과 같이 구분됩니다.

 

 

'Storage' 카테고리의 다른 글

Corrupted journal resource cluster metadata  (0) 2023.07.26
How Thin Provisioning Work - Space Reclamation  (0) 2023.06.21
How APD(All-Path Down) Works  (4) 2023.06.08
vSAN Objects(vDisk, Home Namespace and etc)  (0) 2023.06.01
ATS(Atomic Test & Set)  (0) 2023.05.15