- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- BAD JAMAICA 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
Forums
Discussions
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
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
11-19-2002 12:06 PM
11-19-2002 12:06 PM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 12:13 PM
11-19-2002 12:13 PM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 12:13 PM
11-19-2002 12:13 PM
Re: BAD JAMAICA DISK
If it's failed you will not be able to do either reduce command. You'll just get errors
You'll just have to physically replace the disk & then pvcreate -f it & add it back to the VG w/vgextend & then sync it with vgsync.
Of course if this is the boot/root disk there are other steps as well.
If/when the lvdisplay shows all extents current on all LVs then you could vgreduce out the other & vgextend it back in, but I think that's really not needed. Both disks are treated as peers & it doesn't make any difference which is *primary*...unless you're talkin root/boot again. In that case you can use
setboot -p hw_path OR
setboot -a hw_path
to define primary & alternate boot disks.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 12:20 PM
11-19-2002 12:20 PM
Re: BAD JAMAICA DISK
If it isn't a boot disk, you can just replace the bad disk, do a vgcfgrestore to it, and then a vgsync/vgchange -a y on your volume group to get it resyncing to the new disk. You shouldn't have to mess around with vgreduce/vgextend.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 12:50 PM
11-19-2002 12:50 PM
Re: BAD JAMAICA DISK
Be VERY careful if you want to proceed with the 'pull disk, vgcfgrestore' option. Only do this if ALL extents in all LV's on the disk are marked as 'stale'.
If they are not then when you do the vgsync, only stale pe's will be resynced, the system assumes that those marked 'current' are correct but they're not, corruption ensues when data is subsequently read from the replaced disk.
The vgcfgrestore is fine if you've done a reboot (required in the days before hot pull disks because you'd have had to switch off to replace the disk) because all the pe's on the failed disk would have been marked stale when the VG was activated.
The easiest way to mark all pe's stale is to deactivate and reactivate the VG but if it's a production box then it's unlikely that you can do it.
The alternative that I use is to lvreduce -A n
This will mean that the new c2t5d0 will be the secondary but that shouldn't matter as they are equal as far as LVM is concerned. If you REALLY want c2t5 to be the primary then having sync'd all volumes, lvreduce them from c3t5 then lvextend them onto c3t5. That's twice the amount of syncing though.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 01:07 PM
11-19-2002 01:07 PM
Re: BAD JAMAICA DISK
all you need to do is to 1.identify the disk physically.
2. replace the new disk.
3. vgcfgrestore -n /dev/vgxx/dev/rdsk/cxtydz ( new disk path)
4. vgsync /dev/vgxx
this will restore the mirror back and also the primary path.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2002 04:09 PM
11-19-2002 04:09 PM
Re: BAD JAMAICA DISK
( http://support1.itrc.hp.com/service/cki/search.do?category=c0&mode=text&searchString=KBRC00009115&searchCrit=allwords&docType=EngineerNotes )
it covers several scenarios for replacing bad mirrored disks. Interestingly enough, it indicates that trying to hot-swap without addtional steps "could" lead to corrupt data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 05:28 AM
11-20-2002 05:28 AM
Re: BAD JAMAICA DISK
this is just a data disk, not root. I have done this a few times before. Im not a firm believer in the hot swap theory with jamaica drives. It burned me twice. Mail was down for 30 hours during a restore process after corruption. Thanks for the responses, good to hear different opinions. Im still not sure what I am going to do. probably shut mail down.
break the mirror, replace and resync.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 06:57 AM
11-21-2002 06:57 AM
Re: BAD JAMAICA DISK
Shutting down all openmail services using the disks,
vhchange
vgcfgrestore
vgchange
and the a lvsync instead of a vgsync. Since the lv was one 9gb physical disk.
All was ok, thanks everyone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 07:15 AM
11-21-2002 07:15 AM
Re: BAD JAMAICA DISK
I routinely replace several disk drives per month and have never had a data corruptionm problem. The only time that there is a potential for corruption is when you have stale extents on more than one drive. That very seldom happens. Unless a drive is completely dead, you should do an lvdisplay to see that all of the extents are current on the remaining 'good' drive before proceeding.