cancel
Showing results for 
Search instead for 
Did you mean: 

fsadmin

SOLVED
Go to solution
kunjuttan
Super Advisor

fsadmin

can we able to use fsadmin command for reducing LV?
14 REPLIES
Michal Kapalka (mikap)
Honored Contributor
Solution

Re: fsadmin

Johnson Punniyalingam
Honored Contributor

Re: fsadmin

are you refering to "fsadm" ?

yes you can
Problems are common to all, but attitude makes the difference
kunjuttan
Super Advisor

Re: fsadmin

can you please give me the syntax?
Johnson Punniyalingam
Honored Contributor

Re: fsadmin

step 1 :-

fsadm -F vxfs -b M

step 2 :- reduce logical volume by lvreduce:

lvreduce -L


Problems are common to all, but attitude makes the difference
kunjuttan
Super Advisor

Re: fsadmin

But this wil result in data losing.right?
Jeeshan
Honored Contributor

Re: fsadmin

Yes, you can use "fsadm" command to increase or decrease value while file system online.

But, before that, check that you have OnlineJFS license to use fsadm.
a warrior never quits
Michal Kapalka (mikap)
Honored Contributor

Re: fsadmin

hi,

its recomended to make a backup of the FS, before you play with the LVM.

I do it always, before start to work on the system.

mikap
Jeeshan
Honored Contributor

Re: fsadmin

Before doing any system activities or maintenance (LVM, Kernel, patch installation etc.) its highly recommended to take system backup.
a warrior never quits
Johnson Punniyalingam
Honored Contributor

Re: fsadmin

>>But this wil result in data losing.right?<<

if you all the LVM patches are up to date,

no margin for data lose,

Its better to take full backup of the file system before you reduce.

my 2cents .

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
SoorajCleris
Honored Contributor

Re: fsadmin

Hi johnson,

===> step 1 :-

fsadm -F vxfs -b M


There is a correction. Running this command he will loose his data..

"-b" size in KB. We should always take are while running this command

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: fsadmin

Hi,

I told loosing data even in case if he is running this command to increase the size of the filesystem

Becaue if we increasing a filesystem to 2GB thinking -b in MB , the file system will reduce to 2 MB :)


lvextend uses -L with size in MB.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
SoorajCleris
Honored Contributor

Re: fsadmin

loose* - lose

sorry :P
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Sp4admin
Trusted Contributor

Re: fsadmin

Hello,

As stated above you can use fsadm and lvmreduce commands to achive this. But as stated make sure patch level is current and you bcakup the filesystem just incase you run into some problems.

sp,
Viktor Balogh
Honored Contributor

Re: fsadmin

I usually go this way:

1) reduce the filesystem a little bit smaller as it should be. e.g.: I reduce it to 99Gbyte instead of 100Gbyte.

2) Reduce the LV to 100Gbyte

3) grow back the FS to 100Gbyte.


I know it's lame, but I like to be always sure that I will have no data loss. If you prefer, go this way.
****
Unix operates with beer.