LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-03-2014, 12:22 AM   #1
Aashika
LQ Newbie
 
Registered: Sep 2014
Posts: 15

Rep: Reputation: Disabled
Question restoring snapshots when a clone is being made


hi,
Is there any way to restore snapshots when clone is being created on the same machine??
 
Old 12-03-2014, 01:16 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Aashika View Post
Is there any way to restore snapshots when clone is being created on the same machine??
In laymans terms creating a clone is reading blocks and copying them. A snapshot is like an index of blocks and positions. Restoring a snapshot is like finding out which blocks changed and reverting them. So restoring a snapshot and cloning at the same time would be like trying to rebuild a bridge on one side and at the same time demolishing it on the other side. It's an excellent way to fsck up the integrity of the VM. *If you are not bound to using local storage have a look at networked storage using ZFS pools.
 
1 members found this post helpful.
Old 12-03-2014, 02:42 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,784

Rep: Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214Reputation: 2214
You could create a second snapshot, then clone that snapshot while restoring the primary volume. It's really no different from making a temporary snapshot for a backup process while the original volume continues to be in use read-write. Just be sure that snapshot isn't going to run out of space during the process. It should grow to essentially the same size as the snapshot you are restoring.
 
Old 12-03-2014, 04:14 PM   #4
peter_b123
LQ Newbie
 
Registered: May 2006
Posts: 18

Rep: Reputation: 2
Quote:
Originally Posted by unSpawn View Post
In laymans terms creating a clone is reading blocks and copying them. A snapshot is like an index of blocks and positions. Restoring a snapshot is like finding out which blocks changed and reverting them. So restoring a snapshot and cloning at the same time would be like trying to rebuild a bridge on one side and at the same time demolishing it on the other side. It's an excellent way to fsck up the integrity of the VM. *If you are not bound to using local storage have a look at networked storage using ZFS pools.
I chuckled at that. Thanks for the laugh. Sorry to interrupt.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clone of the Windows Notepad made for Linux (ultra light-weight) Xeratul Linux - Software 22 01-04-2014 05:35 AM
snapshots Nitish068 Linux - Software 2 10-10-2009 10:36 PM
I need to Clone a Red Hat drive and install clone in HP server drummer54 Linux - Newbie 14 03-07-2009 04:15 PM
Need help restoring iptables rules made by firestarter Thaidog Linux - Software 2 03-05-2009 03:48 AM
Best Distro - Snapshots, restoring, and upgrades vettejock99 Linux - Newbie 5 09-08-2005 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 01:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration