- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help with 'lvreduce' on core file system '/var'
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
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
тАО05-24-2023 11:23 PM - edited тАО05-30-2023 05:12 AM
тАО05-24-2023 11:23 PM - edited тАО05-30-2023 05:12 AM
Hi,
We have a server (rx4640 - HPUX 11.31 with OnlineJFS) and I am working on mirriong of two internal hard drive. Problem is the second drive is part of '/var' (not mirrored) and I can't use 'pvmove' command since there is no free PE on main drive.
After a little bit of research I came up with the following steps and I need your feedback:
1- backup file system
2- fsadm -F vxfs -D -E -d -e /var (defrag)
3- fsadm -F vxfs -b m 23988 /var (reduce file system size)
4- lvreduce -L 23988 /dev/vg00/lvol8 (reduce logical volume size)
5- pvmove -n /dev/vg00/lvol8 /dev/dsk/c3t0d0 /dev/dsk/c2t1d0 (move PE from second drive to main one)
Edit: no need for 'pvmove' command lvreduce command took care of that !
Thanks
Solved! Go to Solution.
- Tags:
- Operating System
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-26-2023 02:23 AM
тАО05-26-2023 02:23 AM
Re: Help with 'lvreduce' on core file system '/var'
Hi mfqm87,
If I understand correctly, your system consists of two disks.
The main drive contains all the partitions, including a small portion of /var, while the second drive holds partial data of /var.
Have I comprehended it correctly?
In order to free up space on the primary disk for the portion of /var currently residing on the second drive, you can consider defragmenting the filesystem and removing temporary and unnecessary files. By doing so, you may be able to recover space on the main disk, providing greater flexibility for the mirroring process.
However, it is crucial to be cautious and avoid accidentally deleting important data or system files. Remember to back up your data and proceed with care when performing these operations.
To guarantee the storage of a complete copy of the data, make sure that the mirror disk possesses either an equal or larger capacity than the primary disk.
Besides that, your proposed steps seem generally reasonable for optimizing the filesystem and moving the PE from second drive to main one.
Regards,
SUSH_S
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2023 01:45 AM
тАО05-28-2023 01:45 AM
Re: Help with 'lvreduce' on core file system '/var'
Hi @Sush_S,
Thank you for your reply
If I understand correctly, your system consists of two disks.
The main drive contains all the partitions, including a small portion of /var, while the second drive holds partial data of /var.
Have I comprehended it correctly?
That's right the total size of '/var' is 28GB, 3.3GB on the second drive and the remaining on main drive (actual current size of data is 16.5GB).
In order to free up space on the primary disk for the portion of /var currently residing on the second drive, you can consider defragmenting the filesystem and removing temporary and unnecessary files. By doing so, you may be able to recover space on the main disk, providing greater flexibility for the mirroring process.
However, it is crucial to be cautious and avoid accidentally deleting important data or system files. Remember to back up your data and proceed with care when performing these operations.
So you think defragmentation is enough no need to reduce the logical voulme ?
I am planning to backup the file system and test the backup server before attempting the process.
To guarantee the storage of a complete copy of the data, make sure that the mirror disk possesses either an equal or larger capacity than the primary disk.
Yes the second disk have the same capacity of primary one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2023 12:55 AM - edited тАО05-30-2023 03:34 AM
тАО05-29-2023 12:55 AM - edited тАО05-30-2023 03:34 AM
SolutionHi mfqm87,
Defragmentation focuses on optimizing the arrangement of files within the existing space but it won't reduce LV size. To actually reclaim disk space and accommodate the migrated data, you will need to resize the logical volume or partition using lvreduce.
After reducing the LV size if the entire volume fits on disk1, and disk2 is now empty, then you no longer need to perform a pvmove operation.
Regards,
SUSH_S
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2023 05:09 AM
тАО05-30-2023 05:09 AM
Re: Help with 'lvreduce' on core file system '/var'
Thanks @Sush_S
I have succssefully reduced '/var' and removed the second drive from 'vg00'.
After reducing the LV size if the entire volume fits on disk1, and disk2 is now empty, then you no longer need to perform a pvmove operation.
That's correct after defragment process and reducing the logical volume 'pvmove' command was not needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2023 10:39 PM
тАО06-06-2023 10:39 PM
Re: Help with 'lvreduce' on core file system '/var'
Hello @mfqm87,
Perfect! We are extremely glad to know the problem has been resolved.
Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
