Data Backup and Recovery

Connect lun along specific lun id with sdcli snapdrive

francoisbnc
3,284 Views

I'm looking for a way to connect a lun with specific lun id with sdcli disk connect command.

help appreciated

francois

3 REPLIES 3

fjohn
3,284 Views

I'm nut sure you can specify the LUN ID via SDCLI, however you can specify the LUN ID via the Data ONTAP PowerShell Toolkit:

Add-NaLunMap /vol/vol2/lun2.lun -ID 250 viaRPC.iqn.1991-05.com.microsoft:M58-1.home.local

This will "connect" or map the LUN /vol/vol2/lun2.lun using the LUN ID 250 to the igroup viaRPC.iqn.1991-05.com.microsoft:M58-1.home.local

J

francoisbnc
3,284 Views

Hi John,

Server is virtual and luns on are mapped via igroup of vsphere host as rdm, so connecting with others ways than sdcli doesn't work, because disk are not listed under snapdrive/disk on computer management.

With this command don't have possibility to set lun id
sdcli disk connect -p nas-lab-ls:/vol/iscsi_sql_dat/lun.lun -d x: -dtype dedicated -I feg-sql2  iqn.1991-05.com.microsoft:feg-sql2.labls.net

francois

fjohn
3,284 Views

Did you try rescanning the disks in the guest/restarting the snapdrive service after reconnecting the LUN this way?  From PowerShell, to rescan a disk:

"rescan" | diskpart

J

Public