- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: reduce LV size
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
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
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
08-15-2014 06:07 AM
08-15-2014 06:07 AM
reduce LV size
Migrating data from one disk to another disk
The existing disk size(LV size as well) for vg-ABCD = 263424 MB = 4116 PEs (Physical extents)
The new disk’s size for this VG = 262144 MB = 4096 PEs only
Difference is 1.25 GB
The filesystems usage is just 6%
So I want to reduce the original LV size and then do the migration...
I have online JFS (and vxfs)
from another thread:
Reduce file system /dev/vgprod/lvred to 6GB = 6,291,456 (6,144,000)
I am confused at the fsadm command options...
2) fsadm -d -D -e -E mount-point
3) fsadm -F vxfs -b 6144000 mount-point (whats that 6144000 next to b)
4) lvreduce -L 6000 /dev/vgprod/lvred
I want to reduce the existing LV size from 263424 MB to 261120 MB
How do I do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2014 09:46 AM
08-15-2014 09:46 AM
Re: reduce LV size
The following should work:
# fsadm -b 261120m /mnt-point
# lvreduce -l 4096 /dev/vgxx/lvxx
(the number next to the -b is the size you wish to set the filesystem to. the 'm' specifies megabytes).
-Bob
Was this helpful? Like this post by giving me a thumbs up below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2014 10:47 AM
08-15-2014 10:47 AM
Re: reduce LV size
thanks.....
can you tell me why do I see this legacy naming convention after
I did a vgextend and
lvextend -m 1....
I was expecting :
vgdisplay -v vgname |grep "PV Name"
PV Name /dev/disk/existingdisk
PV Name /dev/disk/newdisk
But what I see is
PV Name /dev/dsk/c0t2d0
PV Name /dev/dsk/c0t5d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2014 10:59 AM
08-15-2014 10:59 AM
Re: reduce LV size
You are saying it changed?
Post the output of 'vgdisplay -v vgname' and 'lvmadm -l'
-Bob
Was this helpful? Like this post by giving me a thumbs up below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2014 01:44 PM
08-15-2014 01:44 PM
Re: reduce LV size
Got rid of legacy naming convention(cxtxdx) and got agile nameing convention (/dev/disk/disk) by executing this command
vgdsf -c vgname
thanks anyways
- Tags:
- vgdsf