Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need advise regarding backups...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1710
Location: Wolkenkuckucksheim

PostPosted: Wed Feb 20, 2013 5:19 pm    Post subject: Need advise regarding backups... Reply with quote

Hello!
I recently had a situation where I had to replay my backup of / (same computer/partition). Bad enough, I found out that my old script with rdiff-backup seemed to be not functional anymore. Had to reinstall my system then :(
Basically, I had two major problems.:
a) grub2 stopped working. Mostly because of the bloody UUID in the grub.cfg:
Code:

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-barem$
else
  search --no-floppy --fs-uuid --set=root 6014b575-907a-473c-81d3-a8d201bc1cba
fi
    font="/usr/share/grub/unicode.pf2"
fi

I set grub up to NOT use any UUIDs, still it does. If I reformat a partition, the UUID will change. Any way around that?

Next thing was that I didn't have any internet connection anymore, the given error from Networkmanager was so random, that I had to reinstall my system. Also this forum was of no help in that case.
This is my old script, maybe someone sees what was causing the troubles (my guess leaving out a directory too much):

Code:

rdiff-backup --print-statistics --exclude-sockets -v 3 --include=/dev/console --exclude=/dev/ --exclude=/tmp/* --exclude=/sys/* --include=/var/tmp/portage --exclude=/var/tmp/* --include=/var/log/emerge.log --exclude=/var/log/* --exclude=/proc/* --include=/usr/portage/distfiles --include=/usr/portage/profiles --exclude=/usr/portage/ --exclude=/home/* --exclude=/media/*  --exclude=/mnt/* --exclude=/ccache/* --exclude=/root/.thumbnails --exclude=/reiserfs_priv --include=/usr/src/linux-*/.config  --exclude=/usr/src/linux-*  --exclude=/var/run/* --exclude=/run/* --exclude=/var/lock/* /  /run/media/martux/backup_linux/root-backup/;


Please folks, I really need a reliable backup solution, so any help is appreciated!
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2799

PostPosted: Wed Feb 20, 2013 8:12 pm    Post subject: Reply with quote

Adjust your script to store UUID of the rootfs partition and update grub's config with new uuid by sed if needed.

Also I would first bind-mount rootfs into something and then backup real rootfs including empty /sys, /proc and original, static /dev.

networkmanager is kind of big thingy so without any logs I can't even think about possible solution.
_________________
BitBucket -- better-initramfs to address many usecases and linux's limitations.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1710
Location: Wolkenkuckucksheim

PostPosted: Wed Feb 20, 2013 8:18 pm    Post subject: Reply with quote

Well, I already reinstalled Gentoo from scratch (good practice to do it every few years ;) ).
All I got are these messages in system log:
Code:

ctivating service name='org.freedesktop.ModemManager' (using servicehelper)
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activated service 'org.freedesktop.ModemManager' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Permission denied
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activated service 'org.freedesktop.PolicyKit1' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <error> [1361188118.97733] [nm-manager-auth.c:87] pk_authority_get(): Failed to initialize PolicyKit: (23) Error initializing authority: Fehler beim Aufruf von StartServiceByName für org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> monitoring kernel firmware directory '/lib/firmware'.
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> rfkill0: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/ieee80211/phy0/rfkill0) (driver ath9k)
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> rfkill1: found WiFi radio killswitch (at /sys/devices/platform/samsung/rfkill/rfkill1) (platform driver (unknown))
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activating service name='org.bluez' (using servicehelper)
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activated service 'org.bluez' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> WiFi enabled by radio killswitch; enabled by state file
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> WWAN enabled by radio killswitch; enabled by state file
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> WiMAX enabled by radio killswitch; enabled by state file
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> Networking is enabled by state file
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <error> [1361188118.194416] [wifi-utils-nl80211.c:669] nl80211_wiphy_info_handler(): Don't know the meaning of NL80211_ATTR_CIPHER_SUITES 0x000fac06.
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): using nl80211 for WiFi device control
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> (wlan0): driver supports Access Point (AP) mode
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): new 802.11 WiFi device (driver: 'ath9k' ifindex: 4)
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/0
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): now managed
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): bringing up device.
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): preparing device.
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): deactivating device (reason 'managed') [2]
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activating service name='fi.w1.wpa_supplicant1' (using servicehelper)
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> failed to allocate link cache: (-10) Operation not supported
 Feb 18 12:48:38 aumakua dbus[2333]: [system] Activated service 'fi.w1.wpa_supplicant1' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): carrier is OFF
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): new Ethernet device (driver: 'sky2' ifindex: 3)
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/1
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): now managed
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): bringing up device.
 Feb 18 12:48:38 aumakua kernel: [   17.535562] sky2 0000:06:00.0 eth0: enabling interface
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): preparing device.
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (eth0): deactivating device (reason 'managed') [2]
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> /sys/devices/virtual/net/dummy0: couldn't determine device driver; ignoring...
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> /sys/devices/virtual/net/dummy0: couldn't determine device driver; ignoring...
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> NetworkManager is running with OpenRC...
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <warn> bluez error getting default adapter: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:38 aumakua NetworkManager[2352]: <info> (wlan0): supplicant interface state: starting -> init
 Feb 18 12:48:39 aumakua /etc/init.d/NetworkManager[2338]: WARNING: NetworkManager has started, but is inactive
 Feb 18 12:48:39 aumakua acpid: starting up with netlink and the input layer
 Feb 18 12:48:39 aumakua acpid: 1 rule loaded
 Feb 18 12:48:39 aumakua acpid: waiting for events: event logging is off
 Feb 18 12:48:40 aumakua bluetoothd[2438]: Bluetooth daemon 4.101
 Feb 18 12:48:40 aumakua bluetoothd[2438]: Starting SDP server
 Feb 18 12:48:40 aumakua bluetoothd[2438]: Listening for HCI events on hci0
 Feb 18 12:48:40 aumakua bluetoothd[2438]: HCI dev 0 up
 Feb 18 12:48:40 aumakua dbus[2333]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
 Feb 18 12:48:40 aumakua dbus[2333]: [system] Activated service 'org.freedesktop.PolicyKit1' failed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:40 aumakua console-kit-daemon[2458]: WARNING: polkit_authority_get: Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/libexec/dbus-daemon-launch-helper: Success
 Feb 18 12:48:40 aumakua /usr/sbin/gpm[2541]: *** info [daemon/startup.c(136)]:
 Feb 18 12:48:40 aumakua /usr/sbin/gpm[2541]: Started gpm successfully. Entered daemon mode.
 Feb 18 12:48:40 aumakua bluetoothd[2438]: input-headset driver probe failed for device 08:D4:2B:A1:EC:8E
 Feb 18 12:48:40 aumakua bluetoothd[2438]: Unable to load keys to adapter_ops: Function not implemented (38)
 Feb 18 12:48:40 aumakua bluetoothd[2438]: Adapter /org/bluez/2438/hci0 has been enabled
 Feb 18 12:48:40 aumakua bluetoothd[2438]: mce replied with an error: org.freedesktop.DBus.Error.ServiceUnknown, The name com.nokia.mce was not provided by any .service files
 Feb 18 12:48:40 aumakua /etc/init.d/ntpd[2546]: WARNING: ntpd is scheduled to start when NetworkManager has started
 Feb 18 12:48:41 aumakua sshd[2597]: Server listening on 0.0.0.0 port 17413.
 Feb 18 12:48:41 aumakua acpid: client connected from 2630[0:0]

Even as root user I only got "insufficient privileges" error in the KDE networmanager...
Do you mean I should save /dev in the backup?
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2799

PostPosted: Wed Feb 20, 2013 8:49 pm    Post subject: Reply with quote

Code:
/usr/libexec/dbus-daemon-launch-helper: Permission denie


How you restored your backup? Something like 'cp -r /mnt/backup/* /mnt/chroot'? Maybe you did not preserved permissions on restore. You should check permissions for /, /usr, /usr/libexec and /usr/libexec/dbus-daemon-launch-helper.
_________________
BitBucket -- better-initramfs to address many usecases and linux's limitations.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1710
Location: Wolkenkuckucksheim

PostPosted: Wed Feb 20, 2013 8:53 pm    Post subject: Reply with quote

I also used rdiff-backup. It should conserve permissions accurately. Like I wrote, I used that script for many years, but never had such massive problems before. File system types are on both harddisks ext4.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1710
Location: Wolkenkuckucksheim

PostPosted: Wed Feb 20, 2013 9:16 pm    Post subject: Reply with quote

The file permissions are always
Code:

-rws--x--- 1 root messagebus

also on the restored backup... Weird.
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2799

PostPosted: Wed Feb 20, 2013 9:57 pm    Post subject: Reply with quote

And by always you mean what? On the dirs as well?

Code:
% ls -l /usr/libexec/dbus-daemon-launch-helper /usr/libexec /usr -ld
drwxr-xr-x 12 root root       4.0K Dec  7 14:09 /usr/
drwxr-xr-x 11 root root       4.0K Feb 20 15:08 /usr/libexec/
-rws--x---  1 root messagebus 316K Dec  5 08:37 /usr/libexec/dbus-daemon-launch-helper


but I use wicd, which in my opinion sucks less than network maanger.
_________________
BitBucket -- better-initramfs to address many usecases and linux's limitations.
Back to top
View user's profile Send private message
Martux
Veteran
Veteran


Joined: 04 Feb 2005
Posts: 1710
Location: Wolkenkuckucksheim

PostPosted: Wed Feb 20, 2013 10:06 pm    Post subject: Reply with quote

Yes, unfortunately those permissions are accurate as well. What was strange as well, that all network interfaces were there. E.g. ifconfig showed them all functional... But still wpa_supplicant_gui also couldn't establish a connection (it just didn't showed any access point)...
_________________
"Coincidence is God's way of remaining anonymous."
Albert Einstein
"The road to success is always under construction"
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum