- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirrod disk 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
Discussions
Discussions
Forums
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
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
тАО09-18-2006 07:50 AM
тАО09-18-2006 07:50 AM
Mirrod disk replacement
I have a Volume group with 2 disks.
And all the logical volume span accross one disk c1t3d0 and they are mirrored to the second disk c1t4d0.
The first disk has failed and had to be replaced. After replacement i am trying to doa vgcfgrestore and is not going through.
My question is
1.Do i need to do a vgreduce and extend it again?
2. what will happen to the mirrorev lv on the disk 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2006 07:58 AM
тАО09-18-2006 07:58 AM
Re: Mirrod disk replacement
Do this way.
ioscan -fn
insf -e
run ioscan -fnCdisk and make sure that you see new disk with same device name as CLAIMED.
vgcfgrestore -n vgname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2006 08:07 AM
тАО09-18-2006 08:07 AM
Re: Mirrod disk replacement
# vgcfgrestore -R -n /dev/vg_das /dev/rdsk/c1t4d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c1t4d0":
The specified path does not correspond to physical volume attached to
this volume group
disk 21 0/4/1/0.8.0.255.0.8.0 sdisk CLAIMED DEVICE HP 36.4GST336753FC
/dev/dsk/c1t4d0 /dev/rdsk/c1t4d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2006 08:23 AM
тАО09-18-2006 08:23 AM
Re: Mirrod disk replacement
pvcreate -f /dev/rdsk/c1t4f0
and then run vgcfgrestore command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2006 02:48 PM
тАО09-18-2006 02:48 PM
Re: Mirrod disk replacement
For 11.11: Patches PHKL_31216 and PHCO_30698 (or superseding patches)
o For 11.23: Patches PHKL_32095 and PHCO_31709 (or superseding patches)
If you have above mentioned patches then I would suggest you to do the following:
pvchange -a n
vgcfgrestore -n
pvchange -a y
vgsync
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2006 01:54 PM
тАО09-19-2006 01:54 PM
Re: Mirrod disk replacement
1) Find the faulty disk.
2) Shutdown the system and replace disk
3) Boot in single user mode
ISL>hpux -is
4) Initialize the new disk for LVM
# pvcreate -f /dev/rdsk/cxtxd0
(this will force the intialization in case the disk in not brand new)
5) Restore vg on the replaced disk
# vgcfgrestore -n /dev/vgxx /dev/rdsk/cxtxd0
6) Activate the vg involved in the disk replacement (will also do the mirror
and sync it.)
# vgchange -a y /dev/vgxx
7) Once all mirroring is finished and as always after those type of changes
do a:
# shutdown -r now
The following is assuming that you do NOT have a vgcfgbackup
1) Before disk replacement.(disk is already located)
Reduce all the lvols in the vg on that disk
# lvreduce -m 0 /dev/vgxx/lvolx /dev/dsk/cxtxd0
2) Remove the disk form the vg
# vgreduce /dev/vgxx /dev/dsk/cxtxd0 (c1t3d0)
3) Shutdown and replace disk
4) Boot in single user mode
ISL>hpux -is
5) Initialize the new disk for LVM
# pvcreate -f /dev/rdsk/cxtxd0
(this will force the intialization in case the disk in not brand new)
6)Extend the the vgconcerned to the new disk
# vgextend /dev/dsk/vgxx /dev/dsk/cxtxd0
7) Recreate the mirrored lvols on that vg
# lvextend -m 1 /dev/vgxx/lvolx /dev/dsk/cxtxd0
.all of them.........................................
# lvextend -m 1 /dev/vgxx/lvoly /dev/dsk/cxtxd0
8) Now do a backup of vg
# vgcfgbackup /dev/vgxx
9) Reboot
#shutdown -r 0
Cheers
flg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 12:41 AM
тАО09-20-2006 12:41 AM
Re: Mirrod disk replacement
I hope you trying to do this on a right disk..
Check /etc/lvmconf/ for lvmconfiguration directory for backup files for that VG with the latest timestamp ..if not available you may have to create the VG again.
Best Regards,
Prashanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-20-2006 12:41 AM
тАО09-20-2006 12:41 AM
Re: Mirrod disk replacement
I hope you trying to do this on a right disk..
Check /etc/lvmconf/ directory for backup files for that VG with the latest timestamp ..if not available you may have to create the VG again.
Best Regards,
Prashanth