- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to decrease logical volume on HP-UX?
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
Discussions
Discussions
Forums
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
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
тАО03-26-2007 06:32 AM
тАО03-26-2007 06:32 AM
In SAM you can increase a volume, but there's no option to decrease.
Regards,
Chris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 06:35 AM
тАО03-26-2007 06:35 AM
Re: How to decrease logical volume on HP-UX?
You need to _first_ reduce the size of the _filesystem_ contained within the logical volume (with 'fsadm') and then 'lvreduce' the logical volume.
If this isn't a VxVS (JFS) filesystem (unlikely) or if you don't have OnlineJFS (I hope not) then you must backup any data that you want saved; 'lvreduce' the filesystem; 'newfs' a filesystem within the logical volume; and reload your data.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 07:01 AM
тАО03-26-2007 07:01 AM
Solution1) Take a full backup of the filesystem
2) Check if you have OnlineJFS
3) If yes, defragment the filesystem to increase the chances of successful size reduction
fsadm -F vxfs -D -E -d -e /
4) Reduce the size of the filesystem
fsadm -F vxfs -b
Note the affix "m"
5) if the above command was succesful then you can reduce the LV size
lvreduce -L
Sundar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 07:34 AM
тАО03-26-2007 07:34 AM
Re: How to decrease logical volume on HP-UX?
Safe method w/o OnlineJFS
Take a full backup, with all databases and such down. (can be done with sam)
umount the filesystem (can be done with sam)
lvremove the logical volume (can be done with sam)
lvcreate the newer, smaller logical volume (can be done with sam).
Restore the data(yes can be done with sam).
I recommend a backup before using any of the above methodologies. Onlinejfs is excellent, but not perfect.
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
тАО03-26-2007 07:43 AM
тАО03-26-2007 07:43 AM
Re: How to decrease logical volume on HP-UX?
We did this few weeks ago.
1) make backup
2) make another backup
Fsadm ├в D ├в E mount-point
Reduce file system /dev/vgprod/lvred to 6GB = 6,291,456 (6,144,000)
1) fsadm ├в d ├в D ├в e ├в E mount-point
2) fsadm ├в d ├в D ├в e ├в E mount-point
3) fsadm ├в F vxfs ├в b 6144000 mount-point
4) lvreduce ├в L 6000 /dev/vgprod/lvred
Verify
Vgdisplay ├в v vgred
Should display the logical volume with the new size
Increase the file system mount-point-2 to 10GB
Current size is 5 GB
Next size after extension = 10 GB
lvextend ├в L 10000 /dev/vgprod/lvredqa
fsadm ├в F vxfs ├в b 10240000 /dev/vgprod/lvredqa
Verify
Vgdisplay ├в v vgprod
Lvdisplay ├в v /dev/vgprod/lvredqa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 07:47 AM
тАО03-26-2007 07:47 AM
Re: How to decrease logical volume on HP-UX?
that cut and paste did not work properly.
here is the cut and paste from text
Fsadm -D -E mount-point
Reduce file system /dev/vgprod/lvred to 6GB = 6,291,456 (6,144,000)
1) fsadm -d -D -e -E mount-point
2) fsadm -d -D -e -E mount-point
3) fsadm -F vxfs -b 6144000 mount-point
4) lvreduce -L 6000 /dev/vgprod/lvred
Verify
Vgdisplay -vv vgred
Should display the logical volume with the new size
Increase the file system mount-point-2 to 10GB
Current size is 5 GB
Next size after extension = 10 GB
lvextend -L 10000 /dev/vgprod/lvredqa
fsadm -F vxfs -b 10240000 /dev/vgprod/lvredqa
Verify
Vgdisplay -v vgprod
Lvdisplay -v /dev/vgprod/lvredqa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 08:13 AM
тАО03-26-2007 08:13 AM
Re: How to decrease logical volume on HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 06:41 AM
тАО04-18-2007 06:41 AM
Re: How to decrease logical volume on HP-UX?
As Steven sad it's possible using SAM via a backup, resize and restore action, but I'm wondering that is still the case when it's the root filesystem and volume I want to reduce. I mean I could go into single mode, but is SAM still available then? Anyway I don't have enough diskspace to keep the backup.
Anyone any ideas.........?
Thanx in advance.
Regards,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 06:47 AM
тАО04-18-2007 06:47 AM
Re: How to decrease logical volume on HP-UX?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2007 06:50 AM
тАО04-18-2007 06:50 AM
Re: How to decrease logical volume on HP-UX?
> I want to know my options reducing my root filesystem and volume without onlineJFS.
Ignite is the best choice. Make an Ignite recovery tape of vg00 and boot from it. Choose the Advanced Installation mode and tab to the filesystem menus to size your filesystems to your tastes.
Regards!
...JRF...