Re: How to enable a large file system

From: Page, Jennifer (Jennifer.Page@RBCDAIN.COM)
Date: Tue Nov 12 2002 - 15:00:21 EST


Went to look up some info and it seems editing the /etc/filesystem is not ideal.

The cases to edit the file seem only to be when needed to do a system recovery step and/or when a fs name is larger than 128 characters.

The concept to move the data only once seems to be ok, just should not edit the /etc/filesystem file (expect in cases above). I would now agree the chfs command would be a better choice.

*When changing the mount point I believe you can just use /junk1, /u1 and /u2.

(after coping data)
umount /u1
umount /u2
mkdir /junk1
chfs -m /junk1 /u1
chfs -m /u1 /u2
rmfs /junk1
rmdir /junk1
rmdir /u2
mount /u1

Thanks Holger and Viren.

-----Original Message-----
From: Gupta, Virender - Information Technology
<virender_gupta@timeinc.com> [mailto:Virender_Gupta@TIMEINC.COM]
Sent: Tuesday, November 12, 2002 1:21 PM
To: aix-l@Princeton.EDU
Subject: Re: How to enable a large file system

Jennifer:
In general, do not edit /etc/filesystems, if you can help it. ODM info is not updated when systems files are edited directly. Here are the commands to change mount points. Assume you want to switch the lv's mounted at /u1 and /u2

umount /u1
umount /u2
mkdir /junk1
mkdir junk2
chfs -m /junk1 /u1
chfs -m /junk2 /u2
chfs -m /u2 /junk1
chfs -m /u1 /junk2
mount /u1
mount u2

/junk1 /junk2 are used as place holders. You can simply delete them when done.

Viren Gupta
Time Inc.

-----Original Message-----
From: Page, Jennifer [mailto:Jennifer.Page@RBCDAIN.COM]
Sent: Tuesday, November 12, 2002 1:03 PM
To: aix-l@Princeton.EDU
Subject: Re: How to enable a large file system

Could you save a step (if there is a large amount of data):

(1) create 2nd lv/fs --> largefiles enabled
(2) mount 2nd lv/fs and copy contents in
(3) un-mount original lv/fs and 2nd lv/fs
(4) edit the /etc/filesystems file (back up first) and switch the mount points
(5) mount correct filesystem on 1stfs/2ndlv and remove 2ndfs/1stlv

*don't have to copy the data twice.
**What's the common consensus of editing the /etc/filesystem file?

-----Original Message-----
From: Bill Thompson [mailto:bill.thompson@GOODYEAR.COM]
Sent: Tuesday, November 12, 2002 6:16 AM
To: aix-l@Princeton.EDU
Subject: Re: How to enable a large file system

pAG,

Did you read the original question and the entire response? They asked how to change a filesystem to largefile enabled. They didn't ask how to do it dynamically. Not only is there a way to do this, but the response spelled out exactly how it can be done:

Backup the data - delete the logical volume - recreate it with largefiles enabled - restore the data

Not easy but it works.

I've worked with UNIX for a long time and I very rarely say there is "NO" way.

There are many things that have to be done the "hard" way. Every migrate to a new server? Can't be done dynamically but of course it can is done all the time.

I think saying this can't be done is not only overreacting and exaggerating it is just plain wrong.

support@xiatecs.net gave the correct answer.

Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

----- Original Message -----
From: "pSeries AIX Geek" <aixgeek@YAHOO.COM>
Newsgroups: bit.listserv.aix-l
To: <aix-l@Princeton.EDU>
Sent: Monday, November 11, 2002 10:16 PM
Subject: Re: How to enable a large file system

> Why even give him hope by saying "no easy way"? There
> is NO way. The inodes have a completely different
> structure with the large file-enabled file system.
> Even if you attempt were write a C-program to go and
> muck with the inode tables, I think you could easily
> map a scenario where you would't be able to remap
> them. I.e., only under very limited circumstances
> could this even be attempted -- hence, I'd just say,
> "there's NO way" and I wouldn't be overreacting or exaggerating.
>
> - pAG
>
>
> --- support <support@xiatecs.net> wrote:
> > Frank,
> >
> > unfortunately, there is no easy way to do it after
> > creating the file system.
> > The only way now is to backup the file system,
> > remove it, recreate the file
> > system as large enabled file system, finally reload
> > you backup.
> >
> > XiaTecs Support Team
> > support@xiatecs.net
> > www.xiatecs.net
> >
> >
> > -----Original Message-----
> > From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU]On Behalf
> > Of fcheung
> > Sent: Thursday, November 07, 2002 12:22 PM
> > To: aix-l@Princeton.EDU
> > Subject: How to enable a large file system
> >
> >
> > Admins,
> >
> > Could someone guide me to change enable a large file support on a
> > existing file
> > system? I changed the file limit to unlimited on
> > /etc/security/limit.
> > But I can't
> > change the Fragment Size and Allocation Group Size
> > on a existing file
> > system.
> >
> > Thanks
> >
> >
> > Frank
>
>
> __________________________________________________
> Do you Yahoo!?
> U2 on LAUNCH - Exclusive greatest hits videos
> http://launch.yahoo.com/u2



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:19 EDT