1. SSH를 활성화 합니다.
2. SSH로 ESXi 6.5서버에 접속합니다.
(Putty 또는 Mac 에서 terminal 이용)
3. fdisk -l 명령어로 디스크 확인, 이 디스크를 RDM하고자 함 -> WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD
***
*** The fdisk command is deprecated: fdisk does not handle GPT partitions. Please use partedUtil
***
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/t10.SanDisk_Cruzer_Blade____4C530203110624117083: 7821312 sectors, 3819M
Logical sector size: 512
Disk identifier (GUID): 16df9f96-0478-428f-89ad-f405bd23a87a
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7821278
Number Start (sector) End (sector) Size Code Name
1 64 8191 4064K 0700
5 8224 520191 249M 0700
6 520224 1032191 249M 0700
7 1032224 1257471 109M 0700
8 1257504 1843199 285M 0700
9 1843200 7086079 2560M 0700
Disk /dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4p1 1 311 2490240 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary
/dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4p2 311 572 2097152 fd Linux raid autodetect
Partition 2 does not end on cylinder boundary
/dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4p3 588 121589 971941584 fd Linux raid autodetect
Found valid GPT with protective MBR; using GPT
Disk /dev/disks/t10.ATA_____MTFDDAK256MBF2D1AN1ZABHA_________________________1644147A6A0F: 500118192 sectors, 2534M
Logical sector size: 512
Disk identifier (GUID): 92872874-8a48-4be5-a390-1b269e10a786
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Number Start (sector) End (sector) Size Code Name
1 128 500118152 238G 0700
Disk /dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/disks/t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUDp1 * 1 121602 976762583 b Win95 FAT32
[root@localhost:~] ls /dev/disks/ -l
total 4414388436
-rw------- 1 root root 256060514304 May 17 02:11 t10.ATA_____MTFDDAK256MBF2D1AN1ZABHA_________________________1644147A6A0F
-rw------- 1 root root 256060428800 May 17 02:11 t10.ATA_____MTFDDAK256MBF2D1AN1ZABHA_________________________1644147A6A0F:1
-rw------- 1 root root 1000204886016 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD
-rw------- 1 root root 1000204884992 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD:1
-rw------- 1 root root 1000204886016 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4
-rw------- 1 root root 2550005760 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:1
-rw------- 1 root root 2147483648 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:2
-rw------- 1 root root 995268182016 May 17 02:11 t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:3
-rw------- 1 root root 4004511744 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083
-rw------- 1 root root 4161536 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:1
-rw------- 1 root root 262127616 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:5
-rw------- 1 root root 262127616 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:6
-rw------- 1 root root 115326976 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:7
-rw------- 1 root root 299876352 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:8
-rw------- 1 root root 2684354560 May 17 02:11 t10.SanDisk_Cruzer_Blade____4C530203110624117083:9
lrwxrwxrwx 1 root root 48 May 17 02:11 vml.0000000000766d68626133323a303a30 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:1 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:1
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:5 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:5
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:6 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:6
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:7 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:7
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:8 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:8
lrwxrwxrwx 1 root root 50 May 17 02:11 vml.0000000000766d68626133323a303a30:9 -> t10.SanDisk_Cruzer_Blade____4C530203110624117083:9
lrwxrwxrwx 1 root root 73 May 17 02:11 vml.010000000020202020202020203136343431343741364130464d5446444441 -> t10.ATA_____MTFDDAK256MBF2D1AN1ZABHA_________________________1644147A6A0F
lrwxrwxrwx 1 root root 75 May 17 02:11 vml.010000000020202020202020203136343431343741364130464d5446444441:1 -> t10.ATA_____MTFDDAK256MBF2D1AN1ZABHA_________________________1644147A6A0F:1
lrwxrwxrwx 1 root root 74 May 17 02:11 vml.0100000000202020202057442d57583331413235334b525544574443205744 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD
lrwxrwxrwx 1 root root 76 May 17 02:11 vml.0100000000202020202057442d57583331413235334b525544574443205744:1 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWX31A253KRUD:1
lrwxrwxrwx 1 root root 74 May 17 02:11 vml.0100000000202020202057442d575842314138354c4a314a34574443205744 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4
lrwxrwxrwx 1 root root 76 May 17 02:11 vml.0100000000202020202057442d575842314138354c4a314a34574443205744:1 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:1
lrwxrwxrwx 1 root root 76 May 17 02:11 vml.0100000000202020202057442d575842314138354c4a314a34574443205744:2 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:2
lrwxrwxrwx 1 root root 76 May 17 02:11 vml.0100000000202020202057442d575842314138354c4a314a34574443205744:3 -> t10.ATA_____WDC_WD10SPCX2D24HWST1_________________________WD2DWXB1A85LJ1J4:3
5. /vmfs/volumes 이 경로에 가면 데이터스토어 만들때 생성한 볼륨이 확인됩니다.
저는 SSD > RDM이란 디렉토리를 하위에 만들고 RDM파일을 생성하여 물리적 하드디스크를 매핑할 것입니다.
[root@localhost:/vmfs/volumes] ls
591673ed-9c377eb6-7060-002655e41419 591a4706-07fe9960-cdd5-002655e41419 808dece9-3fa86c88-026d-6630ff07923e SSD b4a991e3-585c0f57-7fa5-554f83bd8ec4
6. 아래 명령어를 참고하여 물리하드디스크를 가르키는 파일을 만들어주세요.
(각자 vml_id가 다르기 때문에 아래 명령어를 그대로 사용하면 안됩니다.)
(아래 명령어를 메모장에 붙여 넣고 보세요. 엔터를 친곳 없습니다.)
vmkfstools -z /vmfs/devices/disks/vml.0100000000202020202057442d57583331413235334b525544574443205744 /vmfs/volumes/SSD/RDM/WD1TB_NAS_BAK.vmdk -a lsilogic
7. ESXi 6.5 web client에서 vm을 하나 만듭니다. 그리고 편집모드로 들어가서 기존하드디스크로 추가합니다.
rdm hdd를 xpennology nas 장착하여 잘 사용하고 있습니다. 실제 synology nas에 장착하여 그대로 마이그레이션이 가능합니다.