Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Change of HDD

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    20 Posts 5 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Sensi
      last edited by

      Hi all.

      My basic question is - can we image a HDD that is running pfSense (2.1) and then restore the image back on to another drive?  Logic says that should work.

      Now the 'difficult' bit!  I want to change it from a SATA (pretty sure it is SATA, not PATA) HDD to a USB drive (maybe a pen-drive or a maybe a 'traditional type of HDD that connects via a USB port).  If I then set the computer to boot from USB, will it be able to reboot correctly?  Or do I need to do a fresh install and a restore from backup?

      1 Reply Last reply Reply Quote 0
      • D
        doktornotor Banned
        last edited by

        Why would you do such things? Backup the configuration, do a clean install and restore the configuration.

        1 Reply Last reply Reply Quote 0
        • S
          Sensi
          last edited by

          Was thinking that - but the installation 'works'!!  It is a multi vLan setup and it'll be a real pain to recreate everything!!

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            You just restore the configuration backup. Done! Absolutely no need to "recreate everything".

            1 Reply Last reply Reply Quote 0
            • S
              Sensi
              last edited by

              Daft question time - does the restore also cover the interfaces, and not just the rules and settings then?

              Also, how involved is de-CARPing an installation?  We currently have two boxes running in a CARPed (mirrored) set-up.  As the 2 PCs they are on are getting on a bit, we had planned to stop using them in a CARPed set-up and have pfSense running on a pen-drive which we just put into one computer.  And then swap the machine used every two or three months.  And regularly re-clone the pen-drive!

              Long term, the plan is to upgrade from 2.0.1 to the latest version - with a backup of the settings available to revert if we need to!!  Trouble is, I can't find a download of 2.0.1 at the moment.

              1 Reply Last reply Reply Quote 0
              • K
                kejianshi
                last edited by

                The entire config, interfaces and all.

                1 Reply Last reply Reply Quote 0
                • D
                  doktornotor Banned
                  last edited by

                  It restores complete configuration, incl. packages. Start a new thread in the proper forum section regarding CARP.

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sensi
                    last edited by

                    Will do - sorry to divert a bit, wrongly so, from my original question!!

                    Thank you very much - it looks as if it will be far easier than I was looking at.  I gave some help with the initial install, but got a genius to do most of it for me.  Unfortunately, he passed away a few weeks ago - so, without him as a backup, I'm trying to make sure every possible problem is worked out in advance.

                    Just need to find a copy of 2.0.1 to install and then restore a backup to.

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      @Sensi:

                      Just need to find a copy of 2.0.1 to install and then restore a backup to.

                      They are all on the mirrors…

                      http://files.atx.pfsense.org/mirror/downloads/old/

                      1 Reply Last reply Reply Quote 0
                      • KOMK
                        KOM
                        last edited by

                        It restores complete configuration, incl. packages.

                        I seem to recall in the past a few examples of installed packages that exploded after being restored from config.xml.  A raw image would be better than an XML backup, for sure, if they can spare the 5 minutes of downtime to image the drive.

                        1 Reply Last reply Reply Quote 0
                        • S
                          Sensi
                          last edited by

                          Thanks for the link.  Think I've got the right one to download now.  I'll give it a try.

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sensi
                            last edited by

                            KOM, are you saying to clone the drive is the best option?  Clonezilla?  Or do you know of a better one?

                            1 Reply Last reply Reply Quote 0
                            • KOMK
                              KOM
                              last edited by

                              If you are trying to find the best way to restore a system then yes, an image of the hard disk is the best way to go.  Restore the image, reboot and done.  No fiddling with checking that all packages and everything else are working after restoring XML.  The only downside is the downtime.  For imaging, I use Acronis B&R.  I've used Clonezilla in the past but thought it was kind of clunky.

                              I'm not saying that Config.xml backup is bad; I also use it.  But I take a weekly backup of my pfSense VM and I would rather restore that than do it from config.xml.

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sensi
                                last edited by

                                That roughly falls in with one of my plans/ideas.

                                That is to run pfSense from a USB stick (pen drive, whatever name you like!), rather than a 'normal' HDD, and to keep a couple of clones of it.  That way, if there is a disk failure, we have a live version to simply plug in and reboot (quicker than opening a computer up to change HDD).

                                Failing that, on a serious PC 'death', we simply plug the USB disk into another PC, re-assign the ports to their new names and it running again quickly.

                                USB sticks are so cheap these days!!

                                1 Reply Last reply Reply Quote 0
                                • KOMK
                                  KOM
                                  last edited by

                                  But then you've lost any history you may have, logs, graphs, etc unless you're copying these sticks to each other on a regular basis.

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    heper
                                    last edited by

                                    usb-sticks will die quickly if you have packages on there that do a lot of writes. even just logging can wreck a usbdrive in a couple of months. (thats why there are specific memstick releases that limit writes).

                                    1 Reply Last reply Reply Quote 0
                                    • D
                                      doktornotor Banned
                                      last edited by

                                      @KOM:

                                      A raw image would be better than an XML backup, for sure, if they can spare the 5 minutes of downtime to image the drive.

                                      That won't even boot due to /etc/fstab. Note the "HDD to a USB drive" in the OP.

                                      1 Reply Last reply Reply Quote 0
                                      • KOMK
                                        KOM
                                        last edited by

                                        Forgot he wanted USB.  I would never run that way myself.  It doesn't feel natural.  Plus I like my logs too much.

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sensi
                                          last edited by

                                          It is looking like using a USB HDD then - rather than a USB SSD.

                                          Can it really knacker a pen drive in just a few weeks?

                                          But might step into the upgrade from 2.0.1 to 2.2.2 by going to a USB stick first, on the basis that if there are errors, just I can just remove it an boot from the HDD.

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            Sensi
                                            last edited by

                                            I was looking at going to a Kingston 8Gb - it will do USB3, but only in a USB2 port

                                            http://www.kingston.com/datasheets/DTSE9g2_en.pdf

                                            It talks about a 5 year life?

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.