1753888 Members
7615 Online
108809 Solutions
New Discussion юеВ

Re: create vg01

 
SOLVED
Go to solution
Stefan Saliba
Trusted Contributor

Re: create vg01

next in line you need to create a logical volume.

lvcreate -L /dev/vg01

then create a new filesystem like newfs -F vxfs /dev/vg01/lvol1

then create a mountpoint say mkdir /mount1

then type mount /dev/vg01/lvol1 /mount1

if you want it to automount put an entry in the fstab

good luck

stefan
PIYUSH D. PATEL
Honored Contributor

Re: create vg01

Hi,

#lvcreate -L size /dev/vg01
This will create lvol1

#newfs -F vxfs /dev/vg01/rlvol1 ( Use rlvol1)
This will craete filesystem vxfs on lvlol1

#mkdir /mountpoint

# mount /dev/vg01/lvol1 /mountpoint

Mounts the filesystem

Make an ebtry for the filesystem in /etc/fstab so that it will get mounted in the next reboot.

Piyush
Deshpande Prashant
Honored Contributor

Re: create vg01

Hi
Take a look at following thread from this forum

http://forums.itrc.hp.com/cm/components/FileAttachment/0,,0xeccbc8ecad09d6118ff40090279cd0f9,00.doc


Thanks.
Prashant.
Take it as it comes.
Jeff Schussele
Honored Contributor

Re: create vg01

Hi (again) Teck,

Do the following
#lvcreate -L xxxx -n d01 /dev/vg01
#lvcreate -L xxxx -n d02 /dev/vg01
where xxxx equals the size in MB.

Then do
newfs -F vxfs /dev/vg01/rd01
newfs -F vxfs /dev/vg01/rd01
Note that you have to use the raw LV for this

Then mount them
mount /dev/vg01/d01 /d01
mount /dev/vg01/d02 /d02

Then to have them mounted at boot time add the following to /etc/fstab
/dev/vg01/d01 /d01 vxfs delaylog,datainlog 0 2
/dev/vg01/d02 /d02 vxfs delaylog,datainlog 0 2

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: create vg01

Hi Teck:

Now that you have successfully created the volume group you need to 'lvcreate' a logical volume, and then create a filesystem for it.

For instance, to create a 400MB logical volume named /dev/vg01/d01, do this:

# lvcreate -L 400 -n d01 /dev/vg01

Now, create the filesytem:

# newfs -F vxfs -v -o nolargefiles /dev/vg01/rd01

Note the (r)aw devive file. Note that we have created an journaled filesystem (VxFS).

Lastly, add a mount entry to /etc/fstab, for instance:

/dev/vg01/d01 /mymountpoint vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2

...and mount the new filesystem:

# mount -a

Regards!

...JRF...

Jeff Schussele
Honored Contributor

Re: create vg01

Ooops...sorry
The 2nd newfs should be

newfs -F vxfs /dev/vg01/rd02

And you do need to create mount point prior to mounting

mkdir /d01 /d02

Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Teck Sim
Frequent Advisor

Re: create vg01

You guys are great!
Thanks for all the info.
James R. Ferguson
Acclaimed Contributor

Re: create vg01

Hi (again) Teck:

To gain a better understanding of the tasks involved in LVM management, you should read chapter-6 --- Managing Disks and Files in "Managing Systems and Workgroups: A Guide for HP-UX System Administrators":

http://docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html

If you take the time to do this, you will be well rewarded.

Regards!

...JRF...
Rafael M. Ferreira
Occasional Advisor

Re: create vg01

Teck Sim

To create vg01

1)ioscan -fnC disk
# to see the path of the disk

2)pvcreate -f /dev/rdsk/c0t5d0

3)mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate vg01 /dev/dsk/c0t5d0

Regards

Rafael