1

I will have two logical volumes that exist within one physical volume (RedHat Linux LVM).

I will also be moving a lot of data between these LVs.

My question is: Does the data get moved on the actual physical disk or is it only the file path that is changed?

Setup:

+-----------------------------------------------------------------------------------+
|                                                                                   |
|                                     +                                             |
|                                     |                                             |
|     +-------------------------------------------------------------------------+   |
|     |                               |                                         |   |
| PV  |    +--File---+                |                                         |   |
|     |    +-+----+--+        +       |        +                                |   |
|     |                       |       |        |                                |   |
|     +-------------------------------------------------------------------------+   |
|                             |       |        |                                    |
|                             |       |        |                                    |
|     +----------------------------+  |        |                                    |
|     |                       |    |  |        |                                    |
| LV1 |                       v    |  |        |                                    |
|     |                            |  |        |                                    |
|     +----------------------------+  |        |                                    |
|                                     |        |                                    |
|                                     |        |                                    |
|                                     |    +------------------------------------+   |
|                                     |    |   |                                |   |
| LV2                                 |    |   v                                |   |
|                                     |    |                                    |   |
|                                     |    +------------------------------------+   |
|                                     |                                             |
|                                     +                                             |
|                                                                                   |
+-----------------------------------------------------------------------------------+
  • Which OS are you dealing with? – EightBitTony Jun 30 '14 at 9:29
  • Linux Redhat, I still don't know which version it will be. – Adam Jun 30 '14 at 9:33
  • It gets moved. If it were otherwise, and the blocks were just de-assigned from the source volume and re-assigned to the destination volume, the relative sizes of the volumes would be constantly changing, and it doesn't. – MadHatter Jun 30 '14 at 9:41
1

When you say "move" I assume you are talking about using cp or mv to move data from one LV to another, not taking snapshots. In that case, the data is physically moved on disk.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.