SAN & Storage Commands
SAN & Storage Commands
:: VI COMMANDS ::
Cursor movements
h ~ left one character
l ~ right one character
j ~ down one line
k ~ up one line
w ~ right one word
b ~ back one word
:: FTP COMMANDS ::
open <IP address> ~ undo last editing command
close <IP address> ~ save and exit (hold down shift and press "z" twice)
bin ~set to transfer for binary and text files
hash ~display progress during get
mget ~mutiple get – download files in to current directory
mput ~multiple pu – upload files from current directory
:: AIX/IBM HOST COMMANDS ::
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic
HP SAN Commands
fcmsutil /dev/fcd0 ~ List HBA wwn
tdutil /dev/td0 ~ List HBA wwn
HP iSCSI Commands
http://docs.hp.com/en/T1452-90011/T1452-90011.pdf
HP NFS Commands
/etc/exports ~file controls which file systems are exported to remote hosts and specify options
/exported/directory example.emc.com ~Exports directory to host example.emc.com (found in /etc/exports)
exportfs –a ~command to read /etc/export and export filesystem
mount shadowman.emc.com:/misc/export /misc/local ~mount an NFS export from shadowman.emc.com to the dir /misc/local
/sbin/init.d/agent stop
rm /etc/log/HostIdFile.txt
/sbin/init.d/agent start
dd if=/dev/rdsk/c34t15d0 of=/dev/zero count=1 ~ makes HP register with a Clariion thru LUNZ device
navicli –h <SP IP> register ~registers host with Clariion and tests agent install
df –a ~display filesystems
Fdisk /dev/sda ~ partition table manipulation
pvdisplay ~ allows you to see the attributes of one or more physical volumes
pvscan ~ scans all supported LVM block devices in the system for physical volumes
vgdisplay ~display attributes of volume groups
vgextend ~ allows you to add one or more initialized physical volumes
vgscan ~ scan physical volumes for LVM volume groups
vgexport ~make volume groups unknown to the system
vgimport ~make volume groups known to the system
lvdisplay ~display attributes of a logical volume
lvextend ~ Extend logigal volume
e2fsadm ~ resizing of a logical volume
fsck ~Command used to check and repair a Linux filesystem
:: SUN/SOLARIS HOST COMMANDS ::
http://developers.sun.com/openstorage/articles/opensolaris_storage_server.html
SOLARIS Software Installation
ptree –a ~ Shows all running processes in a tree format
showrev –p ~ Displays currently installed Solaris patches
prtconf ~ prints system configurations
pkginfo ~ lists installed software packages
pkgadd ~ install software packages
pkgrm ~ removes installed software packages
Symdev Commands
symdev list ~ list all devices on symm
symdev –sa –p list ~ list devices maped to that one FA
symdev list –bcv or –rdf1 ~ list all bcv or rdf1 volumes
symdev list –noport ~ list devices not mapped to any FE ports
symdev list –clariion
symdev show 0123 -v ~ vebose listing of one device
symdev list -RANGE 0001:0123 –v ~ vebose listing of a rage of devices
symdev list pd ~ list devices this host can see
Symcfg Commands
symcfg discover ~ discover the storage environment
symcfg list ~ list local and remote symmetrixes
symcfg list –clariion ~ list clariions
symcfg list –v ~ lists whether the Symmetrix director has device masking turned on
symcfg list –FA all list ~ lists all fibre directors in a Symmetrix system
symcfg list -dir all -address -sid 6196 ~ identify the address information for devices
symcfg list -dir all -address -available ~ sid 6196 ~ returns the next available LUN address
symcfg list -lockn all ~ list of visible Symm exclusive locks
symcfg -sid 098712341357 -lockn 15 release ~ release a lock on a Symmetrix array.
Symconfigure Commands
symconfigure –sid <sid> -f <filename> preview ~ checks file to make sure it is ok to exe
symconfigure –sid <sid> -f <filename> commit ~ makes the changes from file
symconfigure –sid <sid> -f <filename> prepare
Symmaskdb Commands
symmaskdb list devs ~ lists all devices accessible to an HBA on a specified Symmetrix system
symmaskdb remove ~ removes the meta member devices
symmaskdb restore ~ restores a database from a specified file
symmaskdb backup ~ backs up a database to a specified file
symmaskdb init ~ deletes and creates a new VCMDB
symmaskdb list assignment ~lists deives already assigned
symmaskdb list no_assignment ~lists deives not yet assigned
Symmask Commands
symmask add devs ~ adds a device to the list of devices that a WWN can access in the database
symmask remove devs ~ removes a device from the list of devices that a WWN can access in the database
symmask delete ~ deletes all access rights for a WWN in the database
symmask replace ~ allows one HBA to replace another
symmask refresh ~ refresh vcmdb to all FA ports
symmask login ~ lists for each Fibre director which hosts and HBA’s are logged in to a Symmetrix system
symmask list HBA’s ~ lists the WWN of the Fibre HBAs on this host
symmask -sid 381 -wwn 50060B000024F9F6 -dir 16C -p 1 set heterogeneous on HP_UX
symmask -sid SymmID set lunoffset on offset base \ -awwn awwn -dir # -p # ~ offset high lun numbers
Other SYMCLI Commands
symsan ~list ports and LUN WWNs seen from a specific Symmetrix director and port
symdg ~ creates/deletes/renames device groups
symld ~ addes & removes devices to a deivce group
symbcv ~ associates/disassociate BCV with device groups
symmir ~ performs (split/establish/restore) BCV mirror commands against device groups
symclone ~ performs (split/establish/restore/activate/terminate/recreate)
symsnap ~ performs (restore/activate/terminate/recreate)
symrdf ~ performs (split/establish/restore/failover/update/failback/suspend/resume) against RDF device groups
symcg ~ Performs operations on a Symmetrix RDF composite group
symrslv ~ Displays logical-to-physical mapping information about a logical object that is stored on a disk.
symstat ~ Displays statistics information about a Symmetrix, any or all directors, a device group, a disk, or a device.
symioctl ~ sends I/O control commands to application
:: NAVICLI COMMANDS ::
navicli –h <SP IP> storagegroup –create –gname <name> ~ creates a new storage group
navicli –h <SP IP> storagegroup –addhlu –gname <name> -hlu <#> -alu <#> ~ assigns LUNs to storage group
navicli –h <SP IP> storagegroup –connecthost –host <hname> -gname <gname> ~ assigns host to storage group
:: POWERPATH COMMANDS ::
:: INQ ::
INQ
Inq –h ~ list options and syntax
Inq –hba ~ list hba wwn
Inq –btl ~ display Bus Target and Lun
Inq –show_vol ~ display Symmetrix Volume Number.
Inq –winvol ~ show Windows filesystems
Inq –dev ## –page0 ~ Raw unformatted data on a single device
Inq -clariion ~ display CLARiiON device information