Sie sind auf Seite 1von 4

This is for sun Solaris & VERITAS ..

commands: icms -l mdv035: To find out Host details: ssh root@mdv035 : Login to the host : uname a : To find out O/S name : cd /opt/SAN export PATH=$PATH:user/symcli/bin df -h | grep mdv035 :To find out which volume group. vxdg list : to find file system is in that group r not. vxdisk -g Z42 list: to find out how many devices in particular file.(Z42 is file name ..info got from above

command) ./inq -sym_wwn | egrep e above commands out put. : to find out symmetrix name by using grep with devnames from

(OR) symvg show Z42 (THIS GIVES BEST OUTP PUT FOR SPECIFIC HOST). symvg list (we will find out our pkg name in the o/p) symvg show /dev/vg137 (we get the existing devs and wich symmetrix). we are found our symetrix and existing devs now create dev count =10 , size = 2185 , config = 2-way-mir , emulation = FBA; Use symmaskdb command to find out the masking database of the already masked devices for that host. symmaskdb list assign -sid 773 -dev 0B68,0C50,0C89,0DBE,019B,019C,019D,440,441 symcfg list: lists the num of syms with symmid. symdev list -sid 767 symdev list -sid 767 -noport -nobcv | egrep -e RAID-5 : to checking free deves in particular symmetrix.

symdev show 0674 -sid 767 : To checking the device existing configuration using symmetrix id & devname. set device 773 attribute=SCSI3_persist_reserv; (enabling scsi). set dev 02FE emulation=CELERRA_FBA / FBA ; symcfg list -sid 767 -dir 8C -p 0 -available address (checking LUN id). WHEN WE NOT FOUND ANY FREE DEVS IN OUR SYMMETRIXLOGIN TO TOLEDO7 AND CHECK THE DEVS toledo7:root:cd/var/SAN/temp ls -l | grep -i finalfree

For loop for checking the devs configuration for i in `cat SCSI_enable _773` do echo $i symdev show $i -sid 773 | egrep -e 'Emulation|SCSI-3|SRC|TGT|Megabytes' echo "-----------" done

For creating file from cli: vi filename ; enter We will get: given file name: [NEWFILE]insert the devs press escape button, and select i. and paste the selected files Fallow like this {:wq!} w=save the file and q= quit from the file.

chmod 755 file3(run the vi r/w:755) ./file3 > file3_output(gives o/p another file we r given )

Unmaping deves: Symdev sid 773 not_ready 106E nop

Unmap dev 106E from dir 7a:0;(this should be run in vi editor). symconfigure -sid 773 -f unmap_devs -v preview( hear unmap_devs is given name in vi). symconfigure -sid 773 -f unmap_devs -v prepare symconfigure -sid 773 -f unmap_devs -v commit Mapping devs map dev 04DC to dir 7C:0 lun=339 target=12; (command for mapping) symconfigure -sid 773 -f mapdev1_773 -v preview,prepare,commit symdev -sid 189 -range 04DC:04DC list multiport (chicking for proper mapping) Masking: symmask -sid 189 -wwn 210100e08bbc11c2 -dir 7C -p 0 add devs 04DC,04FE,0504 symmaskdb list assign -sid 189 -dev 04DC,04FE,0504(Confirm the new masking) host scanning: Symmask refresh sid. symcfg discover cfgadm -al cfgadm -c configure c1../c2/c3/c4/c5...(one after one enter the control using same command). sympd list -sid 773 | egrep -e '106E|1076|107E|1086' syminq -wwn | egrep -e '000287750773' | egrep -e '106E|1076|107E|1086' 1st way dynamic LUN addressing Command Symmask wwn 1020304050 add devs 4a4:4a8 dynamic_lun sid 673 dir 9a p 0 nop. Symmask refresh -sid 673 nop 2nd way Symmask wwn 1020304050 add devs 4a4:4a8 lun 1 sid 673 dir 9a p 0 nop. Symmaskrefresh sid 673

Renaming the host..


symmask -sid <symmID> -wwn <WWN of HBA> rename <hostname/0a/0b> symmask -sid 1234 -wwn 1000000000000001 rename host/0a symmask -sid 1234 -wwn 1000000000000002 rename host/0b

symmaskdb -sid 1820 -dir 7a -p 0 -v list database|pg (for checking the flag settings for port).

Das könnte Ihnen auch gefallen