- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- configure out a bad disk in a volume group
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
11-21-2000 11:33 PM
11-21-2000 11:33 PM
configure out a bad disk in a volume group
I have the next errormessage:
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c2t15d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
I now that this disk has a defect. I am now searching for a way to configure out this disk from the volumegroup. i have tried a reducevg, but get then the same errormessage. On the disk lays one logical volume.
Please help me
Cees Wielink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2000 11:53 PM
11-21-2000 11:53 PM
Re: configure out a bad disk in a volume group
Your course of action should depend on whether or not you intend to replace the disk. If so then you do the following:-
1. replace the defective disk
2. vgcfgrestore -n
3. Make a new filesystem on your single volume and recover it from a backup.
If you simply want to remove the volume and disk then:-
1. remove the failed disk.
2. lvremove -A n -f /dev/vg??/lvol?
3. vgreduce -A n -f
4. vgcfgbackup
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2000 02:20 PM
11-22-2000 02:20 PM
Re: configure out a bad disk in a volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 05:50 AM
11-27-2000 05:50 AM
Re: configure out a bad disk in a volume group
because of lots of reasons but most important,
if you have load balanced your traffic along
all available paths the vgscan will recreate
the lvmtab differently, resulting in
perf degredation. Your main access paths
will be based on numeric ordering of the disk
device files.
So, try a
vgreduce -f vgname
according to the man pages it should fix your
problem...
only do that if the standard way
vgreduce /dev/vgname /dev/dsk/cXtYdZ
doesn't work!
Also, as a last resort, vgexport the vg
reimport it,
ls /dev/*/group
chose unique maj number
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x0Z0000
vgimport /dev/vgname /dev/dsk/cXtYdZ ....
Now, that won't work if the kernel is out of
sync with the data on the disk, you may have
to boot in lvm maintanence mode, hpux -lq
or use the vgcfgrestore to rewrite a correct
header on the lvm disk.
I'm thinking that sometimes this problem is
caused by vgscan.. ie
do a dd from an lvm disk to another free disk
vgscan will report the two belonging to the
vg, with PV's VGRA not matching static files.
Good luck.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 05:52 AM
11-27-2000 05:52 AM
Re: configure out a bad disk in a volume group
a pvmove to move a lv from one PV to another.
assuming the pv was okay... but
Sorry, never read the full question.
Hope you got a good backup.....
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2000 01:18 PM
11-27-2000 01:18 PM
Re: configure out a bad disk in a volume group
vgchange -a n /dev/vg???
vgcfgrestore -n /dev/vg??? /dev/rdsk/c?t?d?
vgchange -a y /dev/vg???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2000 10:55 AM
12-05-2000 10:55 AM
Re: configure out a bad disk in a volume group
The first is that you don't want to put a new disk in the same slot until you have fully remove the one that has failed.
Secondly, you have to make sure that broken disk has been removed from any lvols. Since it isn't working propperly, the normal lvreduce commands will not work. Instead you can use 'lvdisplay -v -k /dev/whatever/lvol1' to determine the PV number of the broken drive. Then 'lvreduce [-m 0] -k /dev/vgwhatever/lvol1' and depending on the OS version and patch level, the PV number goes after the -k option or at the end of the command.
Then you can try the vgreduce -f. If the vgreduce fails, pull the broken drive, remove lvmtab, and vgscan then try again (it should work). After the vgreduce -f you have to rebuild lvmtab again and then you can put in a new disk, pvcreate it and you are good to go.
Be aware that all of these tools and command options (lvreduce -k and vgreduce -f) are subject to frequent change based on patches and their functionality will vary.
The prior answer that this will mess up any intentional load balancing is true, however I do not know of a way to work around that for a truely broken disk.