Data Backup and Recovery

Connect lun along specific lun id with sdcli snapdrive

francoisbnc

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

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public