Hi All ,
I am writing application to access the disk by using the advanced transport methods for Linux 64 bit. I have downloaded and instaleed VDDK 5.1.1 for Linux 64 bit. When i access the disk by SAN or hotadd it is saying that SAN and hotadd supported but it is not opening the disk with SAN or hot-add. Instead it is opening by ndb all the time. command line parameters are:
./sanv_rep -info -host <name> -user root -password <password> -mode san -libdir /usr/lib/vmware-vix-disklib -vm vmPath=ha-datacenter/vm/TEST "[datastore1] TEST/TEST.vmdk"
LOG IS AS FOLLOWS
==================================================================================================================================================
Log: VixDiskLib: linuxVerifySSLCertificates is 0
Log: VixDiskLib: config options: libdir '/usr/lib/vmware-vix-disklib', tmpDir '/tmp/vmware-root'.
Log: OBJLIB-LIB : Objlib initialized.
Log: VixDiskLib: Attempting to locate advanced transport module in "/usr/lib/vmware-vix-disklib".
Log: VixDiskLib: Advanced transport plugin was successfully loaded into vixDiskLib.
Log: VixDiskLib: Enabling advanced transport modes.
Log: OBJLIB-LIB : Objlib initialized.
Log: VixDiskLib: Transport modes available: file:nbdssl:nbd:san.
Log: VMware VixDiskLib (5.1) Release build-1042608
Log: 2013-05-31T20:40:33.357+05:30 [7F503C1C5720 info 'Libs'] GVMOMI request limit: -1
Log: VixDiskLib: VixDiskLibResolveHostName: resolving 172.168.1.114
Log: VixDiskLib: VixDiskLibResolveHostName: returned 172.168.1.114
Log: VixDiskLib: Added thumbprint 69:35:B3:A9:BB:47:DB:B0:8C:C9:49:C1:8C:37:B7:D3:FD:BB:58:D8 to sslIdDb for 172.168.1.114
Log: VixDiskLibVimResolveHostName: Resolving IP address for hostname 172.168.1.114.
Log: VixDiskLibVimResolveHostName: Resolved to 172.168.1.114.
Log: VixDiskLibVim: VixDiskLibVimLogin
Warning: HostAgent is not a VirtualCenter, cannot disable sVmotion.
Log: VixDiskLibVim: VixDiskLibVimLogout
Log: VixDiskLib: VixDiskLibResolveHostName: resolving 172.168.1.114
Log: VixDiskLib: VixDiskLibResolveHostName: returned 172.168.1.114
Log: VixDiskLib: Added thumbprint 69:35:B3:A9:BB:47:DB:B0:8C:C9:49:C1:8C:37:B7:D3:FD:BB:58:D8 to sslIdDb for 172.168.1.114
Log: VixDiskLibVimResolveHostName: Resolving IP address for hostname 172.168.1.114.
Log: VixDiskLibVimResolveHostName: Resolved to 172.168.1.114.
Log: VixDiskLibVim: VixDiskLibVimLogin
Log: VixDiskLibVim: TicketFindVMByInvPath: vmxPath = -ha-datacenter/vm/TEST-
Log: VixDiskLibVim: VixDiskLibVimLoadVM
Log: VixDiskLibVim: TicketLoadInternalSic
Log: VixDiskLibVim: VixDiskLibVimLoadVMCb
Log: VixDiskLibVim: TicketLoadNfcTicket: Request RandomAccessRO diskKey = 2000, readOnly = 1, openSnapshot = 0
Log: VixDiskLibVim: VixDiskLibVimLogout
Log: VixDiskLib: Found Thumbprint for 172.168.1.114 in memory database
Log: VixDiskLib: Thumbprint for 172.168.1.114 not found in memory database
Log: NBD_ClientOpen: attempting to create connection to ha-nfc://[datastore1] TEST/TEST.vmdk@172.168.1.114:902
Log: Opening file [datastore1] TEST/TEST.vmdk (ha-nfc://[datastore1] TEST/TEST.vmdk@172.168.1.114:902)
Log: DISKLIB-LINK : Opened 'ha-nfc://[datastore1] TEST/TEST.vmdk@172.168.1.114:902' (0x1e): custom, 33554432 sectors / 16 GB.
Log: DISKLIB-LIB : Opened "ha-nfc://[datastore1] TEST/TEST.vmdk@172.168.1.114:902" (flags 0x1e, type custom).
Disk "[datastore1] TEST/TEST.vmdk" is open using transport mode "nbd".
capacity = 33554432 sectors
number of links = 1
adapter type = LsiLogic SCSI
BIOS geometry = 0/0/0
physical geometry = 2088/255/63
Transport modes supported by vixDiskLib: file:san:hotadd:nbdssl:nbd
Log: VixDiskLib: VixDiskLibResolveHostName: resolving 172.168.1.114
Log: VixDiskLib: VixDiskLibResolveHostName: returned 172.168.1.114
Log: VixDiskLib: Added thumbprint 69:35:B3:A9:BB:47:DB:B0:8C:C9:49:C1:8C:37:B7:D3:FD:BB:58:D8 to sslIdDb for 172.168.1.114
Log: VixDiskLibVimResolveHostName: Resolving IP address for hostname 172.168.1.114.
Log: VixDiskLibVimResolveHostName: Resolved to 172.168.1.114.
Log: VixDiskLibVim: VixDiskLibVimLogin
Warning: HostAgent is not a VirtualCenter, cannot enable sVmotion.
Log: VixDiskLibVim: VixDiskLibVimLogout
Log: VixDiskLib: VixDiskLib_Exit called. Unmatched Init calls so far: 1.
Log: OBJLIB-LIB : ObjLib cleanup done.
Log: 2013-05-31T20:40:37.170+05:30 [7F503C1C5720 trivia 'Default'] Starting to shut down worker thread pool.
Log: 2013-05-31T20:40:38.170+05:30 [7F503C1C5720 trivia 'Default'] Worker thread pool is shut down.
===================================================================================================================================================
I have modified code by calling VixDiskLib_PrepareForAccess and VixDiskLib_EndForAccess calling unconditionally. Still it didnt help.
Can u please help me to fix this issue.
thanks,
Pavan