1833926 Members
3112 Online
110063 Solutions
New Discussion

lvcreate problem

 
Sudhir_8
Contributor

lvcreate problem

Hi,
We have created logical volumes without stripe option. But now we want to stripe that lv on 8 PV's (-i option in lvcreate). Can I change it online because it's a production lv.
5 REPLIES 5
RAC_1
Honored Contributor

Re: lvcreate problem

You can not do that online. You will have to take the backup, destoy the LV and then re-create it with -i and -I options and restore the data.

Anil
There is no substitute to HARDWORK
HGN
Honored Contributor

Re: lvcreate problem

Hi

This can be changed online in the sense there need to be an outage to remove and recreate the logical volume( a backup is required for this).

Rgds

Gopi
Prashant Zanwar_4
Respected Contributor

Re: lvcreate problem

You have to wipe off your existing LV and then re-create the new one using desired policy option. You cannot do it online policy change.
Hope it helps
Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Sunil Sharma_1
Honored Contributor

Re: lvcreate problem

This is the situation where Veritas volume manager has upper hand.

In LVM you can not do this online but in VEritas volume manager you can do it online.

In your case take backup recreate volume with new defination and restore data.

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Geoff Wild
Honored Contributor

Re: lvcreate problem

No - you can not change it online....

You will have to either, back it up, blow it away, recreate it, then restore...

Or create a new vg and lvol, then copy the data from old non stripe lvol to new striped lvol...


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.