HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- swap out a physical disk under the hood of LVM
Operating System - HP-UX
1838379
Members
2938
Online
110125
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
Forums
Discussions
Discussions
Discussions
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
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
05-10-2006 11:52 PM
05-10-2006 11:52 PM
I want to push a new physical disk into my LVM volume group and pull out an old one. The disks are of like size. The volume group has active logical volumes with mounted filesystems.
In Tru64, I would addvol/rmvol with no noted interruption to production services.
How do I do this in HP-UX? Base commands and order is what I am looking for.
Please also comment on how this may change if the volume group is part of a service guard package.
Much thanks!
In Tru64, I would addvol/rmvol with no noted interruption to production services.
How do I do this in HP-UX? Base commands and order is what I am looking for.
Please also comment on how this may change if the volume group is part of a service guard package.
Much thanks!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 12:01 AM
05-11-2006 12:01 AM
Solution
1) ioscan -fn
2) insf -e
3) pvcreate new_disk
4) vgextend VGNAME new_disk (also for the PVLINK disk ID, if applicable)
5) For each LVOL:
pvmove LVOL old_disk (will move all physical extents from old disk to available disk space)
6) pvdisplay -v old_disk (to see what still lives there). If not empty, repeat 5).If empty:
7) vgreduce VGNAME old_disk (gets old_disk off the VG): Make sure you do the PVLINK disk ID as well, if you have them!
8) vgexport to map file
9) on other cluster node/s, do vgimport using map file
Questions?
2) insf -e
3) pvcreate new_disk
4) vgextend VGNAME new_disk (also for the PVLINK disk ID, if applicable)
5) For each LVOL:
pvmove LVOL old_disk (will move all physical extents from old disk to available disk space)
6) pvdisplay -v old_disk (to see what still lives there). If not empty, repeat 5).If empty:
7) vgreduce VGNAME old_disk (gets old_disk off the VG): Make sure you do the PVLINK disk ID as well, if you have them!
8) vgexport to map file
9) on other cluster node/s, do vgimport using map file
Questions?
Trying is the first step to failure - Homer Simpson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 12:03 AM
05-11-2006 12:03 AM
Re: swap out a physical disk under the hood of LVM
Use pvmove [ see man page of pvmove ]
to move all the physical extents one disk to another disk/PV in your VG.
Note: pvmove cannot be performed if the volume group is activated in shared mode.
If VG is part of a SG, but VG is not in shared mode - you need to make sure that the new disk is visible to the other nodes and if you are using infile with -f option while importing disks on to other nodes - please make the necessary modifiction [ replace the current disk name with the new one ] on the other nodes.
Regards,
Ninad
to move all the physical extents one disk to another disk/PV in your VG.
Note: pvmove cannot be performed if the volume group is activated in shared mode.
If VG is part of a SG, but VG is not in shared mode - you need to make sure that the new disk is visible to the other nodes and if you are using infile with -f option while importing disks on to other nodes - please make the necessary modifiction [ replace the current disk name with the new one ] on the other nodes.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2006 12:22 AM
05-11-2006 12:22 AM
Re: swap out a physical disk under the hood of LVM
Thanks for quick responses!
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.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP