- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to remove mirrored swap
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
Forums
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
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
10-18-2001 12:28 PM
10-18-2001 12:28 PM
How to remove mirrored swap
1) vg00 (got 3 disks c1t6d0, c2t6d0, c9t3d0)
2) LVs are :-
o lvol1 /stand (on c1t6d0)
o lvol2 device-swap (on c1t6d0, c2t6d0)
o lvol3 / (on c1t6d0)
o lvol4 device-swap (on c9t3d0)
3) All lvols are not mirrored except lvol2.
lvol2 is on c1t6d0 and mirrored to c2t6d0.
4) c2t6d0 is dead ! lvol2 shows "stale".
5) vgdisplay vg00 gives .."couldn't query.."
How do I lvol2 and the dead disk c2t6d0 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:36 PM
10-18-2001 12:36 PM
Re: How to remove mirrored swap
Lou Zirko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:38 PM
10-18-2001 12:38 PM
Re: How to remove mirrored swap
lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2d6c0
Lou
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:39 PM
10-18-2001 12:39 PM
Re: How to remove mirrored swap
lvreduce -m 0 /dev/vg00/lvol2 /dev/dsk/c2t6d0
You should then be able to do a vgreduce to remove c2t6d0 if no other lvols are using it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:40 PM
10-18-2001 12:40 PM
Re: How to remove mirrored swap
first reduce the number of mirror copies
lvreduce -m 0 /dev/vg00/lvol
then remove the stale disk
vgreduce -f /dev/dsk/c?t?d? /dev/vg00
now you should be able to put in a new disk and:
pvcreate, vgextend, lvextend to re astate your mirror.
Hope this will help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:43 PM
10-18-2001 12:43 PM
Re: How to remove mirrored swap
I should really point out that the real question is should I worry about this? Your better approach is to shutdown, replace the disk, reboot (you may need to override disk quorum), and the do a vgcfgrestore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 12:44 PM
10-18-2001 12:44 PM
Re: How to remove mirrored swap
Since you can't query the disk because its dead, I think you are going to have to take a "long" approach. I'd treat this the same as any reconstruction of a vg00 mirrored disk:
# Shutdown your system and replace the disk that is failing.
# Boot into single user mode:
# ISL> hpux -is -lq /stand/vmunix
# vgcfgrestore -n /dev/vg00 /dev/rdsk/cXtYdZ
# mkboot /dev/rdsk/cXtYdZ
# mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/CXtYdZ
# lvlnboot -R
# lvlnboot -v #...to verify all is as desired...
# vgchange -a y /dev/vg00
# vgsync /dev/vg00
# shutdown -ry 0
Regards!
...JRF...