- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Faulty Harddisk Replacement
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-10-2004 11:18 PM
10-10-2004 11:18 PM
Currently I have a faulty disk inside a volume group vgA (comprising of 3 harddisks).
All the 3 harddisks are configured with logical volumes for raw partitions and is used by the database informix.
The database team will perform data restoration when the faulty harddisk is being replaced.
Query:
- I would like the LV settings to remain the same after the faulty harddisk is being replaced. Can anyone advise on what needs to be done prior the replacement in order to ensure all LV settings are saved and can be restored onto the replaced harddisk.
Thanks n Regards/cliff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:21 PM
10-10-2004 11:21 PM
Re: Faulty Harddisk Replacement
use vgcfgrestore command to restore LVM structure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:25 PM
10-10-2004 11:25 PM
Re: Faulty Harddisk Replacement
Insert the new disk in the same slot of the faulty disk.
#pvcreate -f /dev/rdsk/
If any lvol's exist in the faulty disk, create the same lvol(s) in the new inserted disk. and restore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:28 PM
10-10-2004 11:28 PM
Re: Faulty Harddisk Replacement
You can't do anything before changing the disk. The only thing you have to do is to restore the LVM configuration on the new disk.
# vgcfgrestore -n /dev/vgXX /dev/rdsk/cxtydz
and restore the data to the raw partitions.
Best regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:32 PM
10-10-2004 11:32 PM
Re: Faulty Harddisk Replacement
1. connect new hard disk in same slot
2. run ioscan and see it should be in claimed status
3. run vgcfgrestore command on this disk
#vgcfgrestore -n vgA /dev/dsk/cxtydz
4. vgchange vgA(not must but should be)
you are ready to data restoration.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2004 11:55 PM
10-10-2004 11:55 PM
Re: Faulty Harddisk Replacement
run vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtXdX after replacing the HD
The settings are stored by default in /etc/lvmconf/vgXX.conf
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 01:42 PM
10-11-2004 01:42 PM
Re: Faulty Harddisk Replacement
I will be using the suggested command, vgcfgrestore -n vgA /dev/dsk/cxtydz
Query: The faulty harddisk currently has Logical Volume spanned across to another harddisk. It also have Logical Volume from another harddisk spanned over to it. Since the 3 harddisks belong to the same volume group vgA. Is it a concern when running the vgcfgrestore command?
Thanks n regards/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 01:54 PM
10-11-2004 01:54 PM
Re: Faulty Harddisk Replacement
It is not a concern for running 'vgcfgrestore' command. But note that you probably don't get the data on the logical volumes that share this faulty disk. You can try the following.
1. vgcfgrestore -n vgxx /dev/rdsk/cxtydz
2. vgchange -a y vgxx
3. fsck /dev/vgxx/rlvolx (repeat for all lvols)
3. Try mounting them. If you see data, then you can try copy it but I doubt it.
If you are not able to mount them, then run 'newfs -F vxfs /dev/vg00/rlvolx' to create fresh filesystems and restore the data.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2004 02:35 PM
10-11-2004 02:35 PM
Re: Faulty Harddisk Replacement
The logical volumes on all the 3 harddisks in vgA are configured as raw partitions for informix database. The db data restoration will be performed after the faulty harddisk is being replaced.
Just want to ensure that the logical volumes configuration configured on the faulty harddisk will be restored using vgcfgrestore command. Regardless of whether LV are spanned onto the faulty harddisk from other harddisk or LV on faulty harddisk are spanned onto other harddisk. (vgA comprises 3 harddisks).
Am I right to say that?
regards/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2004 02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2004 02:36 PM
10-12-2004 02:36 PM