Operating System - HP-UX
1833012 Members
3137 Online
110048 Solutions
New Discussion

Adding A new disk and creating new VG

 
SOLVED
Go to solution
Ganshyam
New Member

Adding A new disk and creating new VG

Hi all

I am a new baby to this segment,can anyone help me to add a new disk and create new VG.I have hp 11.00.I have VG00 and VG01.I need to add e new VG03 and create a volume for 9 gb for DATA.I know the procedure how to add but no confidence.
Kindly help me,immediet replay is appriciated.

Thanks in advance
M Ganshyam
4 REPLIES 4
Sยภเl Kย๓คг
Respected Contributor
Solution

Re: Adding A new disk and creating new VG

Follow the steps

Assume that your new disk is c1t6d0

1. #pvcreate /dev/rdsk/c1t6d0
2. #mknod /dev/vg03/group c 64 0X030000
3. #vgcreate /dev/vg03 /dev/dsk/c1d0s2
4. #lvcreate -L 9126 -n lvdata /dev/vg03
5. #newfs -F vxfs /dev/vg03/rlvdata
6. #mkdir /data
7. #mount /dev/vg03/lvdata /data

regards
SK
Your imagination is the preview of your life's coming attractions
Robert-Jan Goossens
Honored Contributor

Re: Adding A new disk and creating new VG

Hi,

One addition to SK's good anser.

Before you add the disk to the server, save or print an output from

# ioscan -fnCdisk

Add the disk to the server.

# ioscan -fnCdisk

now you have the cxtydz numbers.

Regards,
Robert-Jan
Sยภเl Kย๓คг
Respected Contributor

Re: Adding A new disk and creating new VG

Yes.Use ioscan -fnC disk to find out the cxtxdx of the disk which you have added.
One more thing in vgcreate you can specifiey the max no of disks , max_pe
by

#vgcreate -e -p /dev/vg03 /dev/dsk/c1d0s2

eg: #vgcreate -e 9126 -p 5 /dev/vg03 /dev/dsk/c1d0s2

regards
SK
Your imagination is the preview of your life's coming attractions
Ganshyam
New Member

Re: Adding A new disk and creating new VG

My cocern was wether i loose the data by which is already in in other VGs.I did it.

Thanks for sunil and Robert

M Ganshyam