You are on page 1of 5

EMC 10

Allocating, Unallocating Storage on a EMC SAN


This page details on how to add/remove and zone additional storage from a EMC SAN
Adding Storage
1. List all the available devices (hypers) on the EMC San
# symdev -noport list
Backup the VCM database
# symmaskdb backup
2. Create a Meta volume
# cat metafile.cmd
form meta from dev 4A4 config=striped, stripe_size = 2 cyl;
add dev 4A5:4A7 to meta 4A4;
3. preview, prepare and commit the changes
# symconfigure -f metafile.cmd preview -nop
# symconfigure -f metafile.cmd prepare -nop
# symconfigure -f metafile.cmd commit -nop
Check the configuration
# symdev show 4A4
4. Map meta volume to front-end directors
# cat mapfile.cmd
map dev 4A4 to dir 4b:1 target=0, lun=5;
map dev 4A4 to dir 13a:1 target=0, lun=5;
5. preview, prepare and commit the changes
# symconfigure -f mapfile.cmd preview -nop
# symconfigure -f mapfile.cmd prepare -nop
# symconfigure -f mapfile.cmd commit -nop
Check the configuration
# symdev -sa 4b -p 1 -fibre list
# symdev -sa 13a -p 1 -fibre list
6. Mask the meta volume
# symmask -wwn <WWPN> -dir 13a -p 1 add devs 4A4
# symmask -wwn <WWPN> -dir 4a -p 1 add devs 4A4
Note: the wwn are the WWPN's of the host HBA's which you obtain from the server.
update the VCM database
# symmask refresh -nop

Removing Storage
1. Remove the LUN masking configuration
# symmask -wwn <WWPN> -dir 13a -p 1 remove devs 4A4

# symmask -wwn <WWPN> -dir 4a -p 1 remove devs 4A4


Note: the wwn are the WWPN's of the host HBA's which you obtain from the server.
update the VCM database
# symmask refresh -nop
2. offline the volume 4A4
# symdev -sid 056 not_ready 4A4 -nop
Check the configuration
# symdev show 4A4
3. Unmap the meta volume from Front-end directors
# cat unmapfile.cmd
unmap dev 4A4 from dir 4b:1;
unmap dev 4A4 from dir 13b:1;
4. Remove the volume from the VCM database
# symconfigure -f unmapfile.cmd preview -nop
# symconfigure -f unmapfile.cmd prepare -nop
# symconfigure -f unmapfile.cmd commit -nop
Check the configuration
# symdev -sa 4b -p 1 -fibre list
# symdev -sa 13a -p 1 -fibre list

Zoning a Host to use the Additional storage


1. telnet to the brocade switches and login as user admin
switch 1 - fabric A (FAB_A)
switch 2 - fabric B (FAB_B)
2. Create aliases for the hosts HBA's on each switch
switch_1> alicreate "ukwsv16_HBA_0","10:00:00:c9:2f:a1:7a"
switch_2> alicreate "ukwsv16_HBA_1","10:00:00:c9:2f:a1:7b"
3. Create the storage zones using the aliases on each switch
switch_1> zonecreate "Z_UKWSV16_A", "UKWSV16_HBA_0"
switch_2> zonecreate "Z_UKWSV16_B", "UKWSV16_HBA_1"
Check the configuration
switch_1> zoneshow Z_UKWSV16_A
switch_2> zoneshow Z_UKWSV16_B
4. Add the zones to the fabrics on each switch
switch_1>
switch_1>
switch_1>
switch_1>

cfgshow FAB_A
cfgadd "FAB_A","Z_UKWSV16_A"
cfgsave
cfgenable FAB_A

Check the configuration


switch_1> zoneshow
switch_2>
switch_2>
switch_2>
switch_2>

cfgshow FAB_B
cfgadd "FAB_B","Z_UKWSV16_B"
cfgsave
cfgenable FAB_A

Check the configuration

switch_2> zoneshow

Zoning Architecture

Zoning is switch function that allows devices within the fabric to be logically segmented into
groups that can communicate with each other. When a device (host) logins into a fabric it is
registered by the Name Server, it goes through a discovery process with other devices
registered as SCSI FCP in the Name Server.
A zone conists of a single HBA port and one or more storage ports. A collection of zones is
called a zoneset A zoneset can be active or inactive but only one zoneset can be active at any
one time within a switch. Remember a SAN port can be in multiple zones as many hosts will
be sharing this port. A common way to setup zoning is to use the WWN of the attached hosts
and ports but there are many ways:

The host HBA or Symmetrix port WWPN (recommended way) (WWN


zoning)

The physical fabric port number that an N_Port is connected to (Port


zoning)

Nicknames for all WWPN

The diagram below has a single host with two HBA cards installed connecting to two
different switches, both switches then connect to a SAN. Each HBA card has its own zone
and both zones are placed into a zoneset. If in the event one HBA card goes down the other
card can continue to have access to the data.

For detailed information on setting up zones on the M-series, B-series and MDS-series
switches go to here
Hard and Soft zoning
There are two ways to zone hard and soft, hard zoning is using the physical connection to
block zone access and soft zoning uses software to block access to a zone i.e software within
a switch.
LUN Masking

There is other zoning which is called LUN masking, this is normally handled by the SAN
array and only allows specific hosts to see specific devices within the array, this is particular
import for windows, as window will try and write volume labels to a disk devices thus
corrupting any data on the disk.

EMC Client installation and checking


This web page is a quick guide on what to install and how to check that EMC SAN is
attached and working
Solaris
Installing
==========================================================
Install Emulex driver/firmware, san packages (SANinfo, HBAinfo, lputil), EMC powerpath
Use lputil to update firmware
Use lputil to disable boot bios
Update /kernel/drv/lpfc.conf
Update /kernel/drv/sd.conf
Reboot
Install ECC agent
Note: when adding disks on different FA had to reboot server?

List HBA's

/usr/sbin/hbanyware/hbacmd listHBAS

(use to get WWN's)

/opt/HBAinfo/bin/gethbainfo

(script wrapped around hbainfo)

grep 'WWN' /var/adm/messages

HBA attributes
HBA port

/opt/EMLXemlxu/bin/emlxadm
/usr/sbin/hbanyware/hbacmd HBAAttrib 10:00:00:00:c9:49:28:47
/opt/EMLXemlxu/bin/emlxadm
/usr/sbin/hbanyware/hbacmd PortAttrib 10:00:00:00:c9:49:28:47

HBA firmware

/opt/EMLXemlxu/bin/emlxadm

Fabric login

/opt/HBAinfo/bin/gethbainfo

(script wrapped around hbainfo)

Adding Additional Disks cfgadm -c configure c2


cfgadm -al -o show_SCSI_lun

Disk available

echo|format
inq

Labelling
Partitioning
Filesystem

(use to get serial numbers)

format
vxdiskadm
format
newfs or mkfs

Linux
Installing
==========================================================
Install Emulex driver, san packages (saninfo, hbanyware), firmware (lputil)
Configure /etc/modprobe.conf
Use lputil to update firmware
Use lputil to disable boot bios
Create new ram disk so changes to modprobe.conf can take affect.
Reboot
Install ECC agent

List HBA's

HBA attributes

/usr/sbin/hbanyware/hbacmd listHBAS

(use to get WWN's)

cat /proc/scsi/lpfc/*
/usr/sbin/hbanyware/hbacmd HBAAttrib 10:00:00:00:c9:49:28:47
cat /sys/class/scsi_host/host*/info

HBA port

/usr/sbin/hbanyware/hbacmd PortAttrib 10:00:00:00:c9:49:28:47

HBA firmware

lputil

Fabric login

cat /sys/class/scsi_host/host*/state
cat /proc/scsi/scsi

Disk available

fdisk -l |grep -I Disk |grep sd


inq

(use to get serial numbers)

Labelling

parted -s /dev/sda mklabel msdos


parted -s /dev/sda print

(like labelling in solaris)

Partitioning

fdisk
parted

Filesystem

mkfs -j -L <disk label> /dev/vx/dsk/datadg/vol01

PowerPath
HBA Info

/etc/powermt display

Disk Info

/etc/powermt display dev=all

Rebuild /kernel/drv/emcp.conf

/etc/powercf -q

Reconfigure powerpath using emcp.conf

/etc/powermt config

Save the configuration

/etc/powermt save
/etc/powermt display (get card ID)

Enable and Disable HBA cards used for testing

/etc/powermt disable hba=3072


/etc/powermt enable hba=3072

You might also like