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-20-2008 09:23 AM
08-20-2008 09:23 AM
lvreduce
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 09:40 AM
08-20-2008 09:40 AM
Re: lvreduce
" File System Resizing
If the -b option is specified, fsadm resizes the file system whose mount point is mount_point. If newsize is larger than the current size of the file system, the file system is expanded to newsize sectors.
Similarly, if newsize is smaller than the current size of the file system, fsadm shrinks the file system to newsize sectors.
Increasing the size of a file system requires that the file system contain enough free space, prior to the expansion, for the growth of the structural files. In the case where a file system has no free blocks available, the attempt to increase the size of the file system will fail (see extendfs(1M) for an alternate method to increase file system size).
In a Version 3 or above disk layout, if there are file system resources in use in the sectors being removed, fsadm relocates those
resources to sectors staying within the resized file system. The time
needed for relocation depends on the number of blocks being moved.
In Version 2 disk layouts, file system structural components are fixed, so reducing the size of a file system fails if there are file system resources in use in the sectors being removed. In that case, a reorganization (using fsadm -e) can free busy resources and allow shrinking the file system. If there are still file system structural components within the area to be removed, you must upgrade the file system to a Version 3 or above disk layout to do a resize (see vxupgrade(1M))."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 09:41 AM
08-20-2008 09:41 AM
Re: lvreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 12:03 PM
08-20-2008 12:03 PM
Re: lvreduce
fsadm -F vxfs -b ######M /filesystem
This is online JFS. No unmounting.
Question: What do you mean by "..But, the fs cannot be unmounted..."? Are you trying to umount and gettig a device busy error or something.
No filesystem can be unmounted while a process is attached. Use this command to find out.
fuser -cu /filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2008 08:18 PM
08-20-2008 08:18 PM
Re: lvreduce
Pls check the below steps
1)First take a backup safety point of view
2)bdf
Check FS is in use or not
3)fuser -cu
4)Reorganize the files/directories in the file system.
fsadm -F vxfs -d -D -e -E
5)Reduce the file system size
fsadm -F vxfs -b
6)Reduce the logical volume.
lvreduce â L
check the man pages for each command so it will give clear idea what ur doing.
Regards
Atul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 02:06 AM
08-21-2008 02:06 AM
Re: lvreduce
1. Reduce the FS first with fsadm command.
2. Reduce LVOL with lvreduce command.
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2008 02:09 AM
08-21-2008 02:09 AM
Re: lvreduce
If it is a production machine then try doing it when load is least and file system mentioned here is not being accessed much.
Have you only run lvextend or fsadm also when adding 4 GB?
In our env we never use lvreduce in PRD servers