Backup and rebuilding a node - not clustered

BloodyIron

Renowned Member
Jan 14, 2013
302
27
93
it.lanified.com
I'm putting some of my systems through the paces, figuring out what needs to be backed up. Right now I'm dealing with a single system (as in not clustered).

Initially I setup a system, connected it to an iSCSI target, setup an LVM group on it, then installed a KVM Ubuntu VM.

I then copied all of /etc/ off the server to another system and nuked the PVE installation. As in, reinstalled the PVE 3.0 system.

During installation I set it to the same hostname/ip/netmask/gateway/dns/password. After verifying a clean install, I then dumped the /etc/ back onto it, and rebooted.

It now complains about being able to fsck the device due to UUID issue: /dev/mapper/pve-data: clean "fsck.ext3: unable to resolve " (then UUID).

I then press CTRL+D to continue and all things appear to work. I suspect this is a fstab mismatch, but I'm not sure.

Can I get a dev/admin to comment on my method?
 
backing up the complete /etc is not what a real admin would do. there are a lot of things that can be different on other hardware.
so if i'd like to give you an advice, i'd say use the backup option of proxmox and deal everything with it.

it seems you really don't know much about administrating linux-os so this the best option for you
 
backing up the complete /etc is not what a real admin would do

it seems you really don't know much about administrating linux-os so this the best option for you

First, please keep this kind of rhetoric out. I'm not interested in your opinions on such manner.


so if i'd like to give you an advice, i'd say use the backup option of proxmox and deal everything with it.

Second, after reading through the wiki repeatedly I haven't found a reliable (or at least properly documented) method in doing this just yet, hence this discussion. Which method have you found to be the most reliable?
 
First, please keep this kind of rhetoric out. I'm not interested in your opinions on such manner.
you are interested in my and others optinion, if you won't you would not ask your question here.


Second, after reading through the wiki repeatedly I haven't found a reliable (or at least properly documented) method in doing this just yet, hence this discussion. Which method have you found to be the most reliable?
backup is not documented in the wiki? hmm.. http://pve.proxmox.com/wiki/Backup_and_Restore, what's about this?
 
backup is not documented in the wiki? hmm.. http://pve.proxmox.com/wiki/Backup_and_Restore, what's about this?

That only outlines backup of the KVM/OpenVZ info, this does not include things like the storage or network configurations which is why I was backing up the etc folder in the first place. In fact it was actually a recommended procedure outlined in 2 other posts on the forums, despite you jumping the gun and assuming I had done no research ( http://forum.proxmox.com/threads/831-Where-are-kvm-config-files-stored and again http://forum.proxmox.com/threads/8033-How-to-Backup-Restore-Proxmox-configuration ) or assumed that I am amateur. Hence why you shouldn't be getting snotty with me in the first place, let alone anyone; I am asking for help not some punk opinion.

So you may wonder to yourself, if I already know this much, why am I posting here? Because I am asking about the whole of /etc/, not just /etc/pve. The reason for this is to also have any interfaces, hosts, hostname or other particular configurations restored in the process.

So far the only issue I've observed is complaining about a UUID after restore, but I suspect that's a no longer relevant fstab being restored, however I was hoping to have some official or experienced commentary on this matter and perhaps other items in /etc/ that I had not covered just yet.

So if there is anyone that can actually comment on this particular method of backup/restore, please chime in.
 
you need to change the UUID references in /etc/fstab to there new references as a new disk/partition will have a new UUID after format

you can find your current disk UUID by running this command

Code:
[COLOR=#333333][FONT=Trebuchet MS]blkid[/FONT][/COLOR]
 
Just as I suspected, but I wasn't sure how to get the new UUID without reading the fstab that it originally generated, thanks! :D

I'm not sure which partition just yet it's complaining about, have you done this before?


you need to change the UUID references in /etc/fstab to there new references as a new disk/partition will have a new UUID after format

you can find your current disk UUID by running this command

Code:
[COLOR=#333333][FONT=Trebuchet MS]blkid[/FONT][/COLOR]
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!