1751907 Members
5283 Online
108783 Solutions
New Discussion юеВ

Re: fsadmin

 
SOLVED
Go to solution
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.