how to clone images of drives with LUKS+LVM2?












3















I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case Something Goes Wrong with the upgrade. (Note I regularly create file-backups (with duplicity and rsync) of my /home filesystem and config files: I only create image-backups before major events, like upgrades or reinstalls.) However, I recently noted this response to a Clonezilla forum post (from one of the Clonezilla leads:



RAID device is complicated to Clonezilla live, besides
LUKS is not supported by Clonezilla, either. Therefore
your configuration is too difficult for Clonezilla


The harddrives on the boxes I want to image do not run RAID, but they do run both LUKS+LVM2 (installed as described here). So I'd like to know, how are folks with similar setups cloning their drives?










share|improve this question



























    3















    I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case Something Goes Wrong with the upgrade. (Note I regularly create file-backups (with duplicity and rsync) of my /home filesystem and config files: I only create image-backups before major events, like upgrades or reinstalls.) However, I recently noted this response to a Clonezilla forum post (from one of the Clonezilla leads:



    RAID device is complicated to Clonezilla live, besides
    LUKS is not supported by Clonezilla, either. Therefore
    your configuration is too difficult for Clonezilla


    The harddrives on the boxes I want to image do not run RAID, but they do run both LUKS+LVM2 (installed as described here). So I'd like to know, how are folks with similar setups cloning their drives?










    share|improve this question

























      3












      3








      3


      1






      I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case Something Goes Wrong with the upgrade. (Note I regularly create file-backups (with duplicity and rsync) of my /home filesystem and config files: I only create image-backups before major events, like upgrades or reinstalls.) However, I recently noted this response to a Clonezilla forum post (from one of the Clonezilla leads:



      RAID device is complicated to Clonezilla live, besides
      LUKS is not supported by Clonezilla, either. Therefore
      your configuration is too difficult for Clonezilla


      The harddrives on the boxes I want to image do not run RAID, but they do run both LUKS+LVM2 (installed as described here). So I'd like to know, how are folks with similar setups cloning their drives?










      share|improve this question














      I have 2 Debian boxes which I need to upgrade. In the past, before upgrading any box, I have used Clonezilla to create an image of each of the box's harddrives for use as disaster backup, in case Something Goes Wrong with the upgrade. (Note I regularly create file-backups (with duplicity and rsync) of my /home filesystem and config files: I only create image-backups before major events, like upgrades or reinstalls.) However, I recently noted this response to a Clonezilla forum post (from one of the Clonezilla leads:



      RAID device is complicated to Clonezilla live, besides
      LUKS is not supported by Clonezilla, either. Therefore
      your configuration is too difficult for Clonezilla


      The harddrives on the boxes I want to image do not run RAID, but they do run both LUKS+LVM2 (installed as described here). So I'd like to know, how are folks with similar setups cloning their drives?







      luks lvm disk-image clonezilla disk-encryption






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 15 '15 at 0:23









      TomRocheTomRoche

      5081620




      5081620






















          1 Answer
          1






          active

          oldest

          votes


















          0














          As long as you have the disk space, I would just go with dd which will do a byte for byte copy of the drive. If you are not familiar with dd, it's fequently described as a dangerous command. The arguments for source and destination are if= and of= (for input file and output file) and if you mix them up you get no warning, rather you just overwrite your good drive.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f209669%2fhow-to-clone-images-of-drives-with-lukslvm2%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            As long as you have the disk space, I would just go with dd which will do a byte for byte copy of the drive. If you are not familiar with dd, it's fequently described as a dangerous command. The arguments for source and destination are if= and of= (for input file and output file) and if you mix them up you get no warning, rather you just overwrite your good drive.






            share|improve this answer




























              0














              As long as you have the disk space, I would just go with dd which will do a byte for byte copy of the drive. If you are not familiar with dd, it's fequently described as a dangerous command. The arguments for source and destination are if= and of= (for input file and output file) and if you mix them up you get no warning, rather you just overwrite your good drive.






              share|improve this answer


























                0












                0








                0







                As long as you have the disk space, I would just go with dd which will do a byte for byte copy of the drive. If you are not familiar with dd, it's fequently described as a dangerous command. The arguments for source and destination are if= and of= (for input file and output file) and if you mix them up you get no warning, rather you just overwrite your good drive.






                share|improve this answer













                As long as you have the disk space, I would just go with dd which will do a byte for byte copy of the drive. If you are not familiar with dd, it's fequently described as a dangerous command. The arguments for source and destination are if= and of= (for input file and output file) and if you mix them up you get no warning, rather you just overwrite your good drive.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jun 15 '15 at 0:37









                user1794469user1794469

                1,5801822




                1,5801822






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f209669%2fhow-to-clone-images-of-drives-with-lukslvm2%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀