- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Command to reduce the filesystem size?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2004 10:21 AM
08-07-2004 10:21 AM
Command to reduce the filesystem size?
To reduce the LV size we user lvreduce.
Is there any similar command to reduce the file system size.
command similar to lvreduce.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2004 05:06 PM
08-07-2004 05:06 PM
Re: Command to reduce the filesystem size?
There is no command to reduce filesystem.
If you are trying to reduce the LV, be prepared to do a newfs on the reduced LV and restore the data from a backup.
When you perform lvreduce, the command does not check if there is data in the extent it is removing, Therefore it may result in data loss.
Supported method is,
1) Backup filesystem
2) Lvreduce the LV
3) Newfs LV
4) Restore the backup
Hope this helps.
With regards,
Mohan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2004 06:01 PM
08-07-2004 06:01 PM
Re: Command to reduce the filesystem size?
A backup is always a good idea. I wasn't aware that newfs was necessary. If you're careful you might not need to do that.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2004 02:27 PM
08-08-2004 02:27 PM
Re: Command to reduce the filesystem size?
File system is a attribute. so, File system don't have the command of reduce or extend.
Good day~~
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2004 04:18 PM
08-08-2004 04:18 PM
Re: Command to reduce the filesystem size?
fsadm -b
lvreduce -L
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2004 06:52 PM
08-08-2004 06:52 PM
Re: Command to reduce the filesystem size?
(And Steve),This is what you can find in the man pages of lvreduce "warnings" section,
LVM does not store any information about which physical extents within
a logical volume contain useful data; therefore, reducing the space
allocated to a logical volume without doing a prior backup of the data
could lead to the loss of useful data. The lvreduce command on a
logical volume containing a file system of greater length than the
size being reduced to will cause data corruption.
To reduce a logical volume being used for swap, that swap area must
not be currently in use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 07:11 PM
08-10-2004 07:11 PM
Re: Command to reduce the filesystem size?
If you are using Veritas Volume manager you can use vxassist to do this.
In lvm if you have Online Jfs you can use fsadm.
No other way to reduce FS without lossing data.
Sunil