- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: decrease logical volume
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-11-2002 01:30 AM
03-11-2002 01:30 AM
I try to use sam to decrease the logical volume. I found there is only "increase logical volume" in the sam.
Would someone please to tell me how to decrease the logical volume?
thanks a lot.
zhiyong
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:34 AM
03-11-2002 01:34 AM
Solutionif you don't have Online/JFS you cannot shrink a log. volume / filesystem.
You have to backup the data (filesystem) of the log. volume, umount , remove log. volume, recreate log. volume with new size, make filesystem on log. volume (newfs) , mount again and restore the backuped data.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:43 AM
03-11-2002 01:43 AM
Re: decrease logical volume
#lvreduce -L (size in MB) /dev/vgxx/lvolx
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.
To reduce a logical volume being used for swap, that swap area must
not be currently in use.
See man lvreduce for details.
Cheers
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:44 AM
03-11-2002 01:44 AM
Re: decrease logical volume
if you don't have Online JFS, it's not possible to decrease a logical volume. You could do something instead:
make a backup of the logical volume, after that remove the old logical volume, create a new one and restore the backup into the new logical volume.
To find out, if you use Online JFS, simply have a look into your /etc/fstab.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:48 AM
03-11-2002 01:48 AM
Re: decrease logical volume
# tar -c /myfs
# umount /myfs
#newfs -F vxfs -s xxxxx /dev/vg01/rmyfs
#mount /myfs
#tar -x /myfs
#bdf /myfs
with this you are reducing the file system "myfs" that is JFS (without online JFS)
#lvreduce -L xx /dev/vg01/myfs
with this terminate of reducing the logical volume. Be careful, before make the lvreduce be sure that you were reducing the file system.
Good Luck.
Jota.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:48 AM
03-11-2002 01:48 AM
Re: decrease logical volume
If you are not having Online JFS , reducing a logical volume will wash out the data in it.
However you can take backup and reduce the required voulume and once you have reduced it then restore from backup.
Ex.
Decrease the logical volume size by decreasing the number of logical extents allocated to it.
"lvreduce -l 100 /dev/vg01/lvol3" will reduce the logical extents allocated for /dev/vg01/lvol1 to 100 numbers.
see also the man page of command "lvdisplay" ;
to get the current characteristics of the logical voulme which includes the extent size and the current extent allocated.
-K.Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 01:53 AM
03-11-2002 01:53 AM
Re: decrease logical volume
See the link,
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90672/B2355-90672_top.html&con=/hpux/onlinedocs/B2355-90672/00/00/1-con.html&toc=/hpux/onlinedocs/B2355-90672/00/00/1-toc.html&searchterms=system%7cadministration%7ctasks&queryid=20020303-234636
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 02:07 AM
03-11-2002 02:07 AM
Re: decrease logical volume
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2002 03:01 AM
03-11-2002 03:01 AM
Re: decrease logical volume
Thanks a lot for all your help. I really appreciated it.
Have a good day.
zhiyong