- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reduce the lv size
Operating System - HP-UX
1756318
Members
3742
Online
108845
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-09-2010 02:50 AM
тАО03-09-2010 02:50 AM
Re: reduce the lv size
>LV extents are a real pain to use and easy to >calculate incorrectly. Use -L #### in MBytes. >If the original size in 15 GB, then lvreduce >-L 15000 is all you need.
Bill, I must neglect it. I prefer to use "-l extent number", because it is a much exact method. To me 15GB is 15*1024 MB which is 15360 MB. 15000MB would be 15GiB, but I dislike these notations anyway. If you stick to the sizes in MB or GB by extending an FS, you can easily get lost between the conversions.
Bill, I must neglect it. I prefer to use "-l extent number", because it is a much exact method. To me 15GB is 15*1024 MB which is 15360 MB. 15000MB would be 15GiB, but I dislike these notations anyway. If you stick to the sizes in MB or GB by extending an FS, you can easily get lost between the conversions.
****
Unix operates with beer.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2010 01:01 AM
тАО03-11-2010 01:01 AM
Re: reduce the lv size
Thank you Bill Hassell for making me clear.
One more thing:
Actually i have increased to 25gb instead of 15gb right then in that case how can i revert to 15gb?
Following command will revert me to 15gb?
#lvreduce -L 15360
Thank you.
One more thing:
Actually i have increased to 25gb instead of 15gb right then in that case how can i revert to 15gb?
Following command will revert me to 15gb?
#lvreduce -L 15360
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2010 02:24 AM
тАО03-11-2010 02:24 AM
Re: reduce the lv size
You follow below example :- (In this example iam reducing "50MB
step1 :- Backup important ****
step 2 :-# fsadm -F vxfs -D -d -E -e -s /test/testlv -> File system name
step 3 :-# fsadm -F vxfs -b /test/testlv -> File system name
step 4:- # umount /test/testlv -> File system name
(this depends, hence i am not comfortable so i'm unmounting before redcuing)
step 5 :- # lvreduce -L /dev/vg01/lvol4
Warning: rounding up logical volume size to extent boundary at size "52" MB.
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg01/lvol4" has been successfully reduced.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
More refernce.
# fsadm ???F vxfs ???d ???D ???e ???E
-d perform directory defragmentation
-e perform extent defragmentation
# fsadm ???F vxfs ???b
-b set new file system size to n KB
# lvreduce ???L /dev/vgXX/lvolX
-L set new size of lvol to n MB
step1 :- Backup
step 2 :-# fsadm -F vxfs -D -d -E -e -s /test/testlv -> File system name
step 3 :-# fsadm -F vxfs -b
step 4:- # umount /test/testlv -> File system name
(this depends, hence i am not comfortable so i'm unmounting before redcuing)
step 5 :- # lvreduce -L
Warning: rounding up logical volume size to extent boundary at size "52" MB.
When a logical volume is reduced useful data might get lost;
do you really want the command to proceed (y/n) : y
Logical volume "/dev/vg01/lvol4" has been successfully reduced.
Volume Group configuration for /dev/vg01 has been saved in /etc/lvmconf/vg01.conf
More refernce.
# fsadm ???F vxfs ???d ???D ???e ???E
-d perform directory defragmentation
-e perform extent defragmentation
# fsadm ???F vxfs ???b
-b
# lvreduce ???L
-L
Problems are common to all, but attitude makes the difference
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2010 09:37 PM
тАО03-15-2010 09:37 PM
Re: reduce the lv size
Thank you.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP