- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- reduce volume and allocate it to another
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
10-11-2006 03:41 AM
10-11-2006 03:41 AM
reduce volume and allocate it to another
/dev/data/M02 40960000 246952 40395064 1% /M02
/dev/data/M09 172105728 158790536 13211184 92% /M09
There is a request to shrink M02 by 32Gig and allocate that to M09. what steps i would do here, given i have no Online Jfs.Currently the VG data has only 2G free space, if i reduce 32G from M02 is their any step i have to do to make the VG see that space? Please help
Thanks
Thomas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 03:45 AM
10-11-2006 03:45 AM
Re: reduce volume and allocate it to another
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 03:46 AM
10-11-2006 03:46 AM
Re: reduce volume and allocate it to another
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 03:55 AM
10-11-2006 03:55 AM
Re: reduce volume and allocate it to another
Then you can extend M09.
Since you do not have online jfs you will need to make sure the application that access those is shut down.
Here's what I would do in your case (general steps):
1) Backup /M02
2) Umount /M02
3) Remove /dev/data/M02
4) Recreate /dev/data/M02
5) Mount /M02
6) Restore /M02
7) umount /M09
8) lvextend /M09
9) extendfs /M09
10) Moount /M09
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:03 AM
10-11-2006 04:03 AM
Re: reduce volume and allocate it to another
Thanks
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:04 AM
10-11-2006 04:04 AM
Re: reduce volume and allocate it to another
fsadm -b 7232M /M02
lvreduce -L 7232 /dev/data/M02
lvextend -L 200840 /dev/data/M09
fsadm -b 200840M /M09
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:06 AM
10-11-2006 04:06 AM
Re: reduce volume and allocate it to another
He doesn't have OnlineJFS!
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:13 AM
10-11-2006 04:13 AM
Re: reduce volume and allocate it to another
I still recommend recreating M02 from scratch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:14 AM
10-11-2006 04:14 AM
Re: reduce volume and allocate it to another
umount /M02
umount /M09
fsadm -b 7232M /M02
lvreduce -L 7232 /dev/data/M02
lvextend -L 196000 /dev/data/M09
fsadm -b 196000M /M09
I thought the only issue of NOT having online JFS was the downtime (since i have to umount). is this correct?
Thanks
Thomas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 04:19 AM
10-11-2006 04:19 AM
Re: reduce volume and allocate it to another
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 05:52 AM
10-11-2006 05:52 AM
Re: reduce volume and allocate it to another
umount /M02
umount /M09
lvreduce -L 7232 /dev/data/M02
extendfs /dev/data/rM02
lvextend -L 196000 /dev/data/M09
extendfs /dev/data/rM09
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2006 06:05 AM
10-11-2006 06:05 AM
Re: reduce volume and allocate it to another
Anyways - forget my last post - you can't use extendfs to reduce a file system.
You have to do it the way Patrick says - backup M02, then umount it, then lvreduce it, then newfs it, then restore your data.
For M09, yes, you can umount it and lvextend and extendfs it.
Rgds...Geoff