Operating System - HP-UX
1837958 Members
3666 Online
110124 Solutions
New Discussion

Create new lvol & filesystem

 
SOLVED
Go to solution
Mark Smith T-Systems
Frequent Advisor

Create new lvol & filesystem

I need to add a new lvol and filesystem to vg01 (v11.00) but SAM wont let me do it unless I "undistribute" the volume group.

I would think I could do this by command line instead then, but I am wondering what the commands would be to do the rest.

I want /dev/vg01/plvsapdata3
mounted to /oracle/U1P/sapdata38

(I already did the pvcreate to add the disks to vg01, and made the directory).

Thanks
3 REPLIES 3
Yashwant
Valued Contributor

Re: Create new lvol & filesystem

Aashique
Honored Contributor
Solution

Re: Create new lvol & filesystem

Hi,
You already done the pvcreate
so after that,

#Extend your VG
vgextend /dev/vg01 /dev/dsk/cxtxdx /dev/dsk/cxtxdx
(here 2nd disk for alternate path)

#create LV with size 100GB
lvcreate -L 102400 -n plvsapdata3 /dev/vg01

#Format with large files support
newfs -F vxfs -o largefiles /dev/vg01/rplvsapdata3

mkdir /oracle/U1P/sapdata38
mount /dev/vg01/plvsapdata3 /oradata/U1P/sapdata38

Thanks & Regards

Aashique
Mark Smith T-Systems
Frequent Advisor

Re: Create new lvol & filesystem

the last entry gavce me what I needed