#430 Issue closed
: ERROR: Could not source '/mnt/local/etc/sysconfig/kernel'¶
Labels: documentation
, support / question
a417237 opened issue at 2014-06-25 13:09:¶
Hi all, I am trying to recover my system from dvd and i get the following log.
no label, UUID=5e478695-699e-4dbb-baf5-ae0198139c0f
+++ component_created swap:/dev/sda1 swap
+++ local device=swap:/dev/sda1
+++ local type=swap
+++ local touchfile=swap-swap:-dev-sda1
+++ touch /tmp/rear.2gMg5151SofCFUn/tmp/touch/swap-swap:-dev-sda1
+++ set +x
2014-06-25 14:54:02 Disk layout created.
2014-06-25 14:54:02 Including layout/recreate/default/25_verify_mount.sh
2014-06-25 14:54:02 Finished running 'layout/recreate' stage in 29 seconds
2014-06-25 14:54:02 Running 'restore' stage
2014-06-25 14:54:02 Including restore/default/90_create_missing_directories.sh
2014-06-25 14:54:02 Including restore/SUSE_LINUX/91_create_missing_directories.sh
2014-06-25 14:54:02 Finished running 'restore' stage in 0 seconds
2014-06-25 14:54:02 Running 'finalize' stage
2014-06-25 14:54:02 Including finalize/default/01_prepare_checks.sh
2014-06-25 14:54:02 Including finalize/default/10_populate_dev.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/15_migrate_disk_devices_layout.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/15_migrate_uuid_tags.sh
2014-06-25 14:54:02 Including finalize/GNU/Linux/16_rename_diskbyid.sh
2014-06-25 14:54:02 Including finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh
/usr/share/rear/finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh: line 16: /mnt/local/etc/sysconfig/kernel: No such file or directory
2014-06-25 14:54:02 ERROR: Could not source '/mnt/local/etc/sysconfig/kernel'
=== Stack trace ===
Trace 0: /bin/rear:249 main
Trace 1: /usr/share/rear/lib/recover-workflow.sh:34 WORKFLOW_recover
Trace 2: /usr/share/rear/lib/framework-functions.sh:79 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:40 Source
Trace 4: /usr/share/rear/finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh:17 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:132 StopIfError
Message: Could not source '/mnt/local/etc/sysconfig/kernel'
===================
2014-06-25 14:54:02 Running exit tasks.
2014-06-25 14:54:02 Finished in 29 seconds
any idea ?
Thanks in advance
Benson
gdha commented at 2014-06-25 13:59:¶
The /mnt/local/etc/sysconfig
should normally contain lots of files of
the restored image. Was the restore successful? The kernel
file is one
of the many files you find under the /etc/sysconfig
directory. At
least at SLES
a417237 commented at 2014-06-25 14:20:¶
Hi, as you see in the log file, the disk was partitioned and formatted as well, I can even see that it was mounted as "/mnt/local" , but no restore was taken place before running "finalize/SUSE_LINUX/i386/17_rebuild_initramfs.sh". there is no error regarding backup image, it seems that there is something went wrong in between format and finalize. thanks a lot for the reply.
gdha commented at 2014-06-25 14:23:¶
What is the content of the /etc/rear/local.conf
file? And, what is the
output of rear dump
?
a417237 commented at 2014-06-25 14:28:¶
backup=netfs
netfs_url=file:///mnt/cdrom
netfs_mountcmd="mount -v -t iso9600 /dev/sr0"
netfs_umountcmd="umount"
gdha commented at 2014-06-25 14:39:¶
@a417237 I cannot follow - I'm sure the system restore was not
performed, but how did you make backup? And which variables did you
define before running rear -v mkbackup
? A rear dump
would be really
useful
a417237 commented at 2014-06-25 15:09:¶
@gdha , I did a backup using a usb disk "output=iso,"; rear format
/dev/sdb; rear -v mkbackup;
it was done pretty good. then I made a dvd using the following
procedure.
- initrd.cgz , unpacked and edit the local.conf to
netfs_mountcmd="mount -v -t iso9600 /dev/sr0"
2 new initrd.cgz was again copied to isolinux
linux-cllg:/tmp/onlytmp/linux-cllg # l
total 1180608
drw-rw-rw- 1 root root 0 Jun 21 19:11 isolinux
-rwxrwxr-x 1 root root 202 Jun 21 19:11 README
-rwxrwxr-x 1 root root 291 Jun 21 19:11 VERSION
-rwxrwxr-x 1 root root 11703121 Jun 21 18:42 backup.log
-rwxrwxr-x 1 root root 1134608378 Jun 21 18:42 backup.tar.gz
-rwxrwxr-x 1 root root 62449664 Jun 21 19:11 rear-linux-cllg.iso
-rwxrwxr-x 1 root root 162325 Jun 21 19:11 rear.log
mkisofs -o /tmp/onlytmp/rear-linux-cllg.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -J -R -V disks . - the dvd is written on dvd media
- booting is fine, menu selection works, automatic recovery lands in the "ERROR"
gdha commented at 2014-06-26 06:47:¶
Ok, you want to backup on a DVD, perhaps you could try (and use the latest rear-1.16.1):
## ISO backup included
OUTPUT=ISO
BACKUP=NETFS
BACKUP_URL=iso://backup # this could be a mounted USB disk on /backup
OUTPUT_URL=nfs://SERVER/vol/linux_images_dr/rear # location to copy ISO image to
ISO_MAX_SIZE=4400
TMPDIR=/mnt2/tmp # alternative /tmp (as DVD size might be too big; use another location)
a417237 commented at 2014-06-26 13:14:¶
Thank you very much for the help. is there any document available to create a disaste recovery dvd using rear ?. my understading is that the software can be used with USB and NFS backup only.
[Export of Github issue for rear/rear.]