i am trying through script to add the RDM lun to Linux VM but same script is working for ESXi5.5 and not working for ESXi6.0 . I have give the pseudo code below.
$cmd = 'vmkfstools -r /vmfs/devices/disks/'.$diskid.' '.$rdmpath;
&LogSendCmd(cmd => "sed -i \'/scsi0:1/d\' /vmfs/volumes/$DS1/$vmxfile");
@resp = &LogSendCmd(cmd =>$cmd, slaveBlade => $chassis);
my $rdmpresent = "scsi0:1.present = \"TRUE\" ";
my $rdmmode = "scsi0:1.mode = \"independent-persistent\"";
my $rdmname = "scsi0:1.fileName = \"$rdmpath\" ";
my $dev_type = "scsi0:1.deviceType = \"scsi-hardDisk\" ";
&LogSendCmd(cmd => "( echo $dev_type; echo $rdmname; echo $rdmpresent\) >> /vmfs/volumes/$DS1/$vmxfile");
In case of ESXi5.5 the VM is adding the RDM as lun but in case of ESXi6.0 it is not adding the RDM lun to Linux VM . Please help with clarification.