Operating System - HP-UX
1752796 Members
6025 Online
108789 Solutions
New Discussion юеВ

Re: lvextend -m 1 from 2 disks to 2 disks

 
SOLVED
Go to solution
Jeremy Alger
New Member

lvextend -m 1 from 2 disks to 2 disks

I keep getting an error message saying I have stale data. Here is my process that i'm going through, maybe i'm doing something incorrectly:

starting with datavg which includes disks c4t0d0 and c4t2d0. datalv is a logical volume using both disks. I then want to add 2 more disks for mirroring.

pvcreate -f /dev/rdsk/c7t0d0
pvcreate -f /dev/rdsk/c7t2d0
vgextend datavg /dev/dsk/c7t0d0 /dev/dsk/c7t2d0
lvextend -m 1 /dev/datavg/datalv /dev/dsk/c7t0d0 /dev/dsk/c7t2d0

it takes awhile to run then i'm getting the error:
lvextend: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
lvextend: Couldn't resynchronize logical volume "/dev/datavg/datalv"

any hints on what might be happening? I'm on HP-UX 11i

Thank you - Jeremy

6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: lvextend -m 1 from 2 disks to 2 disks

Shalom,

mirror/ux as I last recall sets the maximum number of mirrors as 2.

There for you can't take an already mirrored logical volume and mirror it to another mirror set directly.

You can lvextend -m 2, designate the new mirror disk, then break the mirror and mirror the newly independent set, accomplishing your goal in three steps not one.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeremy Alger
New Member

Re: lvextend -m 1 from 2 disks to 2 disks

Maybe I missed something or i'm incorrect (new to hp-ux). The first logical volume isn't mirrored but its data spans the original 2 disks in the volume group. I am trying to get the lvm to mirror to the newly added 2 disks.

Thank you for your prompt response! - Jeremy
Nido
Trusted Contributor

Re: lvextend -m 1 from 2 disks to 2 disks

Hello Jeremy,

>>>>lvextend: Couldn't re-synchronize stale partitions of the logical volume:
I/O error
>>>>lvextend: Couldn't resynchronize logical volume "/dev/datavg/datalv"

Do you have Stale on lvol datalv??

Post the output of the command:
/usr/sbin/lvdisplay -v /dev/datavg/datalv| grep -i -e "lv name" -e "lv status" -e stale -e '?'



Good Luck!!
" Let Villagers Be Happy!! "
sujit kumar singh
Honored Contributor

Re: lvextend -m 1 from 2 disks to 2 disks

hi Jeremy,


can you please attach the screen capture in putty the O/Ps of the following commands?

#vgdisplay -v datavg
#lvdisplay -v for all the LVs in the VG /dev/datavg

perhaps need to check something with the allocation policies of the LVs and the distribution of the LV Extents on the PVs.

regards
sujit
Ganesan R
Honored Contributor
Solution

Re: lvextend -m 1 from 2 disks to 2 disks

Hi Jeremy,

It looks your primary copy of datalv has i/o errors somewhere. Just check the consistency of the datalv before try to mirror.

# dd if=/dev/datavg/rdatalv of=/dev/null bs=1024k

It should return without any errors. If found errors, the only way is recreate the lv and restore the data from backup. After that only you can mirror it.
Best wishes,

Ganesh.
Jeremy Alger
New Member

Re: lvextend -m 1 from 2 disks to 2 disks

First of all, thank you all for the prompt replies.

After looking at everything and running the dd it appears that I had a bad drive. Drive replaced and mirror is intact.

Thank you all again - Jeremy