- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace HD in array - Preliminary steps ?
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
07-24-2006 04:03 AM
07-24-2006 04:03 AM
Should I do a fresh vgbackup or anything like that? Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 04:10 AM
07-24-2006 04:10 AM
Re: Replace HD in array - Preliminary steps ?
You don't provide any details -- LVM patches present, OS version, boot disk or not, so I'll point you to an excellent document:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
You should already have a valid LVM configuration backup in '/etc/lvmconf' from your last LVM operation.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 04:18 AM
07-24-2006 04:18 AM
Re: Replace HD in array - Preliminary steps ?
yes, I'm using LVM
HPUX 11i
vg03 is the vg that contains the bad disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 04:40 AM
07-24-2006 04:40 AM
Re: Replace HD in array - Preliminary steps ?
1) vgcfgbackup vgXX
2) vgexport -v -p -m vgXX.mapfile -f vgXX.discfile
IT'S IMPERATIVE THAT THE VGEXPORT USE THE -p FLAG - it means don't actually do anything nasty
Now remove the PV from LVM:
1) you should pvmove all LVs onto a new disc (You've already lvexended them, so just lvreduce -m 0 /dev/vgXX/LVNAME /dev/dsk/DUFF_DISC)
2) now that the disc is empty (pvdisplay /dev/dsk/DUFF_DISC should show "Allocated PE as being zero"
3) now vgreduce vgXX /dev/dsk/DUFF_DISC
Now take out the bad PV and put in a good one
1) pvcreate /dev/rdsk/NEW_DISC
2) vgextend /dev/vgXX /dev/dsk/NEW_DISC
3) for I in /dev/vgXX/lvol?
do
lvexend -m 1 $I /dev/dsk/NEW_DISC
done
OR you can just pull it out, put the new one in and lvsync each LV and HOPE ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 04:46 AM
07-24-2006 04:46 AM
Re: Replace HD in array - Preliminary steps ?
http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=LVMKBRC00006111
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 05:42 AM
07-24-2006 05:42 AM
Re: Replace HD in array - Preliminary steps ?
I just have one question and you all may laugh at me, but what good is a hot swappable disk if I have to have users log off the system that use that vg? Is 'hot swappable' only good for hardware mirroring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 06:13 AM
07-24-2006 06:13 AM
Re: Replace HD in array - Preliminary steps ?
Hot swapping is an incredible benefit, since you can do so many things while you are online. The only difference between hardware mirror and software mirror in this instance, is that you have to play with commands a little to get the rudundancy up and going.
With hardware mirror you also gain performance.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 06:21 AM
07-24-2006 06:21 AM
Re: Replace HD in array - Preliminary steps ?
"Replacing a bad mirrored disk by hot-swapping in a new disk can be a risky task, if the volume group is active and cannot be deactivated. If the disk is still attached to the volume group, the respective mirror copies of the affected logical volumes have to be reduced. "
I read the first line and then responded to the forum. As long as I break the mirror, I should be able to do all of this with the users online. Not a problem. I'll report back once I am done. Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2006 12:39 PM
07-24-2006 12:39 PM
Re: Replace HD in array - Preliminary steps ?
As you might have guessed from the thread, the difference between hot-swap and hot-plug is that hot-plug means simply that nothing will be fried electrically if you remove/replace the disc. There are still manual steps required before/after the replacement.
Hot-swap means it is all automagic - remove old disc, insert new disc. Happiness and joy, no explicit commands required.
In general, "enclosures" mean hot-plug and actual array controllers mean hot-swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2006 04:47 AM
07-25-2006 04:47 AM
Re: Replace HD in array - Preliminary steps ?
server1 # lvreduce -m 0 -A n /dev/vg03/lvol28 /dev/dsk/c4t10d0
Physical extents on remaining physical volumes are stale or
Remaining physical volumes are not responding.
lvreduce: The LVM device driver failed to reduce mirrors on
the logical volume "/dev/vg03/lvol28".
lvdisplay shows the following
00461 /dev/dsk/c4t10d0 03260 current /dev/dsk/c4t9d0 02327 current
00462 /dev/dsk/c4t10d0 03261 current /dev/dsk/c4t9d0 02328 stale
00463 /dev/dsk/c4t10d0 03262 current /dev/dsk/c4t9d0 02329 current
Prior to me mirroring these to begin with a week ago, I knew c4t10d0 was the bad disk, since it was not mirrored at the time and we rec'd error's anytime we tried to read or write from a specific file system on the drive, I even deleted the lvol prior and recreated it and the same happened.
Now the error above looks as though c4t9d0 is the bad disk, or is it just because c4t9d0 can not read from c4t10d0 bad sectors, so it shows stale. If I have a stale lv on the disk that supposedly is good, how can I break that mirror?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 04:03 AM
08-03-2006 04:03 AM
Re: Replace HD in array - Preliminary steps ?
Here were the steps:
mv lvmtab.XXX
vgscan
rm lvmtab
vgscan
vgcfgrestore -n /dev/vg03 /dev/rdsk/c4t9d0
vgchange -a y /dev/vg03
Bounced to single user mode
vgchange -a y /dev/vg03 which sync'd everything up (a little over 1 hour)
vg03 online and seeing all disks and mirrors properly