Tuesday, April 29, 2008

Solaris vxvm emc add lun and filesystem

1- run lputil to check bindings, in this RPC no need, since already capture in step 2
root:/kernel/drv # cd /usr/sbin/lpfc
root3:/usr/sbin/lpfc # ls
convert_path_lpfc* dfc64* lputil64*
dfc* lputil* resetqdepth*
dfc32* lputil32* update_lpfc*
root:/usr/sbin/lpfc # lputil
LightPulse Common Utility for Solaris/SPARC. Version 2.0a9 (8/03/2005).
Copyright (c) 2005, Emulex Corporation

Emulex Fibre Channel Host Adapters Detected: 2
Host Adapter 0 (lpfc0) is an LP9802 (Ready Mode)
Host Adapter 1 (lpfc1) is an LP9802 (Ready Mode)

MAIN MENU

1. List Adapters
2. Adapter Information
3. Firmware Maintenance
4. Reset Adapter
5. Persistent Bindings

0. Exit

Enter choice => 5

PERSISTENT BINDINGS MENU

1. Display Current Bindings
2. Display All Nodes
3. Duplicate Adapter Bindings
4. Bind Target Manually
5. Bind Automapped Targets
6. Delete Binding(s)

0. Return to Main Menu

Enter choice => 2
0. lpfc0
1. lpfc1

Select an adapter => 0

Visible Nodes:
Node Target WWPN WWNN
---- ------ --------- --------
In Transition 0 22-05-00-0d-ec-09-a1-80 20-02-00-0d-bd-af-ea-81
In Transition 0 24-8d-00-0d-ec-09-a1-80 20-02-00-0d-ec-09-a1-81
In Transition 0 50-06-04-82-cc-ab-50-a7 50-06-04-82-cc-ab-50-a7
Mapped FCP Node 19 50-06-04-8a-d5-2d-7a-a6 50-06-04-8a-d5-2d-7a-a6
Mapped FCP Node 16 50-06-04-8a-cc-36-cb-a6 50-06-04-8a-cc-36-cb-a6

Press the Enter or Return key to continue:

PERSISTENT BINDINGS MENU

1. Display Current Bindings
2. Display All Nodes
3. Duplicate Adapter Bindings
4. Bind Target Manually
5. Bind Automapped Targets
6. Delete Binding(s)

0. Return to Main Menu

Enter choice => 2
0. lpfc0
1. lpfc1

Select an adapter => 1

Visible Nodes:
Node Target WWPN WWNN
---- ------ --------- --------
In Transition 0 22-05-00-0d-ec-08-3e-80 20-02-00-0d-65-0b-2d-81
In Transition 0 24-8d-00-0d-ec-08-3e-80 20-02-00-0d-ec-08-3e-81
In Transition 0 50-06-04-82-cc-ab-50-a8 50-06-04-82-cc-ab-50-a8
Mapped FCP Node 17 50-06-04-8a-cc-36-cb-a9 50-06-04-8a-cc-36-cb-a9
Mapped FCP Node 20 50-06-04-8a-d5-2d-7a-a9 50-06-04-8a-d5-2d-7a-a9

Press the Enter or Return key to continue:

PERSISTENT BINDINGS MENU

1. Display Current Bindings
2. Display All Nodes
3. Duplicate Adapter Bindings
4. Bind Target Manually
5. Bind Automapped Targets
6. Delete Binding(s)

0. Return to Main Menu

Enter choice => 2
0. lpfc0
1. lpfc1

Select an adapter => 0

Visible Nodes:
Node Target WWPN WWNN
---- ------ --------- --------
In Transition 0 22-05-00-0d-ec-09-a1-80 20-02-00-0d-bd-af-ea-81
In Transition 0 24-8d-00-0d-ec-09-a1-80 20-02-00-0d-ec-09-a1-81
In Transition 0 50-06-04-82-cc-ab-50-a7 50-06-04-82-cc-ab-50-a7
Mapped FCP Node 19 50-06-04-8a-d5-2d-7a-a6 50-06-04-8a-d5-2d-7a-a6
Mapped FCP Node 16 50-06-04-8a-cc-36-cb-a6 50-06-04-8a-cc-36-cb-a6

Press the Enter or Return key to continue:

PERSISTENT BINDINGS MENU

1. Display Current Bindings
2. Display All Nodes
3. Duplicate Adapter Bindings
4. Bind Target Manually
5. Bind Automapped Targets
6. Delete Binding(s)

0. Return to Main Menu

Enter choice =>

2- backup and then edit /kernel/drv/lpfc.conf
# fcp-bind-WWPN="5006048acc36cba6:lpfc0t16",
# "5006048acc36cba9:lpfc1t17",
fcp-bind-WWPN="5006048acc36cba6:lpfc0t16",
"5006048acc36cba9:lpfc1t17",
"5006048ad52d7aa9:lpfc1t20",
"5006048ad52d7aa6:lpfc0t19", <------ replace ; with , "50060482CCAB50A7:lpfc0t21", <------ add this line "50060482CCAB50A8:lpfc1t22"; <------ add this line 3- backup and then edit sd.conf, add below lines

name="sd" parent="lpfc" target=21 lun=169 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=170 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=171 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=172 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=173 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=174 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=175 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=176 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=177 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=178 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=179 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=180 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=181 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=182 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=183 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=184 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=185 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=186 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=187 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=188 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=189 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=190 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=191 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=192 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=193 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=194 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=195 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=196 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=197 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=198 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=199 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=200 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=201 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=202 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=203 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=204 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=205 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=206 hba="lpfc0"; name="sd" parent="lpfc" target=21 lun=210 hba="lpfc0"; name="sd" parent="lpfc" target=22 lun=169 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=170 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=171 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=172 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=173 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=174 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=175 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=176 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=177 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=178 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=179 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=180 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=181 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=182 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=183 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=184 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=185 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=186 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=187 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=188 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=189 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=190 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=191 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=192 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=193 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=194 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=195 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=196 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=197 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=198 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=199 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=200 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=201 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=202 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=203 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=204 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=205 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=206 hba="lpfc1"; name="sd" parent="lpfc" target=22 lun=210 hba="lpfc1"; 4- Run update_drv –f lpfc to force the Solaris 9 or later system to re-read lpfc.conf. ** for this RFC system need to be rebooted, since it is running on Sol 8 version then go to step 8

root:/kernel/drv # uname -a SunOS ntxldb3 5.8 Generic_117350-38 sun4u sparc SUNW,Sun-Fire-880 run
#update_drv -f sd
5- run #devfsadm , ** you should see wrong magic number messages ** 6- Run format to label all paths to the new lun until all new disk are labeled
7- run #vxdctl enable
8- initialize disk, run /etc/vx/bin/vxdisksetup –i ** it should be c9t21d169
run #vxdg -g datadg adddisk datadg65=c9t21d169
#vxdg -g datadg adddisk datadg66=c9t21d170
continue ...
#vxdg -g datadg adddisk datadg103=c9t21d210
9- run #vxdisk list to verify all have been added to datadg
10-check datadg new available free space
run #vxassist -g datadg maxsize
11- create new file system
----
1. /db/app/oracle/102/product – 11 GB

vxassist -g datadg make oraclevol102 11g
mkfs -F vxfs -o largefiles /dev/vx/rdsk/datadg/oraclevol102


2. /db/prd42/dbf1 – 66 GB

vxassist -g datadg make p42_dbf1 66g
mkfs -F vxfs -o largefiles /dev/vx/rdsk/datadg/p42_dbf1

3. /db/prd42/dbf2 – 66 GB

refer above, use example above accordingly and so the rest

4. /db/prd42/dbf3 – 66 GB
5. /db/prd42/dbf4 – 66 GB
6. /db/prd42/dbf5 – 66 GB
7. /db/prd42/dbf6 – 66 GB
8. /db/prd42/dbf7 – 66 GB
9. /db/prd42/dbf8 – 66 GB
10. /db/prd42/dbf9 – 66 GB
11. /db/prd42/dbf10 – 66 GB
12. /db/prd42/undo – 22 GB
13. /db/prd42/temp – 33 GB
14. /db/prd42/redo1 – 4 GB
15. /db/prd42/redo2 – 4 GB
---
12- backup and then edit /etc/vfstab, add these lines

/dev/vx/dsk/datadg/oraclevol102 /dev/vx/rdsk/datadg/oraclevol102 /db/app/oracle/102/product vxfs 2 yes -
/dev/vx/dsk/datadg/p42_dbf1 /dev/vx/rdsk/datadg/p42_dbf1 /db/prd42/dbf1 vxfs 2 yes -
dev/vx/dsk/datadg/p42_dbf2 /dev/vx/rdsk/datadg/p42_dbf2 /db/prd42/dbf2 vxfs 2 yes -
continue..** refer above

13- run #mountall
14- run #mount , check largefiles option
15- run #df -k, check if everything are mounted ok.
16. done


---------------- info from storage team -------------

Below are the details of LUN's, please let us know whether you can see these LUN's on your Host's.

LUN's configured for server, LUN ID's are 169 to 206 respectivly And 03FA has LUN ID 210.



Symmetrix ID : 000187870530

Originator Port wwn : 10000000c942386c EMC WWN: 50060482CCAB50A8
User-generated Name : ntxldb3/apl_059_0905

Sym Dev LUN
Name Dir:P Physical Device Name VBUS TID SYMM HOST Attr Cap(MB)
------ ----- ----------------------- ---- --- ---- ---- ---- -------

03A8 9A:1 Not Visible 0 0 a9 N/A (M) 23731
03AA 9A:1 Not Visible 0 0 aa N/A (M) 23731
03AC 9A:1 Not Visible 0 0 ab N/A (M) 23731
03AE 9A:1 Not Visible 0 0 ac N/A (M) 23731
03B0 9A:1 Not Visible 0 0 ad N/A (M) 23731
03B2 9A:1 Not Visible 0 0 ae N/A (M) 23731
03B4 9A:1 Not Visible 0 0 af N/A (M) 23731
03B6 9A:1 Not Visible 0 0 b0 N/A (M) 23731
03B8 9A:1 Not Visible 0 0 b1 N/A (M) 23731
03BA 9A:1 Not Visible 0 0 b2 N/A (M) 23731
03BC 9A:1 Not Visible 0 0 b3 N/A (M) 23731
03BE 9A:1 Not Visible 0 0 b4 N/A (M) 23731
03C0 9A:1 Not Visible 0 0 b5 N/A (M) 23731
03C2 9A:1 Not Visible 0 0 b6 N/A (M) 23731
03C4 9A:1 Not Visible 0 0 b7 N/A (M) 23731
03C6 9A:1 Not Visible 0 0 b8 N/A (M) 23731
03C8 9A:1 Not Visible 0 0 b9 N/A (M) 23731
03CA 9A:1 Not Visible 0 0 ba N/A (M) 23731
03CC 9A:1 Not Visible 0 0 bb N/A (M) 23731
03CE 9A:1 Not Visible 0 0 bc N/A (M) 23731
03D0 9A:1 Not Visible 0 0 bd N/A (M) 23731
03D2 9A:1 Not Visible 0 0 be N/A (M) 23731
03D4 9A:1 Not Visible 0 0 bf N/A (M) 23731
03D6 9A:1 Not Visible 0 0 c0 N/A (M) 23731
03D8 9A:1 Not Visible 0 0 c1 N/A (M) 23731
03DA 9A:1 Not Visible 0 0 c2 N/A (M) 23731
03DC 9A:1 Not Visible 0 0 c3 N/A (M) 23731
03DE 9A:1 Not Visible 0 0 c4 N/A (M) 23731
03E0 9A:1 Not Visible 0 0 c5 N/A (M) 23731
03E2 9A:1 Not Visible 0 0 c6 N/A (M) 23731
03E4 9A:1 Not Visible 0 0 c7 N/A (M) 23731
03E6 9A:1 Not Visible 0 0 c8 N/A (M) 23731
03E8 9A:1 Not Visible 0 0 c9 N/A (M) 23731
03EA 9A:1 Not Visible 0 0 ca N/A (M) 23731
03EC 9A:1 Not Visible 0 0 cb N/A (M) 23731
03EE 9A:1 Not Visible 0 0 cc N/A (M) 23731
03F0 9A:1 Not Visible 0 0 cd N/A (M) 23731
03F2 9A:1 Not Visible 0 0 ce N/A (M) 23731
03FA 9A:1 Not Visible 0 0 d2 N/A 11865



Symmetrix ID : 000187870530

Originator Port wwn : 10000000c943c7ed EMC WWN: 50060482CCAB50A7
User-generated Name : ntxldb3/10000000c943c7ed

Sym Dev LUN
Name Dir:P Physical Device Name VBUS TID SYMM HOST Attr Cap(MB)
------ ----- ----------------------- ---- --- ---- ---- ---- -------

03A8 8A:1 Not Visible 0 0 a9 N/A (M) 23731
03AA 8A:1 Not Visible 0 0 aa N/A (M) 23731
03AC 8A:1 Not Visible 0 0 ab N/A (M) 23731
03AE 8A:1 Not Visible 0 0 ac N/A (M) 23731
03B0 8A:1 Not Visible 0 0 ad N/A (M) 23731
03B2 8A:1 Not Visible 0 0 ae N/A (M) 23731
03B4 8A:1 Not Visible 0 0 af N/A (M) 23731
03B6 8A:1 Not Visible 0 0 b0 N/A (M) 23731
03B8 8A:1 Not Visible 0 0 b1 N/A (M) 23731
03BA 8A:1 Not Visible 0 0 b2 N/A (M) 23731
03BC 8A:1 Not Visible 0 0 b3 N/A (M) 23731
03BE 8A:1 Not Visible 0 0 b4 N/A (M) 23731
03C0 8A:1 Not Visible 0 0 b5 N/A (M) 23731
03C4 8A:1 Not Visible 0 0 b7 N/A (M) 23731
03C6 8A:1 Not Visible 0 0 b8 N/A (M) 23731
03C8 8A:1 Not Visible 0 0 b9 N/A (M) 23731
03CA 8A:1 Not Visible 0 0 ba N/A (M) 23731
03CC 8A:1 Not Visible 0 0 bb N/A (M) 23731
03CE 8A:1 Not Visible 0 0 bc N/A (M) 23731
03D0 8A:1 Not Visible 0 0 bd N/A (M) 23731
03D2 8A:1 Not Visible 0 0 be N/A (M) 23731
03D4 8A:1 Not Visible 0 0 bf N/A (M) 23731
03D6 8A:1 Not Visible 0 0 c0 N/A (M) 23731
03D8 8A:1 Not Visible 0 0 c1 N/A (M) 23731
03DA 8A:1 Not Visible 0 0 c2 N/A (M) 23731
03DC 8A:1 Not Visible 0 0 c3 N/A (M) 23731
03DE 8A:1 Not Visible 0 0 c4 N/A (M) 23731
03E0 8A:1 Not Visible 0 0 c5 N/A (M) 23731
03E2 8A:1 Not Visible 0 0 c6 N/A (M) 23731
03E4 8A:1 Not Visible 0 0 c7 N/A (M) 23731
03E6 8A:1 Not Visible 0 0 c8 N/A (M) 23731
03E8 8A:1 Not Visible 0 0 c9 N/A (M) 23731
03EA 8A:1 Not Visible 0 0 ca N/A (M) 23731
03EC 8A:1 Not Visible 0 0 cb N/A (M) 23731
03EE 8A:1 Not Visible 0 0 cc N/A (M) 23731
03F0 8A:1 Not Visible 0 0 cd N/A (M) 23731
03F2 8A:1 Not Visible 0 0 ce N/A (M) 23731
03FA 8A:1 Not Visible 0 0 d2 N/A 11865


-------------------------------------------------------------------------------

Below are the Details of LUN's configured for ebitb2b3, LUN ID's are 207,208 & 209 respectivly.




Symmetrix ID : 000187870530

Originator Port wwn : 10000000c93f44b3 EMC WWN: 50060482CCAB50A7
User-generated Name : ebitb2b3/10000000c93f44b3

Sym Dev LUN
Name Dir:P Physical Device Name VBUS TID SYMM HOST Attr Cap(MB)
------ ----- ----------------------- ---- --- ---- ---- ---- -------

03F4 8A:1 Not Visible 0 0 cf N/A (M) 23731
03F6 8A:1 Not Visible 0 0 d0 N/A (M) 23731
03F8 8A:1 Not Visible 0 0 d1 N/A (M) 23731




Symmetrix ID : 000187870530

Originator Port wwn : 10000000c93f482e EMC WWN: 50060482CCAB50A8
User-generated Name : ebitb2b3/10000000c93f482e

Sym Dev LUN
Name Dir:P Physical Device Name VBUS TID SYMM HOST Attr Cap(MB)
------ ----- ----------------------- ---- --- ---- ---- ---- -------

03F4 9A:1 Not Visible 0 0 cf N/A (M) 23731
03F6 9A:1 Not Visible 0 0 d0 N/A (M) 23731
03F8 9A:1 Not Visible 0 0 d1 N/A (M) 23731


------------------------------------------------------------------------------------