- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing a non-mirrored disk that is a part of a ...
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
10-11-2002 07:17 AM
10-11-2002 07:17 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 07:34 AM
10-11-2002 07:34 AM
SolutionI assume that multiple filesystems are affected. You can do an pvdisplay -v /dev/dsk/cXtYd0 to determine which lvols are contained on the disk in question. You will only need to restore data to those LVOL's displayed by this command; the others should be ok.
Here are your steps:
0) Shutdown database and Backup.
1) Shutdown and replace the disk.
2) Boot (and expect problems with vg01).
3) vgcfgrestore -n /dev/vg01 /dev/rdsk/cXtYd0
4) vgchange -a y /dev/vg01
5) Make filesystem(s) for the LVOL's affected. e.g. newfs -F vxfs /dev/vg01/rlvol2
6) mount the filesystem(s)
7) restore the data
Man vgcfgrestore, vgchange, pvdisplay, newfs for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 07:34 AM
10-11-2002 07:34 AM
Re: Replacing a non-mirrored disk that is a part of a stripe
Once you have a clean backup, you will need to shutdown the database and anything else running on that volume group.
I am not sure on the K platform, but to be safe... note the logical volume layout on that disk somewhere so you can rebuild it the same way. lvremove the logical volumes, vgremove the volume group, shutdown the server, replace the disk, reboot. When machine is backup, rebuild the volume group, then rebuild the logical volumes using your notes.
You may also be able to use vgchange and vgcfgrestore to swap the disk and rebuild the logical volume information without doing the first bit... it is just a recommendation on a way to do it safe and clean... even if it takes a bit longer.
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 07:35 AM
10-11-2002 07:35 AM
Re: Replacing a non-mirrored disk that is a part of a stripe
in use (as opposed to one that has failed), stop the volume group I/O with
`vgchange -n'.
Before the disk fails:
1. Backup the data with fbackup, or something similar.
2. Backup the volume group configuration with vgcfgbackup, if you usually
disable the auto-backup with the `-A n' option and argument.
After the disk fails:
3. Replace the disk.
4. Use vgcfgrestore to restore volume group information to the disk.
5. Activate the volume group with vgchange
6. Execute newfs on all affected file system logical volumes.
7. Execute mount for all affected file system logical volumes.
8. Restore all data to the file system logical volumes from backup.
Please note: if a raw partition used by an application is affected,
please contact your application support provider after step 5 to determine
how to recover the data.
To see if you have failures run the following command:
pvdisplay -v /dev/dsk/c?t?d? | grep -i stale.
If you have stale extents your disk is in the process of failing.
Good Luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 08:47 AM
10-11-2002 08:47 AM
Re: Replacing a non-mirrored disk that is a part of a stripe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2002 08:52 AM
10-11-2002 08:52 AM