21640452-2-Lun-Masking

Embed Size (px)

Citation preview

  • 8/11/2019 21640452-2-Lun-Masking

    1/5

    Lun Masking

    LUN MASKING USING VCM database

    In previous session total 15 devices have been created and are made visible

    to hosts through mapping.

    Once the Luns are mapped, to enable host to access and perform I/O and

    hide the Luns from unwanted hosts, the Luns should be masked.

    To mask the Luns, !" database should be created and the information

    related to Luns and the hosts should be updated to !" database

    #edicate a drive to !" database $In our scenario it is %%%%&

    LAB EXERCISE

    1& create a command file 'un1( vi m)vcm set device %%%% attribute *vcmdb+

    w-

    & un s)mconfigure

    'un1( s)mconfigure 0sid 2v 0f m)vcm 2commit 0nop

    3& 4pdate s)mapi.db 'un1( s)mcfg discover

    6& start vcmdb

    (Strictly prohibited to use, it makes all hosts unreachable to storage)

    'un1( s)mmask db 0sid init 0f m)vcm

    5& List masked devices

    'un1(s)mmaskdb list database

    7& #ispla) 89: 'un1(s)mmask list hba

    & #iscover 89:

    'un1(s)mmask discover hba

    8) :ssign lun to 'un1 and update vcmdb

    'un1(s)mmask 0sid add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 17c 'un1(s)mmask 0sid add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 15c

    'un1(s)mmask 0sid add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 1c 'un1(s)mmask 0sid add dev %%%1 0wwn 1%%%%%%% 2p % 0dir c

    ;& efresh the database

    'un1( s)mmask refresh

  • 8/11/2019 21640452-2-Lun-Masking

    2/5

    10) !reate an alias to host wwn 2 To check the wwn number of host

    'un1( fcinfo or s)mmask list hba

    2 To create an alias

    'un1(s)mmask 0sid 0wwn 1%%%%%%%%%% rename 'un1/port%

    2 efresh the database

    'un1( s)mmask refresh

    11) !heck the status of ports and enable vcm flag if disabled 'un1( s)mcfg 0sid 0v list 2p % 2sa 1c 'un1( s)mcfg 0sid 0v list 2p % 2sa c

    'un1( s)mcfg 0sid 0v list 2p % 2sa 17c 'un1( s)mcfg 0sid 0v list 2p % 2sa 15c

    $Note: Participants are requested, not to execute the steps to enable VC!lags on ports in lab sessions as they raise complications, please !ollo"

    the demo by y our instructor attenti#ely)

    12) create a command file to enable vcm port flag on all ports, before runningthe configuration ,make sure the concerned port is offline, once the configurationis save, bring the port online

    On director c !ort"

    a& !reate a command file

    'un1( vi vcmport 'et port 1c

  • 8/11/2019 21640452-2-Lun-Masking

    3/5

  • 8/11/2019 21640452-2-Lun-Masking

    4/5

    On director %c !ort" a& !reate a command file

    'un1( vi vcmport

    'et port 17c

  • 8/11/2019 21640452-2-Lun-Masking

    5/5