Operating System - HP-UX
1822430 Members
2873 Online
109642 Solutions
New Discussion юеВ

Creating filesystems on SAN

 
SOLVED
Go to solution
jmckinzie
Super Advisor

Creating filesystems on SAN

I have several partitions that I need to create on the SAN.

I know I have to do a pvcreate, vgcreate for these SAN disks but don't know exactly the process. Any ideas?

I have 11 partitions that I need to make at different mount oints. I have included to here....


/aqua/v1/CREDIT_SCORE 16.0gb
/aqua/tpwk 18.0GB

-TIA
5 REPLIES 5
Sandman!
Honored Contributor

Re: Creating filesystems on SAN

Can you provide the LUNs that have been made available to you thru

# ioscan -funC disk

~thanks
Torsten.
Acclaimed Contributor

Re: Creating filesystems on SAN

The best way for you is to go with SAM.

run SAM -> disk devices

and create a new volume group with the presented devices, create LVOLs of needed size and mount points. SAM will guide you.

Are you the admin of this server?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Deoncia Grayson_1
Honored Contributor

Re: Creating filesystems on SAN

are you creating a new volume group with the new disks????

if so, after validating you can see the new disks: ioscan -funC disk or you can run insf -e to create the special file then an ioscan -f to pick up the paths...

after that it will be like so
pvcreate /dev/rdsk/c?t?d?

mkdir /dev/vg????
mknod /dev/vg????/group c 64 0x0?????
vgcreate /dev/vg??? /dev/dsk/c?t?d? /dev/dsk/c?t?d? (alternate link)

vgextend /dev/vg?? /dev/dsk/c?t?d? /dev/dsk/c?t?d?

lvcreate -L 18000 /dev/vg??
lvcreate -L 16000 /dev/vg??

mkdir /aqua/v1/CREDIT_SCORE
mkdir /aqua/tpwk

newfs -F vxfs -o largefiles /dev/vg??/lvol1
newfs -F vxfs -o largefiles /dev/vg??/lvol2

mount -F vxfs /dev/vg??/lvol1 /aqua/v1/CREDIT_SCORE

mount -F vxfs /dev/vg??/lvol2 /aqua/tpwk

add the entries to your /etc/fstaba and you should be set.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Victor Fridyev
Honored Contributor
Solution

Re: Creating filesystems on SAN

Hi,

The simplest way in your case is to use SAM. Ensure that LUNs are visible, start SAM and go to disks. You will have to create volume group, to build logical volume and to create file system (there is an option for that).

If you want to do all this manually, so:
For each /dev/dsk/cXtYdZ do:
pvcreate /dev/rdsk/cXtYdZ
mkdir /dev/vgNN
mknod /dev/vgNN/group c 64 0x0L0000
(0L is a unique hex number for each VG)
vgcreate /dev/vgNN /dev/dsk/cXtYdZ
vgchange -a y vgNN
vgdisplay vgNN

Look for "Free PE PPPP"
lvcreate -l PPPP vgNN
newfs -F vxfs /dev/vgNN/rlvol1
mkdir /FS_NAME1
mount /dev/vgNN/lvol1 /FS_NAME1

etc....

HTH
Entities are not to be multiplied beyond necessity - RTFM
jmckinzie
Super Advisor

Re: Creating filesystems on SAN

Thanks Victor.