- 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
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
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:18 AM
04-23-2007 02:18 AM
Re: How to decrease logical volume on HP-UX?
Thanx for you help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:21 AM
04-23-2007 02:21 AM
Re: How to decrease logical volume on HP-UX?
Thanx for you help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:26 AM
04-23-2007 02:26 AM
Re: How to decrease logical volume on HP-UX?
Is it possible to reduce /opt in single mode without using Ignite or OnlineJFS?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2007 02:29 AM
04-23-2007 02:29 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-23-2007 02:31 AM
04-23-2007 02:31 AM
Re: How to decrease logical volume on HP-UX?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2014 10:40 PM
12-31-2014 10:40 PM
Re: How to decrease logical volume on HP-UX?
Hi Sundar,
We want to reduce lvol13 which is currently 1700GB, but there is another mount lvol14 point which is under this mount point lvol13. Now can we follow your solution?
/dev/vgvedas/lvol13
1782579200 542028352 1234416248 31% /CDBLprodrun
/dev/vgvedas/lvol14
102400000 60213192 41866424 59% /CDBLprodrun/dat
Thanks.
Tanjil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2015 01:50 PM
01-01-2015 01:50 PM
Re: How to decrease logical volume on HP-UX?
>there is another mount lvol14 point which is under this mount point lvol13
You should be able to umount /CDBLprodrun/data and mount it elsewhere. Or remount it later.