Operating System - HP-UX
1833184 Members
3189 Online
110051 Solutions
New Discussion

how can i make this kind of system?

 
SOLVED
Go to solution
gary guo
Contributor

how can i make this kind of system?

the server's harddisk still have unused space:
--- Physical volumes ---
PV Name /dev/dsk/c3t0d0
PV Status available
Total PE 17005
Free PE 7005


i wanna build a new filesystem which is /dev/vg02/lvol2 ,it will mount on /oradata ,it is about 20G, and i wanna this filesystem isnt restricted by 2G which is the biggest file in the system, how can i do it ?

7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: how can i make this kind of system?

Fire up SAM, go into "Disks and Filesystems", select "Logical Volumes", then, under actions, select Create. As you go through the create menu, there are options to allow large files, specify the mount point, etc.


Pete

Pete
Marco Santerre
Honored Contributor
Solution

Re: how can i make this kind of system?

Hi Gary,

It is fairly simple. I'm not sure I understand if your logical Volume has already been created or not, but in any case, from the start this is what it would look like :

#lvcreate -n lvol2 -L 20000 vg02
#newfs -F vxfs -o largefiles /dev/vg02/rlvol2

and when you mount your filesystem

# mount -o largefiles /dev/vg02/lvol2 /oradata
Cooperation is doing with a smile what you have to do anyhow.
T G Manikandan
Honored Contributor

Re: how can i make this kind of system?

Assuming this disk is in vg02 and the lvol2 does not already exist on vg02

#lvcreate -L 20000 /dev/vg02/lvol2

#mkfs -F vxfs -o largefiles /dev/vg02/rlvol2

#mkdir /oradata
#mount -F vxfs -o largefiles /dev/vg02/lvol2 /oradata

Make sure that you update the /etc/fstab for the new file system with the largefiles option

Bill Hassell
Honored Contributor

Re: how can i make this kind of system?

To use all the available extents (7005 are left in the above example), use:

lvcreate -l 7005 -n lvol2 vg02
newfs -F vxfs -v -o largefiles /dev/vg02/rlvol2
echo "/dev/vg02/lvol2 /oradata vxfs rw,nosuid,largefiles,delaylog 0 2 >> /etc/fstab

Then to test the result:

mount /oradata

This is recommended (add to fstab, then mount without the source lvol) to check the entry in fstab.


Bill Hassell, sysadmin
T G Manikandan
Honored Contributor

Re: how can i make this kind of system?

I need to put something in to refresh myself

#lvcreate -L 20000 -n lvol2 /dev/vg02
Bill McNAMARA_1
Honored Contributor

Re: how can i make this kind of system?

fsadm -F vxfs -o largefiles

to do it after if you have onlineJFS installed.

note the -L option of lvcreate is MB size
The -l option is number of PE. The PE Size is by default 4M, so check it with your PVDisplay.
It works for me (tm)
gary guo
Contributor

Re: how can i make this kind of system?

thanks for so quick response ,i've got it