0% found this document useful (0 votes)
28 views5 pages

2 Lun Maskings

The document discusses configuring LUN masking using VCM database. It involves creating a VCM database on a dedicated drive, updating the database with LUN and host information, assigning LUNs to hosts, and enabling VCM flags on FC ports. It also covers bringing LUNs under Veritas Volume Manager control by initializing disks, creating disk groups and volumes, mounting the volumes to add and verify data.

Uploaded by

abhijazz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views5 pages

2 Lun Maskings

The document discusses configuring LUN masking using VCM database. It involves creating a VCM database on a dedicated drive, updating the database with LUN and host information, assigning LUNs to hosts, and enabling VCM flags on FC ports. It also covers bringing LUNs under Veritas Volume Manager control by initializing disks, creating disk groups and volumes, mounting the volumes to add and verify data.

Uploaded by

abhijazz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 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 .11 2v 0f m)vcm 2commit 0nop
3& 4pdate s)m5api.db
'un1( s)mcfg discover
6& start vcmdb
(Strictly prohibited to use, it makes all hosts unreachable to storage)
'un1( s)mmask db 0sid .11 init 0f m)vcm
5& List masked devices
'un1(s)mmaskdb list database
7& #ispla) 89:
'un1(s)mmask list hba
1& #iscover 89:
'un1(s)mmask discover hba
8) :ssign lun to 'un1 and update vcmdb
'un1(s)mmask 0sid .11 add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 17c
'un1(s)mmask 0sid .11 add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 15c
'un1(s)mmask 0sid .11 add dev %%%1 0wwn 1%%%%%%% 2p % 0dir 1c
'un1(s)mmask 0sid .11 add dev %%%1 0wwn 1%%%%%%% 2p % 0dir .c
;& /efresh the database
'un1( s)mmask refresh
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 .11 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 .11 0v list 2p % 2sa 1c
'un1( s)mcfg 0sid .11 0v list 2p % 2sa .c
'un1( s)mcfg 0sid .11 0v list 2p % 2sa 17c
'un1( s)mcfg 0sid .11 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 running
the configuration ,make sure the concerned port is offline, once the configuration
is save, bring the port online
On director c !ort"
a& !reate a command file
'un1( vi vcmport
'et port 1c<% !"5'T:T= * enable+
>,
b& Offline the port
'un1( s)mcfg 0sid .11 offline 0dir 1c 0p %

c& /un the configuration
'un1( s)mconfigure 0sid .11 0v 0f vcmport commit 0nop
d& Online the port
'un1( s)mcfg 0sid .11 online 0dir 1c 0p %
e& /efresh the database
'un1(s)mmask refresh
f& 4pdate s)m5api.db
'un1(s)mcfg discover

On director #c !ort"
a& !reate a command file
'un1( vi vcmport
'et port .c<% !"5'T:T= * enable+
>,
b& Offline the port
'un1( s)mcfg 0sid .11 offline 0dir .c 0p %
c& /un the configuration
'un1( s)mconfigure 0sid .11 0v 0f vcmport commit 0nop
d& Online the port
'un1( s)mcfg 0sid .11 %nline 0dir .c 0p %
e& /efresh the database
'un1(s)mmask refresh
f& 4pdate s)mapi5db.bin
'un1(s)mcfg discover
On director $c !ort"
a& !reate a command file
'un1( vi vcmport
'et port 15c<% !"5'T:T= * enable+
>,<

b& Offline the port
'un1( s)mcfg 0sid .11 offline 0dir 15c 0p %

c& /un the configuration
'un1( s)mconfigure 0sid .11 0v 0f vcmport commit 0nop
d& Online the port
'un1( s)mcfg 0sid .11 %nline 0dir 15c 0p %
e& /efresh the database
'un1(s)mmask refresh
f& 4pdate s)mapi5db.bin
'un1(s)mcfg discover
On director %c !ort"
a& !reate a command file
'un1( vi vcmport
'et port 17c<% !"5'T:T= * enable+
>,<
b& Offline the port
'un1( s)mcfg 0sid .11 offline 0dir 17c 0p %

c& /un the configuration
'un1( s)mconfigure 0sid .11 0v 0f vcmport commit 2nop

d& Online the port
'un1( s)mcfg 0sid .11 online 0dir 17c 0p %
e& /efresh the database
'un1(s)mmask refresh
f& 4pdate s)mapi5db.bin
'un1(s)mcfg discover

13& !onfigure the controller
a& !heck the controller
'un1(fcinfo or cfgadm 0al
b& !onfigure the controller$e.g. !3&
'un1(cfgadm 0c configure c3
C) 4pdate s)mapi5db.bin
'un1(s)mcfg discover
14) List the devices assigned to the host
'un1( s)mmaskdb list database

No& 'ount t(e de)ice on t(e (ost*
1. 9ring the L4? under the control of veritas volume manager.
a& =nable dmp controller of eritas olume "anager
i. List the controller
'un1( v@dmpadm list ctlr
ii. If the controller is found disabled, enable it.
'un1( v@dmpadm 0 c enable ctlr c3
iii. !onfigure the controller at O' level.
'un1( cfgadm 0 c configure c3.
iv. 'earch the disks
'un1( format
v. Identif) the device with the help of s)min, and label the disks.
Once disk is labeled.
'un1( v@disk scandisks
vi. List the disks
'un1( v@disk list
vii. InitialiAe the disk
'un1( v@disksetup 0i emc%151
viii. !reate a volume manager disk $vmdisk& b) creating a disk
group.
'un1( v@dg init 'un1dg disk1*emc%151
ix. !reate volume using v@assist
'un1( v@assist 0g 'un1dg make vol%1 1%%m
x. erif) the disk groups
'un1( v@disk 0 o list alldgs
@i. !heck the volumes
xii. 'un1( v@print 0 h
@iii. !reate the file s)stem on the volume.
'un1( newfs /dev/v@/rdsk/'un1dg/vol%1
@iv. !reate a mount point
'un1( mkdir /stdvol
@v. "ount the volume
'un1( mount /dev/v@/dsk/'un1dg/vol%1 /stdvol
@vi. :dd some data
'un1( cd /stdvol
'un1( cp /etc/fB .
@vii. !heck the data
'un1( ls

@viii. 4nmount the volume
'un1( umount /stdvol
@i@. #eport the volume
'un1( v@dg deport 'un1dg

You might also like