LVM and VxVM
Showing results for 
Search instead for 
Do you mean 

Problem in extending mirror LVOL's

SOLVED
Go to Solution
Frequent Advisor

Problem in extending mirror LVOL's

Hello Experts,

 

I have a problem with the extention of the mirror LVOL, OS - 11.23

 

I have a request to extend mirror LVOL's by additional 20 GB size from the internal disk (disks are having 60GB free space) of server and not storage disks.

 

I have use below syntax to complete the task but unfortunalty its failed.

1 > lvextend -L size LV_NAME DISK1 DISK2

issue - lvextend happened with 10GB of DISK1 - mirrored with 10GB from the same DISK1

                                                                 10GB of DISK2 - mirrored with 10GB from the same DISK2

 

2 > lvextend -L size LV_NAME DISK1 -- for extention

        lvextend -m LV_NAME DISK2 --- for mirror

issue - lvextend happened with 20GB of DISK1 - mirrored with 20GB from the same DISK1

 

Please suggest the best method to complete this task.

 

Thanks & regards,

Chirag Parikh

5 REPLIES
Acclaimed Contributor Acclaimed Contributor

Re: Problem in extending mirror LVOL's

Well, the LVOL *is* already mirrored!

 

So you extend the *mirrored* LVOL once, it will automatically extend the mirror too.

 

 

If you try to lvextend the "original" and then the mirror, you will extend the LVOL *twice*!!!


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor

Re: Problem in extending mirror LVOL's

My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.

Acclaimed Contributor Acclaimed Contributor

Re: Problem in extending mirror LVOL's

>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Frequent Advisor

Re: Problem in extending mirror LVOL's

Expert,

 

You are right, the allocation policy is non-strict here.

 

LV Permission               read/write
LV Status                   available/syncd
Mirror copies               1
Consistency Recovery        NOMWC
Schedule                    parallel
LV Size (Mbytes)            924544
Current LE                  14446
Allocated PE                28892
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  non-strict
IO Timeout (Seconds)        default


Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.

Torsten. wrote:
>> My problem is the mirror is not happening from the DISK2, its taking the space from DISK1 only even though i have mentioned the disk sequence for extend as well mirror.


Then the allocation policy is not strict.


Show us a "lvdisplay -v" please.







 

So what should be my way of working to fix it for future as i am aware that this extention wont be possible to roll-back in 11.23 untill i will re-create the whole VG.

 

Thanks & regards,

Chirag Parikh

Highlighted
Acclaimed Contributor Acclaimed Contributor

Re: Problem in extending mirror LVOL's

unmirror the lvol, set strict policy, mirror again.

See lvchange man page for details.

# lvchange -s y ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!