Link to home
Start Free TrialLog in
Avatar of g0all
g0allFlag for Saint Pierre and Miquelon

asked on

AIX increase rootlv?

Hi,

Two questions please:

1. Is there any risk in increasing the root lv on a AIX system if the vg that's part of has additional free space?

Is chfs -a size=+1G / enough?

Will the system boot after this operation?

2. is there any risk if I ran by mistake lvextend before chfs on a AIX 5L server? Would that affect files on that LV? Lvextend actually didn't increase the file system and after that I run chfs.

Thank you!
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of g0all

ASKER

Hi wmp,

Thank you so much for your explications. I believe next time I will start my AIX threads with "Hi, wmp!".

1. +1G was a example for having syntax confirmation only.

2. What I did was:

extendlv +100M lv_wanted (command runned by mistake - forgot about chfs!).

After that, I've run:

chfs -a size=+100M /wanted.

Volume seems fine, and at file system level it seems that the sizing is 200Mb (initially I've had 100Mb).

Do you still believe there is some 100Mb space lost in here? Hm....
Avatar of g0all

ASKER

Perfect! Outstanding!
Avatar of g0all

ASKER

Sorry regarding the extend lv the command I've typed:

extendlv lv_wanted 100M

Question: this would extend the lv with 100Mb or TO 100Mb?
BY 100 MB.

But as opposed to chfs extendlv cannot reduce.

Reducing could be done with lreducelv, but this command should only be called by chfs, not by the end user (although the latter is also possible).

Anyway, run the "lsfs -q" thing as I suggested, and if LV and FS differ in size, adjust as described.

You can then set any desired size with "chfs", without having to care about the mentioned "...lv..." commands.

Thx for the points!

A beautiful question, by the way, and yes, I am an AIX addict. Count on me, I'll stay tuned (but not for the next few hours, I'll have to travel).


Cheers

wmp
Avatar of g0all

ASKER

I've checked and LV and FS are the same.

I like AIX a lot also but I'm scared to death to run some FS-related commands because I'm afraid not to distroy data.

I'm having some Linux experience but I agree, AIX is so great.

Thank you so much!