|
|
Parent Directory
| LVM - Reduce
Brett Lee
=============================================================================
Problem Description
I have online JFS (journaled file system) and I want to reduce
/users from 2 gigabytes to 1 gigabyte. Do you have procedures
for doing this?
Configuration Info
Operating System -HP-UX
Version -10.10
Hardware System -K210
Solution
The procedures for reducing a file system with online JFS Vxfs
are as follows:
1. To perform directory and extent re-organization, and view
de-fragmentation reports:
fsadm -d -D -e -E /<jfs_mount_point>
2. To resize the JFS file system:
fsadm -b <newsize> /<jfs_mount_point>
Note: newsize is in sectors, 1 sector = 1 kb
3. Reduce the size of the logical volume:
lvreduce -L 1000 /dev/vg##/lvol##
Note: size is in megabytes
4. fsadm -d -D -e -E /users
5. fsadm -b 1,024,000 /users
6. lvreduce -L 1000 /dev/vg##/lvol##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
In an effort to provide a service of value to the open source community, I've put together this website that containing many of my notes and references.
This website is not authoritative and it is certainly not without errors; it is a work in progress.
In addition to my contributions you will also find the work of others. Where the work is not mine, I have tried to indicate that, and to reference the source of the work: by citing the original author, retaining the authors' name and license wherever present, or by placing the work in a suitably named URL containg /external/ in the path. If you find any work here that should not be publically available, please send me a note and it will be removed.
As for my contributions, you are free to use any of *MY* notes or code from this website unless specifically instructed otherwise.
Brett Lee, Ph.D., President & CEO
Everything Penguin, Inc.
|
|
|