Problem in extending mirror LVOL's (206 Views)
Reply
Frequent Advisor
Chirag Parikh
Posts: 51
Registered: ‎11-06-2007
Message 1 of 6 (206 Views)
Accepted Solution

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

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,205
Registered: ‎10-02-2001
Message 2 of 6 (200 Views)

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! star in the left column!   
Please use plain text.
Frequent Advisor
Chirag Parikh
Posts: 51
Registered: ‎11-06-2007
Message 3 of 6 (196 Views)

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.

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,205
Registered: ‎10-02-2001
Message 4 of 6 (187 Views)

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! star in the left column!   
Please use plain text.
Frequent Advisor
Chirag Parikh
Posts: 51
Registered: ‎11-06-2007
Message 5 of 6 (179 Views)

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

Please use plain text.
Acclaimed Contributor
Torsten.
Posts: 23,205
Registered: ‎10-02-2001
Message 6 of 6 (177 Views)

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! star in the left column!   
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation