- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replacing bad mirror disk - pvcreate -f error
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-13-2000 05:35 AM
тАО09-13-2000 05:35 AM
I ran into a problem replacing a bad mirror disk and would appreciate some insights.
System:
9000/898/K370
Number of CPUs: 1
CPU Speed: 200 MHz
HP-UX B.10.20 E 9000/898
I swapped out the bad physical disk with a new one and issued the pvcreate -f command to initialize the disk.
I got the message:
pvcreate: The physical volume "/dev/dsk/c0t4d0" is already recorded in the "/etc/lvmtab" file.
So I used lvreduce to remove the disk entries from the 2 logical volumes that were on the bad mirror disk. I had to use the key paramter, but it processed the command OK.
Then I tried to use the vgreduce command to remove the old disk entries from lvmtab.
I get the message:
vgreduce: Couldn't query physical volume "/dev/dsk/c0t4d0":
The specified path does not correspond to physical volume attached to
this volume group
Ok - so I use the vgreduce -f option to force a rescan of the volume group and get the same message:
vgreduce: Couldn't query physical volume "/dev/dsk/c0t4d0":
The specified path does not correspond to physical volume attached to
this volume group
Are there any patch sets that address the failures of pvcreate and vgreduce to remove the missing disk?
The latest LVM patches I show on the system is:
PHCO_15895 B.10.00.00.AA LVM commands cumulative patch
PHKL_14491 B.10.00.00.AA VM,LVM,I/O,JFS,mprotect,SCSI,PM cumulative patch
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 05:41 AM
тАО09-13-2000 05:41 AM
Re: Replacing bad mirror disk - pvcreate -f error
The problem is you replaced the disk without vgreducing it first. No worries, just forget using pvcreate, use vgcfgrestore on it and you should be back in business.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 05:45 AM
тАО09-13-2000 05:45 AM
Re: Replacing bad mirror disk - pvcreate -f error
A more recent set of LVM cumulative patches is PHCO_18563.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 05:46 AM
тАО09-13-2000 05:46 AM
Re: Replacing bad mirror disk - pvcreate -f error
A more recent set of LVM cumulative patches is PHCO_18563.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 06:02 AM
тАО09-13-2000 06:02 AM
SolutionIf I am understanding your issue, your mirror drive went bad and you needed to replace it and resync the data back to the mirror from the primary.....
This is what I normally do...
Take down my system ( single user is up to you..I just take down the apps and vg affected)
1. Replace the bad drive with the new drive.
2. pvcreate -f /dev/rdsk/c_t_d_
3. vgcfgrestore /dev/vol_grp /dev/dsk/c_t_d_
4. vgchange -a y /dev/vol_grp
5. Either run:
vgsync /dev/vol_grp
OR
lvsync /dev/vol_grp/lvol_
Then I usually just bring it all back up....so far this has worked ok for me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 06:07 AM
тАО09-13-2000 06:07 AM
Re: Replacing bad mirror disk - pvcreate -f error
Take a look at the following link, it contains exact steps on replacing a mirror disk or a non-mirror disk or a boot disk.
http://europe-support.external.hp.com/cki/bin/doc.pl/sid=17b41b171db01f8983/screen=ckiDisplayDocument?docId=200000049436442
You dont need to use pvcreate, vgcfgrestore is enough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2000 07:31 AM
тАО09-13-2000 07:31 AM
Re: Replacing bad mirror disk - pvcreate -f error
Here are some commands to help if you are unable to access that doc.
Restore lvm info:
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c?t?d?
Make changes known:
# vgchange -a y /dev/vg00
Resync mirror copy:
# vgsync /dev/vg00
Make it bootable:
# mkboot /dev/rdsk/c?t?d?
# mkboot "hpux -lq" /dev/rdsk/c?t?d?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2000 10:11 AM
тАО09-14-2000 10:11 AM
Re: Replacing bad mirror disk - pvcreate -f error
I was amazed at how quickly I got responses.
I was missing the vgchange command step to make the changes active. All bad drives have since been replaced and all mirrors resynched. Now I can sleep at night again :)