Hi everyone,
I am new to esx.
I want to attach a iscsi disk to vm through command line.
Here are the steps i am doing
i did login using my iscsi HBA and got two LUN's
~ # esxcfg-scsidevs -l
t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99
Device Type: Direct-Access
Size: 4096 MB
Display Name: IET iSCSI Disk (t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99 )
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.9454450000000000DA494E0658F634BEEEE3CD4F60 0E8B99
Devfs Path: /vmfs/devices/disks/t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B 99
Vendor: IET Model: VIRTUAL-DISK Revis: 0
SCSI Level: 4 Is Pseudo: false Status: degraded
Is RDM Capable: true Is Removable: false
~ # esxcfg-scsidevs -l
t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99
Device Type: Direct-Access
Size: 4096 MB
Display Name: IET iSCSI Disk (t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99
Devfs Path: /vmfs/devices/disks/t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99
Vendor: IET Model: VIRTUAL-DISK Revis: 0
SCSI Level: 4 Is Pseudo: false Status: degraded
Is RDM Capable: true Is Removable: false
Is Local: false Is SSD: false
Other Names:
vml.01000000006164393465343630383536663433656265653365646366343036653062383939564952545541
VAAI Status: unknown
t10.9454450000000000E9D27747FE52C42AE5E954AD9E114098
Device Type: Direct-Access
Size: 5120 MB
Display Name: IET iSCSI Disk (t10.9454450000000000E9D27747FE52C42AE5E954AD9E114098)
Multipath Plugin: NMP
Console Device: /vmfs/devices/disks/t10.9454450000000000E9D27747FE52C42AE5E954AD9E114098
Devfs Path: /vmfs/devices/disks/t10.9454450000000000E9D27747FE52C42AE5E954AD9E114098
Vendor: IET Model: VIRTUAL-DISK Revis: 0
SCSI Level: 4 Is Pseudo: false Status: degraded
Is RDM Capable: true Is Removable: false
Is Local: false Is SSD: false
Other Names:
vml.01000100003965326437373734656632353463613235653965343564616539313130343839564952545541
VAAI Status: unknown
Now i want to attach these disks to my guest os.
for the i created partition
/sbin/partedUtil getptbl /vmfs/devices/disks/t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99
gpt
522 255 63 8388608
1 128 8388508 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
then i did
vmkfstools -P -h '/vmfs/volumes/vTAFStorage_5106_1'
VMFS-5.54 file system spanning 1 partitions.
File system label (if any): vTAFStorage_5106_1
Mode: public
Capacity 3.8 GB, 3.1 GB available, file block size 1 MB
UUID: 5024b22e-a180d3d6-33df-003048b94818
Partitions spanned (on "lvm"):
t10.9454450000000000DA494E0658F634BEEEE3CD4F600E8B99:1
Is Native Snapshot Capable: NO
Now I can see my device in "/vmfs/volumes/".
Now I want to attach this disk to my guest OS without using GUI(either through command line or by editing some config file).
Please Guide me how i can achieve it ?
Thanks in advance.