Operating System - HP-UX
1753317 Members
5778 Online
108792 Solutions
New Discussion юеВ

Largefiles option on the fly..

 
SOLVED
Go to solution
dattu_1
Regular Advisor

Largefiles option on the fly..

Hi ,
I need to convert my existing filesystem to support largefiles option...can i do it on fly.....o.s. hp-ux 11.23
11 REPLIES 11
RAC_1
Honored Contributor
Solution

Re: Largefiles option on the fly..

If you have online JFS. fsadm -F vxfs -o largefiles /dev/vgxx/lvolx. Else you will have to unmount the FS.
There is no substitute to HARDWORK
inventsekar_1
Respected Contributor

Re: Largefiles option on the fly..

11.23, but which OE?

Identifying the OE
To identify the Operating Environment currently installed on your system, use swlist. For example:

/usr/sbin/swlist HPUX11i-*

The output of this command includes a line that identifies the installed OE. For example:

HPUX11i-OE B.11.23 HP-UX 11i Operating Environment Component


[ with MCE OE, Online JFS is available with the OS itself. i think. i am not sure. check it. ]

Be Tomorrow, Today.
Raj D.
Honored Contributor

Re: Largefiles option on the fly..

Hi dattu,

You can do it using fsadm

# fsadm -F vxfs -o largefiles /dev/vgxx/lvolx


Check if you have online jfs installed:
# swlist -l product | grep -i online


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
marvik
Regular Advisor

Re: Largefiles option on the fly..

Dattu,

The options given to you by RAC and RajD should server the purpose,Incase u dont have
Online JFS take a backup of ur lvol and recreate a new lvol with largefiles supported

newfs -F vxfs -o largefiles /dev/vgxx/rlvolxx
and can copy the data to this new lvol then.For faster copy umount the FS where u copied the data and then

dd if=/dev/vgxx/rlvolxx of=/dev/vgxx/rlvolxx bs=1024k

where if=source
of=target

and mount the new lvol at the desired dir.

Cheers
Vikram
dattu_1
Regular Advisor

Re: Largefiles option on the fly..

Hi guys,
Without online JFS its not possible right.???
Thanks for ur replies.
Jaime Bolanos Rojas.
Honored Contributor

Re: Largefiles option on the fly..

Dattu,

Yes it's possible without online jfs, but will will have to unmount the file system and fsck will be called after done.

This shows how to convert to large files

/usr/sbin/fsadm -F vxfs -o largefiles /dev/vg02/rlvol1


Regards,

jaime.
Work hard when the need comes out.
inventsekar_1
Respected Contributor

Re: Largefiles option on the fly..

>>Without online JFS its not possible right.???

No. without online JFS, u need to unmount the FS first.
from man fsadm:
------------------------------------------------------
The fsadm command is designed to perform selected administration tasks
on file systems. These tasks may differ between file system types.
special is a device file containing an unmounted file system. However,
if the file system is of the type that provides online administration
capabilities the special could be a directory. directory must be the
root of a mounted file system.
------------------------------------------------------

also,
http://docs.hp.com/en/B2355-90950/ch06s02.html#bajbbeef
Be Tomorrow, Today.
Pete Randall
Outstanding Contributor

Re: Largefiles option on the fly..

I'm sorry but I don't see anywhere in the man page where it says the FS has to be unmounted to convert to largefiles.

root# bdf -l
Filesystem kbytes used avail %used Mounted on
.
.
.
/dev/vg00/lvol30 4096000 2104 3838035 0% /testfs
root# fsadm /testfs
fsadm: /etc/default/fs is used for determining the file system type
nolargefiles
root# fsadm -o largefiles /testfs
fsadm: /etc/default/fs is used for determining the file system type
root# fsadm /testfs
fsadm: /etc/default/fs is used for determining the file system type
largefiles
root# swlist -l product |grep -i online
PHCO_25831 1.0 SCSI Ultra160 driver Online Addition scr
ipt


As you can see, bdf shows it's mounted, it has "nolargefiles", I changed it to "largefiles", and swlist shows that I do not have OnlineJFS.


Pete

Pete
Dave Hutton
Honored Contributor

Re: Largefiles option on the fly..

I agree with Pete, I'm 99% sure I've done it on the fly without OnlineJFS.
I remember being surprised that I could.