Trying to undstand lvm snapshots in linux

Posted on 2014-08-17
Last Modified: 2014-08-19
I am trying to understand lvm snapshots in rehat 6.0

I just created a lvm snapshot that was half the size of the volume I created the snapshot of.  Only 1/3 of the snapshot I created was used.  

How can a snapshot that is 1/6 the size of the volume I created the snapshot of be of any use ?
Question by:TIMFOX123
    LVL 61

    Accepted Solution

    Snapshot is filled with old versions of changed blocks. The longer it sits the bigger it grows.
    LVL 25

    Expert Comment

    by:Zephyr ICT
    How much data is on the volume you're snapshotting? is it also roughly 1/3 of the volume it resides on?
    LVL 13

    Expert Comment

    A snapshot volume is a special type of volume that presents all the data that was in the volume at the time the snapshot was created. This means we can back up that volume without having to worry about data being changed while the backup is going on, and we don't have to take the database volume offline while the backup is taking place.

    To create snapshot

    # lvcreate -L592M -s -n mybackup /dev/ora/databases
    lvcreate -- WARNING: the snapshot must be disabled if it gets full
    lvcreate -- INFO: using default snapshot chunk size of 64 KB for "/dev/ora/mybackup"
    lvcreate -- doing automatic backup of "ora"
    lvcreate -- logical volume "/dev/ora/mybackup" successfully created

    To Mount

    # mkdir /mnt/ora
    # mount /dev/ora/mybackup /mnt/ora
    mount: block device /dev/ora/mybackup is write-protected, mounting read-only


    Author Closing Comment

    very good answer

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now