Skip to contentSkip to conversation

LVM 2

linux-lvm Anders Widman 3 participants 6 messages May 29, 2002 – May 30, 2002

lore
Share & tools
lore
#0 lore raw

How stable is LVM 2, and is it possible to convert a LVM 1 system to LVM 2 without loosing data?

Also, is it possible to convert (with and LVM version) a spanded volume to a striped volume?

//Anders

#1 lore raw
Quoted 2 lines · Anders Widman

How stable is LVM 2

The releases tend to be very stable, cvs obviously is a little less so. The core functionality (ie. simple LVs) hasn't changed for months
- current development is focusing on pvmove and the new metadata format.

The snapshot facility was completed recently (including writeable snapshots). Judging from the bug reports on the list they seem to be more stable than 1.1rc2, as well as being faster (see
http://people.sistina.com/~thornber/snap_performance.html for a pretty graph).

Personally I've had all my data on LVM2 since November without mishap.

Quoted 2 lines

and is it possible to convert a LVM 1 system
to LVM 2 without loosing data?

LVM2 by default uses the same metadata format as LVM1, so there really isn't any conversion procedure. So try LVM2 for a bit, if you don't like it (unlikely) revert to LVM1. Please note that metadata backups and archives are held in a very different form.

Quoted 2 lines

Also, is it possible to convert (with and LVM version) a spanded volume to a striped volume?

Not until we get the new pvmove infrastructure.

If you do try LVM2 please give us feedback on how easy the transition was and what extra documentation you would like to see. Also if you get into trouble the team is normally on irc.openprojects.net #lvm.

- Joe

#2 lore raw

I'll second this. I've had all my data on LVM2 for months w/out problems; I've started moving production machines over to lvm2 w/out mishap (other than redhat's broken init system, but that's not lvm's fault :). I only use basic (linear) volume management; no snapshotting, striping, etc.

Also note that I'm still using beta2 (w/ 2.4.18-ac3).

Quoted 18 lines · Joe Thornber
Quoted 2 lines · Anders Widman

How stable is LVM 2

The releases tend to be very stable, cvs obviously is a little less so. The core functionality (ie. simple LVs) hasn't changed for months
- current development is focusing on pvmove and the new metadata format.

The snapshot facility was completed recently (including writeable snapshots). Judging from the bug reports on the list they seem to be more stable than 1.1rc2, as well as being faster (see
http://people.sistina.com/~thornber/snap_performance.html for a pretty graph).

Personally I've had all my data on LVM2 since November without mishap.

[...]

Quoted 8 lines

- Joe

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Signature · 4 lines
<dilinger> people fear what they don't understand
<zinx> that is not true
<zinx> most people fear what they don't understand, and the rest get killed
	by those people
#3 lore raw
In reply to Joe Thornber
Quoted 9 lines · Anders Widman
Quoted 2 lines

How stable is LVM 2

The releases tend to be very stable, cvs obviously is a little less so. The core functionality (ie. simple LVs) hasn't changed for months
- current development is focusing on pvmove and the new metadata format.

Quoted 5 lines

The snapshot facility was completed recently (including writeable snapshots). Judging from the bug reports on the list they seem to be more stable than 1.1rc2, as well as being faster (see
http://people.sistina.com/~thornber/snap_performance.html for a pretty graph).

What exactly shown in those diagrams? :)

Quoted 9 lines

Personally I've had all my data on LVM2 since November without mishap.

Quoted 2 lines

and is it possible to convert a LVM 1 system
to LVM 2 without loosing data?

LVM2 by default uses the same metadata format as LVM1, so there really isn't any conversion procedure. So try LVM2 for a bit, if you don't like it (unlikely) revert to LVM1. Please note that metadata backups and archives are held in a very different form.

So I can just install LVM2 and continue as usual, and switch back if I get into trouble? And, what if I get into trouble? I can not backup all data. There is not enough space for that.

Quoted 4 lines
Quoted 2 lines

Also, is it possible to convert (with and LVM version) a spanded volume to a striped volume?

Not until we get the new pvmove infrastructure.

So, when newer pvmove tools develops it would be possible to convert
a spanned volume to a sriped (RAID0 or 5?) volume without loosing data?

Right now I have about 10 disks that are spanned with LVM1. I would really want to be able to convert this to a striped volume with redundancy, like RAID 5.

Quoted 3 lines

If you do try LVM2 please give us feedback on how easy the transition was and what extra documentation you would like to see. Also if you get into trouble the team is normally on irc.openprojects.net #lvm.

I will, when I see that the above could work. =)

Quoted 1 line

- Joe

//Anders

#4 lore raw
Quoted 2 lines · Anders Widman
Quoted 1 line · Anders Widman

What exactly shown in those diagrams? :)

It's trying to answer the question 'how does io to a volume slow down if I take a snapshot'. The *overhead* is plotted on the vertical scale, in terms of the time taken to do the operation with no snapshot.

So if I use a chunk size of 16k we see that LVM2 has an overhead of 0.23, ie. the 'dbench 2' operation on a freshly snapshotted origin will take 1.23 times as long compared to the snapshot not being present. EVMS on the other hand takes 7.84 times as long.

If you find the numbers confusing just look at the raw results in the first table. If you use 8k chunk sizes with EVMS expect 'dbench 2' to take ~227 seconds compared to LVM2's ~15.

Quoted 7 lines
Quoted 4 lines

LVM2 by default uses the same metadata format as LVM1, so there really isn't any conversion procedure. So try LVM2 for a bit, if you don't like it (unlikely) revert to LVM1. Please note that metadata backups and archives are held in a very different form.

So I can just install LVM2 and continue as usual, and switch back if I get into trouble?

Yes.

Quoted 2 lines

And, what if I get into trouble? I can not backup
all data. There is not enough space for that.

What happens if you get in trouble with LVM1 ? If that data is important you should really back it up, all drives fail eventually.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Also, is it possible to convert (with and LVM version) a spanded volume to a striped volume?

Not until we get the new pvmove infrastructure.

So, when newer pvmove tools develops it would be possible to convert
a spanned volume to a sriped (RAID0 or 5?) volume without loosing data?

RAID5 is probably 6 months away, but I would hope to be able to remap a linear volume to a striped volume in the next month or so.

- Joe

#5 lore raw
Quoted 25 lines · Anders Widman
Quoted 2 lines
Quoted 1 line · Anders Widman

What exactly shown in those diagrams? :)

It's trying to answer the question 'how does io to a volume slow down if I take a snapshot'. The *overhead* is plotted on the vertical scale, in terms of the time taken to do the operation with no snapshot.

So if I use a chunk size of 16k we see that LVM2 has an overhead of 0.23, ie. the 'dbench 2' operation on a freshly snapshotted origin will take 1.23 times as long compared to the snapshot not being present. EVMS on the other hand takes 7.84 times as long.

If you find the numbers confusing just look at the raw results in the first table. If you use 8k chunk sizes with EVMS expect 'dbench 2' to take ~227 seconds compared to LVM2's ~15.

Quoted 7 lines
Quoted 4 lines

LVM2 by default uses the same metadata format as LVM1, so there really isn't any conversion procedure. So try LVM2 for a bit, if you don't like it (unlikely) revert to LVM1. Please note that metadata backups and archives are held in a very different form.

So I can just install LVM2 and continue as usual, and switch back if I get into trouble?

Quoted 7 lines

Yes.

Quoted 2 lines

And, what if I get into trouble? I can not backup
all data. There is not enough space for that.

What happens if you get in trouble with LVM1 ? If that data is important you should really back it up, all drives fail eventually.

True. Backups would be great, but, I have almost 1TB of data, and there is difficult to find a costworthy sollution. Actually I have had very bad luck with some of my drives. During a crash, probably a
electric surge or something, 4 out of 14 drives got severe
read/write errors. I could, however, rebuild data using reiserfs
tools.

If there were errors in the logical volume management, things might be more difficult to repair?

Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

Also, is it possible to convert (with and LVM version) a spanded volume to a striped volume?

Not until we get the new pvmove infrastructure.

So, when newer pvmove tools develops it would be possible to convert
a spanned volume to a sriped (RAID0 or 5?) volume without loosing data?

RAID5 is probably 6 months away, but I would hope to be able to remap a linear volume to a striped volume in the next month or so.

Ok. I'll wait for the RAID 5, as it would give me the redundancy I need.

//Anders

Quoted 7 lines

- Joe

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html