- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Remove mirror disk
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
03-22-2003 09:35 AM
03-22-2003 09:35 AM
Remove mirror disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 09:57 AM
03-22-2003 09:57 AM
Re: Remove mirror disk
HP-UX mirroring occurs at the logical volume level. Therefore you need to deal with every logical volume on the affected disks.
To remove the mirrored copy, do:
# lvreduce -m 0 /dev/vgNN/lvolX /dev/dsk/cXtYdZ
...this allows you to target the physical disk from which you want to remove the mirror.
If you want to split and preseve the mirrored data as a new logical volume, use 'lvsplit':
# lvsplit -s backup /dev/vgNN/lvolX
...would produce a logical volume called 'lvolXbackup' for vgNN. This can later be remerged (remirrored) with 'lvmerge'.
See the man pages for more informmation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 10:16 AM
03-22-2003 10:16 AM
Re: Remove mirror disk
lvreduce -m 0 /dev/vg##/lvol# /dev/dsk/cXtYdZ
-or-
lvreduce -A -m 0 /dev/vg##/lvol# /dev/dsk/cXtYdZ
To verify:
vgcfgrestore -f /etc/lvmconf/vg##.conf -l
vgcfgbackup /dev/vg## (* Should default into /etc/lvmconf/vg##.conf *)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 11:23 AM
03-22-2003 11:23 AM
Re: Remove mirror disk
#lvdisplay -v /dev/vgXX/lvolX
# lvsplit /dev/vgXX/lvolX
may you can see /dev/vgXX/lvolXb
# mkdir /new
# mount /dev/vgXX/lvolXb /new
you can also mount like this and backup same data with original disk
# lvdisplay -v /dev/vgXX/lvolX
mirror copy is '0'
have a good day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2003 12:18 PM
03-22-2003 12:18 PM
Re: Remove mirror disk
What are you trying to do?.
If your goal is to take out the other disk and boot|use another system, then it will be tedious.
Because in order for you to cleanly remove the disk out of the system, first you will need to take it out of the volume group. To take it out of the VG, you will need to use vgreduce. To vgreduce, you will need to lvremove the lvols on it.
There are workarounds like using 'dd' or replacing the mirror disk with another similar disk and following the 'replacing the mirror disk' procedure. But you will need to do some lvm maintenance to use the yanked out disk on the other system.
-Sri