What is LVM?

Viewing 1 reply thread
  • Author
    Posts
    • #5201
      DataFlair TeamDataFlair Team
      Spectator

      What is LVM – Logical Volume Manager?
      What are pros and cons of LVM?

    • #5203
      DataFlair TeamDataFlair Team
      Spectator

      Logical Volume Management(LVM) is a tool to mount the disks on the machine/Server. Suppose 10 disk of 2 TBs are mounted on the server, So for the server only one disk of 10*2=20TB would be mounted. which means that the physical disks are combined into one single logical Disk.

      Pros:
      1. Dynamic Volume Resizing: LVM allow you to leave un-partitioned space on the hard disk and add it to a specific partition as needed without having to back up your data and reformat the hard drive
      2. Snapshots: We can create a Read Only snapshot of the Logical Volume and you can revert the original LV to the snapshot at a later time, or delete the snapshot if you no longer need it. This is good for server backups for instance (you cannot stop all your applications from writing, so you create a snapshot and backup the snapshot LV), but can also be used to provide a “safety net” before a critical system upgrade (clone the root partition, upgrade, revert if something went wrong).

      Cons:
      1. Performance: The data read will not be in parallel as the LVM will allow to read the disk one by one in sequential manner hence degrading the performance.
      2. Disaster Recovery: If even one disk fails we may loose all the data as it is logically mounted on same server.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.