Disk Enclosures
1753797 Members
7336 Online
108805 Solutions
New Discussion юеВ

How to create vg & lv on VA7410 (SAN)

 
tamil sevan
Occasional Contributor

How to create vg & lv on VA7410 (SAN)

Hi,

I have two VA7410 configured in SAN setup.
I already have 3 host connected to VA. The VA configured in RAID 0+1.

Recently i have added 10 more disks on each VA & attached another new host on to the VA.

Now , the problem is :-

1/ How to create the LUN?
2/ How to user LVM to create vg/lvol to link to the LUN created ?

Pls advice.



10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: How to create vg & lv on VA7410 (SAN)

Lun creation is normally done on the SAN itself. For the HP-9000 server to see it, ownership needs to be assigned to the World Wide Name of the SAN card.

Creating LUN's is very hardware specific. Attaching some links.
http://www1.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%253FthreadId%253D887211%26qt%3D%2Bcreate%2BLUN%2Bon%2BVA74110%26hit%3D1&aid=SEARCH_FORUMS&pil=1&serStr=create+LUN+on+VA74110&pir=1
http://www1.itrc.hp.com/service/james/dispDoc.do?docURL=http%3A%2F%2Fsearch.hp.com%2Fredirect.html%3Furl%3Dhttp%253A%2F%2Fforums1.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%253FthreadId%253D779398%26qt%3D%2Bcreate%2BLUN%2Bon%2BVA74110%26hit%3D2&aid=SEARCH_FORUMS&pil=2&serStr=create+LUN+on+VA74110&pir=2

A few ways to get the LUN once created and ownership is done to be recognized by the system.

1) ioscan
2) reboot the system (always works).

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bharat Katkar
Honored Contributor

Re: How to create vg & lv on VA7410 (SAN)

Hi Seavan,
You must have got SDM (Storage Device Manager) with VA7410. If not installed install it. Then Once you have SDM in place run SAM.

# sam
go to Disks and Filesystems:
Then choose "Action" and select "launch SDM"

Once SDM is luanched, just go thr' the menu items and you will be able to create LUN's on it.

Once you create LUNS, further you need to follow certain steps to create LV.

# pvcreate
# mkdir /dev/vgname
# mknod /dev/vgname/group 64
# vgcreate vgname ..
# lvcreate -n lvname -L lvsizeinMB vgname
# newfs -F vxfes /dev/vgname/rlvname

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Pete Randall
Outstanding Contributor

Re: How to create vg & lv on VA7410 (SAN)

Bharat Katkar
Honored Contributor

Re: How to create vg & lv on VA7410 (SAN)

Sorry some typo earlier.
Please read:
# pvcreate
# mkdir /dev/vgname
# mknod /dev/vgname/group 64
# vgcreate vgname ..
# lvcreate -n lvname -L lvsizeinMB vgname
# newfs -F vxfes /dev/vgname/rlvname

as

# pvcreate /dev/rdsk/cxtydz
This device is the one which represenst your LUN e.g. /dev/rdsk/cxtydz
Repeat this commands for all LUN's you created
# mkdir /dev/vgname
# mknod /dev/vgname/group c 64
# vgcreate vgname ..
Here your PVname is /dev/dsk/cxtydz and so on.
# lvcreate -n lvname -L lvsizeinMB vgname
# newfs -F vxfs /dev/vgname/rlvname

Regards,
You need to know a lot to actually know how little you know
tamil sevan
Occasional Contributor

Re: How to create vg & lv on VA7410 (SAN)

Yes. the LUN are created by using CommandView SDM. How you identify which device file point which LUN ? As i already have existing lun's which were used in other nodes.

./Tamil
Nguyen Anh Tien
Honored Contributor

Re: How to create vg & lv on VA7410 (SAN)

Hi Tamil
1, HOW TO CREATE LUN.
you use command view sdm to create LUN, for more easy let use X-terminal and issue following commands
#export DISPLAY=yourip:0.0
#laucher
SEE GUIDE.

2, after creating LUN you wil able to see new pv disk
#ioscan -fnC disk
#pvcreate -f /dev/dsk/cxtxdx
#vgcreate ...
#lvcreate
see attache for more detail
HP is simple
Patrick Wallek
Honored Contributor

Re: How to create vg & lv on VA7410 (SAN)

Use the armtopology command to see what LUNs are assigned to what device files.

# armtopology server_name

# man armtopology

for more information.
Bharat Katkar
Honored Contributor

Re: How to create vg & lv on VA7410 (SAN)

Hi ,
For identifying the LUN you need to loook at it's hardware path in "ioscan -fnC disk" Output and go thr' SAM, then disk & Filesystems. Then select Disk Devices. You will see some "unsed" disk but make sure that disk is shown unsed from alll nodes in the cluster. If current node has not activated a particular VG then all associated disk are shown unused but the disk may be used on other nodes. This you need to verify.
Now the ioscan output of the VA7410 may be something like this:

"disk 9 0/2/1/0.1.63.0.0.0.6 sdisk CLAIMED DEVICE HP OPEN-V"

Now looking at this path "0/2/1/0.1.63.0.0.0.6" you can judge your new LUN as well.

Hope that helps.
Regards,


You need to know a lot to actually know how little you know
Saurav_1
Valued Contributor

Re: How to create vg & lv on VA7410 (SAN)

Guys you will not loose anyting if you take out some time to assign points to the replies.