- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mirroring on a single disk
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
тАО05-29-2009 05:41 AM
тАО05-29-2009 05:41 AM
I have a VG with single PV.But I find for each lE, there are 2 PE are allocated,is that mean mirroring has done on a single disk..?
and if mirroring is done on a single pv.. I want to move that mirror copy to the another disk.. by adding another disk, Please advice..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 05:50 AM
тАО05-29-2009 05:50 AM
SolutionIf in fact someone mirrored a logical volume to the same physical disk, which you can verify from the output of 'lvdisplay -v' (where 'Mirror copies' > 0 too) then 'vgextend' a new physical disk into the volume group; 'lvreduce -m 0' the mirror copy; and 'lvextend -m 1' specifying the new target disk.
Be sure to verify that 'strict' allocation set (the default) for the logical volume before you mirror it. If not, repair this (with 'lvchange') before you re-mirror onto the newly added physical disk.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 05:50 AM
тАО05-29-2009 05:50 AM
Re: mirroring on a single disk
Check your lvdisplay output.In that you can find that mirror is on or not .And how you can say that you are doing mirror on the same disk???? Can you post your lvdisplay and /etc/lvmtab output?????
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 05:53 AM
тАО05-29-2009 05:53 AM
Re: mirroring on a single disk
lvdisplay -v /dev/vg00/lvol1
--- Logical volumes ---
LV Name /dev/vg00/lvol1
.
.
.
Current LE 50
Allocated PE 100
.
.
.--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c0t6d0 00000 current /dev/dsk/c0t5d0 00000 current
If they are on the same physical volume you will need to lvreduce the mirror, then reallocate the mirror properly using another physical volume.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 05:55 AM
тАО05-29-2009 05:55 AM
Re: mirroring on a single disk
Please post your lvdisplay -v
If you want move the mirror folow the below steps..
The following steps are for creating a mirroe copy on different disk(assuming you have mirror copy on the same disk)
first reduce the duplicate mirror copy from the smae disk
#lvreduce -m 0 /dev/vgxx/lvname
#change the lv allocation policy to strict
#lvchange -s y /dev/vgxx/lvname
Create a pv using pvcreate
Extend the vg using vgextend
create a mirror copy on the newly added disk
lvextend -m 1 /dev/vgxx/lvname
Regards
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:03 AM
тАО05-29-2009 06:03 AM
Re: mirroring on a single disk
#strings /etc/lvmtab
/dev/vg00
XDv
/dev/dsk/c2t1d0
/dev/dsk/c3t0d0
/dev/vg02
XD|"
/dev/dsk/c4t0d0
/dev/dsk/c6t0d0
/dev/vg01
/dev/dsk/c4t1d0
/dev/dsk/c6t4d0
for vg02 we can see here tw pv's mentioned..But in vgdisplay -v vg02, it shows single pv with the below error..!
--- Physical volumes ---
PV Name /dev/dsk/c4t0d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t0d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 17363
Free PE 6351
Autoswitch On
to my surprice, if I do pvdisplay of /dev/dsk/c6t0d0 I am getting the same error, But /dev/dsk/c6t0d0 is shown as unused in sam and pv display output..
# pvdisplay /dev/dsk/c6t0d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c6t0d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg02".
pvdisplay: Cannot display physical volume "/dev/dsk/c6t0d0".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:08 AM
тАО05-29-2009 06:08 AM
Re: mirroring on a single disk
--- Logical volumes ---
LV Name /dev/vg02/lvol4
VG Name /dev/vg02
LV Permission read/write
LV Status available/stale
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20000
Current LE 5000
Allocated PE 10000
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/c4t0d0 5000 5000
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c4t0d0 01280 current ??? 01280 stale
00001 /dev/dsk/c4t0d0 01281 current ??? 01281 stale
00002 /dev/dsk/c4t0d0 01282 current ??? 01282 stale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:13 AM
тАО05-29-2009 06:13 AM
Re: mirroring on a single disk
You have a dead disk. See:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:16 AM
тАО05-29-2009 06:16 AM
Re: mirroring on a single disk
It is showing that your one of the disk has failed.Plan to replace it.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-29-2009 06:17 AM
тАО05-29-2009 06:17 AM
Re: mirroring on a single disk
You second disk in the vg seems faulty,
try replacinf the disk
ZRegds
Johnson