USB 장치에 VMFS를 만들어 ESXi 시스템에서 사용하기
# USB를 호스트에서 사용할 수 있도록 설정 변경
ESXi 시스템에 USB 장치가 연결 되면 ESXi는 이걸 VM에서만 인식할 수 있는 형태로 인식한다. 때문에 호스트인 ESXi에서 사용하기 위해서 약간의 설정 변경이 필요하다.
방법 1 - Disable usbarbitrator service
Navigate to ESX > Configure > System > Advanced System Settings and click "Edit"
Search for USB.arbitratorAutoStartDisabled and set the Value to 1
Reboot the ESXi
방법 2 alternative option
Connect to the ESXi host with SSH
Stop the USB arbitrator service.
/etc/init.d/usbarbitrator stop
Permanently disable the USB arbitrator service after reboot.
chkconfig usbarbitrator off
No reboot is required
# USB 장치에 VMFS 파티션 만들기
USB 장치는 GUI 환경에서는 다룰 수 없기에 콘솔에 접속할 수 있어야 한다.
호스트 -> 관리 -> 서비스 항목으로 이동,
TSM-SSH를 활성화 해준다.
콘솔에 접속해서 vdq -q 명령을 통해 장치를 확인.
[
{
"Name" : "naa.5000cca2b089ea6c",
"VSANUUID" : "",
"State" : "Ineligible for use by VSAN",
"Reason" : "Has partitions",
"StoragePoolState": "Ineligible for use by Storage Pool",
"StoragePoolReason": "Has partitions",
"IsSSD" : "0",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "11444224",
"FormatType" : "512e",
"IsVsanDirectDisk" : "0"
},
{
"Name" : "mpx.vmhba32:C0:T0:L0",
"VSANUUID" : "",
"State" : "Ineligible for use by VSAN",
"Reason" : "Has partitions",
"StoragePoolState": "Ineligible for use by Storage Pool",
"StoragePoolReason": "Has partitions",
"IsSSD" : "0",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "117348",
"FormatType" : "512n",
"IsVsanDirectDisk" : "0"
},
{
"Name" : "t10.NVMe____Samsung_SSD_970_PRO_512GB_______________E93640115C382500",
"VSANUUID" : "",
"State" : "Ineligible for use by VSAN",
"Reason" : "Has partitions",
"StoragePoolState": "Ineligible for use by Storage Pool",
"StoragePoolReason": "Has partitions",
"IsSSD" : "1",
"IsCapacityFlash": "0",
"IsPDL" : "0",
"Size(MB)" : "488386",
"FormatType" : "512e",
"IsVsanDirectDisk" : "0"
}
]
위와 같은 결과 값이 나오는데, USB 장치는 보통 mpx. 으로 시작한다.
# 파티션 작업
먼저 파티션 테이블을 만들어야 한다. VMWare에서는 GPT 형식만 지원한다.
partedUtil mklabel /dev/disks/mpx.vmhba32:C0:T0:L0 gpt
이제 제대로 만들어 졌는지 확인 해 보자.
partedUtil getptbl /dev/disks/mpx.vmhba32:C0:T0:L0
gpt
14959 255 63 240328704
라고 나오면 정상이다. 숫자는 디스크 크기에 따라 다르다.
참고로 위의 숫자의 의미는 다음과 같다.