- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can I replace a mirror disk with a new HD w/o havi...
Operating System - HP-UX
1753823
Members
8624
Online
108805
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО09-27-2005 01:52 PM
тАО09-27-2005 01:52 PM
Can I replace a mirror disk with a new HD w/o having to break the mirror?
Hi,
I have an RP4640 server with the two internal HDDs mirrored.
I wish to replace the 10K RPMs HDDs with a higher speed 15K RPMs HDDs so I just unplugged one disk.
After I lugged the new HDD, when I do a "ioscan -fnC disk", the old entry of the original disk is still there (including all the partitions).
If I do a "strings /etc/lvmtab", the new harddisk is already included. How do I proceed with mirroring the new HDD without necessarily inserting the old harddisk and breaking the mirror.
Thanks in advance!
Regards,
Ken
I have an RP4640 server with the two internal HDDs mirrored.
I wish to replace the 10K RPMs HDDs with a higher speed 15K RPMs HDDs so I just unplugged one disk.
After I lugged the new HDD, when I do a "ioscan -fnC disk", the old entry of the original disk is still there (including all the partitions).
If I do a "strings /etc/lvmtab", the new harddisk is already included. How do I proceed with mirroring the new HDD without necessarily inserting the old harddisk and breaking the mirror.
Thanks in advance!
Regards,
Ken
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 02:27 PM
тАО09-27-2005 02:27 PM
Re: Can I replace a mirror disk with a new HD w/o having to break the mirror?
Hi,
Nevermind this post. I just had to lvreduce all the logical volumes and vgreduce the volume group for the the new diskdrive just to change the existing configuration of /etc/lvmtab although the actual physical config may have changed.
Nevermind this post. I just had to lvreduce all the logical volumes and vgreduce the volume group for the the new diskdrive just to change the existing configuration of /etc/lvmtab although the actual physical config may have changed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 02:27 PM
тАО09-27-2005 02:27 PM
Re: Can I replace a mirror disk with a new HD w/o having to break the mirror?
closing the thread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-27-2005 02:38 PM
тАО09-27-2005 02:38 PM
Re: Can I replace a mirror disk with a new HD w/o having to break the mirror?
You have a very interesting appoach: Do something THEN ask how to do it. What you need to do is let the system think it has a dead disk. Pull out the NEW drive that you just installed a few centimeters and let it spin down. Let it sit there 2 minutes or so -- the system will think it has a dead disk. You now proceed with the normal disk replacement. We do need to make sure that all the extents on the remaining intact disk are "current". NOTE: There are new LVM patches that let you remove a drive but I'll assume that you haven't installed them --- and the following will work in any case.
1) Do a series of lvdisplay -v commands for each lvol on the physical disk and make sure that all the extents on the remaining "good" drive are current. (I actually have a script for this --- checkextents.sh -- you'll do this manually or write a small script)
2) "Yank" the new drive out. Pull it out just 2 cm or so and leave it resting in the slot. This lets the drive spin down gradually w/o damage.
3) Wait 120 seconds or so and then run checkextents.sh agian making sure that the remaining drive has all "current" extents.
4) Now insert the drive fully. Allow it to spin up. Think happy thoughts.
Let's assume the replacement drive is c0t6d0:
5) vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0
6) vgchange -a y /dev/vg00
7) mkboot /dev/rdsk/c0t6d0
8) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t6d0
9) lvlnboot -R
10) vgsync /dev/vg00 --- this could take a few tens on minutes
11) Do lvdisplays to make certain that all extents are current.
You can now repeat the process to replace the other drive.
1) Do a series of lvdisplay -v commands for each lvol on the physical disk and make sure that all the extents on the remaining "good" drive are current. (I actually have a script for this --- checkextents.sh -- you'll do this manually or write a small script)
2) "Yank" the new drive out. Pull it out just 2 cm or so and leave it resting in the slot. This lets the drive spin down gradually w/o damage.
3) Wait 120 seconds or so and then run checkextents.sh agian making sure that the remaining drive has all "current" extents.
4) Now insert the drive fully. Allow it to spin up. Think happy thoughts.
Let's assume the replacement drive is c0t6d0:
5) vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0
6) vgchange -a y /dev/vg00
7) mkboot /dev/rdsk/c0t6d0
8) mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t6d0
9) lvlnboot -R
10) vgsync /dev/vg00 --- this could take a few tens on minutes
11) Do lvdisplays to make certain that all extents are current.
You can now repeat the process to replace the other drive.
If it ain't broke, I can fix that.
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP