- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Break Mirror, Replace Disk, and Re-sync How
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
06-04-2003 06:39 AM
06-04-2003 06:39 AM
/u is on /dev/vg01/lvol3, /dev/dsk/c0t5d0 (I think Internal Disk)
Critical software and appls are in this. Runs 7x24x365 (Almost)
Only /u on this now. all others file sys are moved out.
This is mirrored to /dev/dsk/c1t9d0 (Hot pluggable External Disk)
Q1) Can I break mirror, i.e want to take out /dev/dsk/c0t5d0
and replace with a new disk. How to do this.
Q2) After Replace, How to re-sync with /dev/dsk/c1t9d0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:45 AM
06-04-2003 06:45 AM
Re: Break Mirror, Replace Disk, and Re-sync How
Q2) Your /u will be working on a single disk now. Add the new disk, add it to the vg (vg01) with vgextend command. Once extended, mirror it back with:
# lvextend -m 1 lvol_name pv_path
Now check the status with lvdisplay -v command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:46 AM
06-04-2003 06:46 AM
Re: Break Mirror, Replace Disk, and Re-sync How
http://www2.itrc.hp.com/service/iv/node.do?node=prod%2FWW_Start%2FN1%7C16
In particular, look at Chapter 16 on LVM, and the section on "Replacing a Failed Disk".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:46 AM
06-04-2003 06:46 AM
SolutionISL> hpux -is (;0)/stand/vmunix
Now the recovery ..
# ioscan -fnC disk
==> Check to make sure the disk is there (assuming cXtXd0).
# pvcreate -f /dev/rdsk/cXtXd0
# vgcfgrestore -n /dev/vg01 /dev/rdsk/cXtXd0
# vgchange -a y /dev/vg01
# vgsync /dev/vg01
# shutdown -r 0
That's all ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:47 AM
06-04-2003 06:47 AM
Re: Break Mirror, Replace Disk, and Re-sync How
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:49 AM
06-04-2003 06:49 AM
Re: Break Mirror, Replace Disk, and Re-sync How
to break the mirror is fairly easy as you just have to type on command :
#lvreduce -m 0 /dev/vg01/lvol3 /dev/dsk/c0t5d0
that will place your file system onto one disk (c1t9d0). Once you have changed your disk, you can re-sync using :
#lvextend -m 1 /dev/vg01/lvol3 /dev/dsk/c0t5d0
I would, however, be very cautious since c0t5d0 is internal. The fact that this disk is internal, I would recommend shutting down the machine before even attemping to remove this drive and replacing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:51 AM
06-04-2003 06:51 AM
Re: Break Mirror, Replace Disk, and Re-sync How
Remember that the mirrrong can take much time.
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:53 AM
06-04-2003 06:53 AM
Re: Break Mirror, Replace Disk, and Re-sync How
-Take backup of /u
-shutdown the box and replace the disk.
-vgcfgrestore -n /dev/vg01 /dev/dsk/newdisk vgchange -a y /dev/vg01 and then vgsync /dev/vg01
No need to lvreduce or break the mirror.
Good luck
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 06:57 AM
06-04-2003 06:57 AM
Re: Break Mirror, Replace Disk, and Re-sync How
Can I do this on-line. i.e when users are using this anytime. Does it matter when I do this.
I prefer breaking the mirror (this way int disk will be no longer used). Make sure everything is OK.
If problems, I can add back to vg01.
Wait for sat/sun then schedule replace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:12 AM
06-04-2003 07:12 AM
Re: Break Mirror, Replace Disk, and Re-sync How
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:16 AM
06-04-2003 07:16 AM
Re: Break Mirror, Replace Disk, and Re-sync How
For Breaking the mirror, can I do this any time
I understand, for Replacing I need to take sys down
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:25 AM
06-04-2003 07:25 AM
Re: Break Mirror, Replace Disk, and Re-sync How
# lvreduce -m 0 /dev/vg01/lvol3 /dev/dsk/c0t5d0
==> If this is successful run the vgreduce next.
# vgreduce /dev/vg01 /dev/dsk/c0t5d0
==> Check it with ..
# vgdisplay -v vg01
If for the above complains at some point you may have to force the removal of missing PV with ..
# vgreduce -f vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2003 07:36 AM
06-04-2003 07:36 AM
Re: Break Mirror, Replace Disk, and Re-sync How
I would do both at the same time since I need to reboot the system anyway. What will be the benefit to break the mirror first and keep that disk unused for some days? So to reduce risk, I would do both after shutting down.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2003 07:16 AM
06-05-2003 07:16 AM
Re: Break Mirror, Replace Disk, and Re-sync How
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2003 08:53 AM
07-02-2003 08:53 AM
Re: Break Mirror, Replace Disk, and Re-sync How
Please assign points- as you have mentioned this thread in forum successes
Paula