- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvreduce
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
тАО04-05-2015 01:44 PM
тАО04-05-2015 01:44 PM
lvreduce
fsadm -f vxfs -b 3000 /data
This above command will work or not?
How to check the vxfs version and vg and lvm version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2015 05:11 PM - edited тАО04-06-2015 07:10 AM
тАО04-05-2015 05:11 PM - edited тАО04-06-2015 07:10 AM
Re: lvreduce
>> fsadm -f vxfs -b 3000 /data
From the man page:
-b newsize Resize the file system to newsize sectors.
However, nowhere in the man page is a "sector" defined. One could guess that it means 512 bytes as it has for decades when referring to disks. However, by experimentation it would appear that fsadm sectors are 1024 bytes, so your command will change the filesystem to 3000 sectors which is 3 megabytes...probably not what you wanted. The good news is that if the filesystem is larger than 3 megabytes, the command will not make any changes.
Unfortunately, the man page has been defective ever since fsadm was created. There is an undocumented suffix that can be added to make the number (3000 in this case) represent megabytes, like this: 3000m
So the command is probably: fsadm -f vxfs -b 3000m /data
I say probably because you did not tell us how big the the current lvol is and how much of the lvol is occupied.
As far as versions:
vxfs version = fstyp -v /dev/vg00/lvol3
LVM version = what /sbin/vgdisplay
...all LVM commands are actually one executable so what with any command will be the same
VG version = vgdisplay vg00
...For VG version, if vgdisplay does not report "VG Version" then the VG is version 1.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2015 10:30 PM
тАО04-05-2015 10:30 PM
Re: lvreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-06-2015 06:40 AM
тАО04-06-2015 06:40 AM
Re: lvreduce
>>I need yp reduce data mount point from 6gb to 3 GB .please share the procedure
If Online JFS is installed then you can do the following:
# fsadm -F vxfs -b 3072m /data
# lvreduce -L 3072 /dev/vg?/lvol?
Where "/dev/vg?/lvol?" is the name is the LV for this mountpoint.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2015 10:13 PM
тАО06-04-2015 10:13 PM
Re: lvreduce
Take backup of your mountpoint before running lvreduce.
If db mountpoint , shut application down & then a cold backup.