HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- can't remove a disk
Operating System - HP-UX
1833776
Members
2464
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
04-22-2004 06:43 PM
04-22-2004 06:43 PM
Good morning
I don't why, but it's happen now.
I can't remove a mirrored HDD. ... If you make a look to 'lvdisplay -v /dev/vg00/lvol1' is the output like this:
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
...
Mirror copies 1
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t2d0 126 126
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t2d0 00000 current ??? 00000 stale
00001 /dev/dsk/c2t2d0 00001 current ??? 00001 stale
...
If you have a look to 'vgdisplay -v vg00 | grep Name' is the output like this:
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
VG Name /dev/vg00
LV Name /dev/vg00/lvol1
LV Name /dev/vg00/lvol2
LV Name /dev/vg00/lvol3
...
LV Name /dev/vg00/lvol9
LV Name /dev/vg00/lvol10
PV Name /dev/dsk/c2t2d0
hostname,sys,root #
And last but not least: 'strings /etc/lvmtab':
Output:
/dev/vg00
/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
I will remove the mirroring and the disk, what can I do.
The error messages are the following:
command:
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c1t2d0
output:
lvreduce: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c1t2d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol1" is not reduced.
or
command:
vgreduce vg00 /dev/dsk/c1t2d0
output:
vgreduce: Couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
If you do the ioscan, the disk is available.
Know anybody a solution for activate the mirroring again or for 'delete' the c1t2d0?
Thanks
I don't why, but it's happen now.
I can't remove a mirrored HDD. ... If you make a look to 'lvdisplay -v /dev/vg00/lvol1' is the output like this:
--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
...
Mirror copies 1
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t2d0 126 126
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t2d0 00000 current ??? 00000 stale
00001 /dev/dsk/c2t2d0 00001 current ??? 00001 stale
...
If you have a look to 'vgdisplay -v vg00 | grep Name' is the output like this:
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
VG Name /dev/vg00
LV Name /dev/vg00/lvol1
LV Name /dev/vg00/lvol2
LV Name /dev/vg00/lvol3
...
LV Name /dev/vg00/lvol9
LV Name /dev/vg00/lvol10
PV Name /dev/dsk/c2t2d0
hostname,sys,root #
And last but not least: 'strings /etc/lvmtab':
Output:
/dev/vg00
/dev/dsk/c2t2d0
/dev/dsk/c1t2d0
I will remove the mirroring and the disk, what can I do.
The error messages are the following:
command:
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c1t2d0
output:
lvreduce: Warning: couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c1t2d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol1" is not reduced.
or
command:
vgreduce vg00 /dev/dsk/c1t2d0
output:
vgreduce: Couldn't query physical volume "/dev/dsk/c1t2d0":
The specified path does not correspond to physical volume attached to
this volume group
If you do the ioscan, the disk is available.
Know anybody a solution for activate the mirroring again or for 'delete' the c1t2d0?
Thanks
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 06:53 PM
04-22-2004 06:53 PM
Re: can't remove a disk
OK. It gives error as it the disk has lost all info abt LVM.
After all why do u have to reduce the mirror ?. Why not replace the disk with a new one and vgcfgrestore onto it .
Once done a "vgsync" will remirror the stuff !
Regds,
Kaps
After all why do u have to reduce the mirror ?. Why not replace the disk with a new one and vgcfgrestore onto it .
Once done a "vgsync" will remirror the stuff !
Regds,
Kaps
Nothing is impossible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2004 06:54 PM
04-22-2004 06:54 PM
Solution
Hi,
You need to use -k option with lvreduce to remove a disk from the lv which is failed.
Then u can use vgreduce as usual to remove from VG.
#lvreduce -m 0 -k /dev/vg00/lvol1 /dev/dsk/c1t2d0
Check whether the disk is available and usable by using
#diskinfo /dev/rdsk/c1t2d0
If you get the proper size of the disk . Then you try with
#vgsync
Still failing u put a new disk and do.
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
#vgsync
It should solve your problem.
HTH
You need to use -k option with lvreduce to remove a disk from the lv which is failed.
Then u can use vgreduce as usual to remove from VG.
#lvreduce -m 0 -k /dev/vg00/lvol1 /dev/dsk/c1t2d0
Check whether the disk is available and usable by using
#diskinfo /dev/rdsk/c1t2d0
If you get the proper size of the disk . Then you try with
#vgsync
Still failing u put a new disk and do.
#vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t2d0
#vgsync
It should solve your problem.
HTH
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP