Operating System - HP-UX
1834177 Members
2436 Online
110064 Solutions
New Discussion

Create New LV on Existing VG Steps???

 
SOLVED
Go to solution
apple
Super Advisor

Create New LV on Existing VG Steps???

HP-UX Experts,
I wanted to create new mount point on existing volume group. would be truly grateful if you could comment and verify the steps:

# ioscan
# insf –e
# autopath discover
# autopath display
# autopath set_lbpolicy RR /dev/dsk/c??t??d0
# ioscan -funC disk
# pvcreate -f /dev/rdsk/c??t??d?
# vgextend /dev/vg18 /dev/dsk/c??t??d? – extend to the existing volume group
# lvcreate –L 4096 -n /dev/vg18/lvol3 /dev/vg18
# newfs /dev/vg18/rlvol3
# mkdir /FISH_d03
# mount -F vxfs /dev/vg18/lvol3 /FISH_d03

Hope to hear from you. Nite
6 REPLIES 6
J. Bravo
Respected Contributor

Re: Create New LV on Existing VG Steps???

Hi!

The correct sentences for the creation of logical volume and filesystem are:

lvcreate -L 4096 -n lvol3 /dev/vg18
newfs -F vxfs /FISH_d03

Regards;

J. Bravo.
J. Bravo
Respected Contributor

Re: Create New LV on Existing VG Steps???

Hi!

Excuse me for the errata; for the filesystem is:

newfs -F vxfs /dev/vg18/rlvol3

Regards;

J. Bravo.
Robert-Jan Goossens
Honored Contributor

Re: Create New LV on Existing VG Steps???

Hi,

and add a step to change the /etc/fstab with the new fs and mountpoint info.

Robert-Jan
apple
Super Advisor

Re: Create New LV on Existing VG Steps???

Dear HP-UX Gurus,
Thanks for your awaiting respond
1. I would like to ask about lv extend
if i want to extend lv and i have the online jfs installed, do i have to unmount the mount first?

# umount /disc2
# lvextend -L 4096 /dev/vg18/lvol1
# fsadm -F vxfs -b 4194304 /disc2

the fsadm value <4194304> is the final desired size in kilobyte????

2. I want to create a mount point of 1GB for oracle index file, but the problem when I created by issuing this command #lvcreate -L 1024 /dev/vg18/lvol3 and created the file system and mount the directory, the the available is not 1GB and it has been utilised 1%. when I go in to the directory there is a lost+found inside the directory. HP-UX gurus, do i have to create the lv with bit bigger size than 1024 i.e 1100??? but can HP-UX accept the size that is not in 512 multiple?????

Really looking forward for your awaiting reply to my 1 and 2. I promise to give good points. Thank you

-Finas-
Robert-Jan Goossens
Honored Contributor
Solution

Re: Create New LV on Existing VG Steps???

Hi Finas,

----
Thanks for your awaiting respond
1. I would like to ask about lv extend
if i want to extend lv and i have the online jfs installed, do i have to unmount the mount first?

# umount /disc2
# lvextend -L 4096 /dev/vg18/lvol1
# fsadm -F vxfs -b 4194304 /disc2

the fsadm value <4194304> is the final desired size in kilobyte????
----
No, if you have OnlineJFS installed you do not need to umount the filesystem.

# lvextend -L 4096 /dev/vg18/lvol1
# fsadm -F vxfs -b 4096M /disc2

Note the M for MegaBytes

----
2. I want to create a mount point of 1GB for oracle index file, but the problem when I created by issuing this command #lvcreate -L 1024 /dev/vg18/lvol3 and created the file system and mount the directory, the the available is not 1GB and it has been utilised 1%. when I go in to the directory there is a lost+found inside the directory. HP-UX gurus, do i have to create the lv with bit bigger size than 1024 i.e 1100??? but can HP-UX accept the size that is not in 512 multiple?????
----
filesystems need about 8 % space for administration. 1024/100 = 10.24 X 108 = +/- 1106. If a logical_volume_size is not a multiple of extentsize, the size is adjusted to the next multiple.

Regards,
Robert-Jan
apple
Super Advisor

Re: Create New LV on Existing VG Steps???

Thank you so much Robert and Bravo. :)