1848732 Members
2065 Online
104036 Solutions
New Discussion

Re: lvreduce

 
SOLVED
Go to solution

lvreduce

Hi, i have only Base JFS, when i need to extend a file system, i use the lvextend -L, unmount the file system and use the extenfs. My doubt is when i use the lvreduce -L, what command could be usued the has the same function of the extendfs ?

Thanks a lot.
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: lvreduce

Hi Francisco:

In the absence of OnlineJFS, to reduce a filesystem's size, you must backup the filesystem; 'lvreduce' the underlying logical volume (or 'lvremove' and 'lvcreate' a new one); 'newfs' a filesystem and reload your data from backup.

Regards!

...JRF...
Robert-Jan Goossens_1
Honored Contributor

Re: lvreduce

Hi,

Copy/backup your data to tape or disk.

# umount /dev/vgxx/lvolx

# lvreduce -L new_size_MB /dev/vgxx/lvolx

# newfs -F vxfs /dev/vg03/rlvolx

# mount -a

# bdf

Restore your data.

Regards,
Robert-Jan
Peter Godron
Honored Contributor

Re: lvreduce

Hi,
please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1021733

Please take note of Robert-Jan
"2 GOOD BACKUPS" statement.

Re: lvreduce

With this information i solve my problem.

Thanks