- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to remove a mirror copy forcefully???
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
03-14-2003 08:42 AM
03-14-2003 08:42 AM
How to remove a mirror copy forcefully???
lvdisplay shows like this:
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8192
Current LE 1024
Allocated PE 1024
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c8t8d0 1024 1024
/dev/dsk/c8t10d0 1024 1024
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c8t10d0 00000 current /dev/dsk/c8t8d0 00000 current
00001 /dev/dsk/c8t10d0 00001 current /dev/dsk/c8t8d0 00000 current
00002 /dev/dsk/c8t10d0 00002 current /dev/dsk/c8t8d0 00000 current
00003 /dev/dsk/c8t10d0 00003 current /dev/dsk/c8t8d0 00000 current
00004 /dev/dsk/c8t10d0 00004 current /dev/dsk/c8t8d0 00000 current
.
.
.
Now when I am trying to reduce the mirror copy by giving lvreduce -m 0
it is saying that
There are unallocated Physical Extents in mirrored logical volume.
Thanks in advance for trouble shooting.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 08:45 AM
03-14-2003 08:45 AM
Re: How to remove a mirror copy forcefully???
Have you tried the -k option of lvreduce?
-k This option should be used only in the
special instance when you want to reduce a
mirrored logical volume on a physical volume
that is missing or has failed.
Use this option with the -m option.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 08:46 AM
03-14-2003 08:46 AM
Re: How to remove a mirror copy forcefully???
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 08:53 AM
03-14-2003 08:53 AM
Re: How to remove a mirror copy forcefully???
in the case of so called "unallocated extends" you must leave away the PV argument from lvreduce command line. The command will fetch automatically the right PV in this case.
Best regards...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 09:05 AM
03-14-2003 09:05 AM
Re: How to remove a mirror copy forcefully???
Have you try this ...
# lvdisplay -v -k /dev/vg0X/lvolX
==> take note of the disk key value (either 0 or 1) then ..
# lvreduce -m 0 -k /dev/vg0X/lvolX
If that does not work I would try to backup all the data which resides in any lvol that span c8t8d0. After that lvreduce it again with the key option. Then vgreduce -f that disk and get the disk replaced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 11:56 AM
03-14-2003 11:56 AM
Re: How to remove a mirror copy forcefully???
Sorry for the delay in response.
But with -k option also it is giving the same problem.
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 01:39 PM
03-14-2003 01:39 PM
Re: How to remove a mirror copy forcefully???
# vgdisplay -v vgXX
# lvdisplay -v -k /dev/vgXX/lvolX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2003 10:56 AM
03-15-2003 10:56 AM
Re: How to remove a mirror copy forcefully???
just to repeat my suggesttion above, the complete error message you get from lvreduce is:
"There are unallocated Physical Extents in mirrored logical volume.
Do not specify device file name in order to remove mirror copy."
The "do not" is a MUST.
Just my 2 cents...
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2003 11:30 AM
03-15-2003 11:30 AM
Re: How to remove a mirror copy forcefully???
lvdisplay -v -d /dev/vg#/lvol#
LE PV1 PE1 Status 1
0000 1 0198 stale
0001 1 0199 stale
0002 1 0200 stale
For the above example the PV1 column and the number "...1..." is the PV number.
lvreduce -m 0 -k /dev/vg#/lvol# 1
If this doesn't work then try forcing the bad disk off of the vg:
vgreduce -f /dev/vg#
You may have to acitivate this w/out quorum:
vgchange -a y -q n /dev/vg#
vgreduce -f /dev/vg#