DigiMoon 맘대로 닦고 조이고 기름치는 재미가 있는 DigiMoon만의 기억 저장소

Posted
Filed under 컴퓨터 탐구/리눅스
참고문서 :
https://github.com/rear/rear/issues/1036


Case 1) SLES12 SP3의 rear-2.3-74.1 -> 실패
For SLE 12 SP3 run the following as root:
zypper addrepo https://download.opensuse.org/repositories/Archiving/SLE_12_SP3/Archiving.repo
zypper refresh
zypper install rear


Case 2) SLES12 SP1의 rear-1.18-3 -> 실패
패키지 다운로드 주소 :  http://download.opensuse.org/repositories/Archiving:/Backup:/Rear/SLE_12_SP1/x86_64/rear-1.18-3.x86_64.rpm.mirrorlist


Case 3) CentOS 7의 rear-2.00-5 (의존성 에러 무시하고 설치)를 SLES12 SP1에 설치 -> 성공
http://download.opensuse.org/repositories/Archiving:/Backup:/Rear/SLE_12_SP1/x86_64/rear-1.18-3.x86_64.rpm.mirrorlist





ReaR 설정

inside SLES12 SP1 on UEFI
# cat /etc/rear/local.conf
OUTPUT=ISO
OUTPUT_URL=nfs://172.16.0.1/TMP/ReaR
BACKUP=NETFS
BACKUP_URL=nfs://172.16.0.1/TMP/ReaR
AUTOEXCLUDE_MULTIPATH=n
SSH_ROOT_PASSWORD="rear"
BACKUP_PROG_EXCLUDE=( '/.snapshots/*' '/lost+found/*' '/net/*' '/selinux/*' '/media/*' '/misc/*' '/srv/*' '/dev/*' '/mnt/*' '/proc/*' '/sys/*' '/tmp/*')
NETFS_KEEP_OLD_BACKUP_COPY=yes
# works only with UEFI
ISO_MKISOFS_BIN=/usr/bin/ebiso
USING_UEFI_BOOTLOADER=1
UEFI_BOOTLOADER=/boot/efi/EFI/sles/shim.efi
# works only with BTRFS stuff
REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" snapper chattr lsattr )
COPY_AS_IS=( "${COPY_AS_IS[@]}" /usr/lib/snapper/installation-helper /etc/snapper/config-templates/default )


inside SLES12 SP1 on BIOS
# cat /etc/rear/local.conf
OUTPUT=ISO
OUTPUT_URL=nfs://172.16.0.1/TMP/ReaR
BACKUP=NETFS
BACKUP_URL=nfs://172.16.0.1/TMP/ReaR
AUTOEXCLUDE_MULTIPATH=n
SSH_ROOT_PASSWORD="rear"
BACKUP_PROG_EXCLUDE=( '/.snapshots/*' '/lost+found/*' '/net/*' '/selinux/*' '/media/*' '/misc/*' '/srv/*' '/dev/*' '/mnt/*' '/proc/*' '/sys/*' '/tmp/*')
NETFS_KEEP_OLD_BACKUP_COPY=yes
# works only with BTRFS stuff
REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" snapper chattr lsattr )
COPY_AS_IS=( "${COPY_AS_IS[@]}" /usr/lib/snapper/installation-helper /etc/snapper/config-templates/default )


rear-1.18-3.x86_64.rpm 사용 시 백업 시 아래 에러, 그래서 1.18-3 안 씀
linux-ymq2:~ # rear -v mkbackup
Relax-and-Recover 1.18 / Git
Using log file: /var/log/rear/rear-linux-ymq2.log
Using UEFI Boot Loader for Linux (USING_UEFI_BOOTLOADER=1)
Creating disk layout
Creating root filesystem layout
Copying files and directories
Copying binaries and libraries
Copying kernel modules
Creating initramfs
'/boot/efi/EFI/sles/grub.efi' -> '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/grub.efi'
'/boot/efi/EFI/sles/grubx64.efi' -> '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/grubx64.efi'
ERROR: Could not copy initrd to UEFI
Aborting due to an error, check /var/log/rear/rear-linux-ymq2.log for details
Terminated
linux-ymq2:~ #


linux-ymq2:/var/log/rear # tail -f rear-linux-ymq2.log
removed '/tmp/rear.OBcbvQakD6Qn2td/outputfs/linux-ymq2.old/backup.log'
removed directory: '/tmp/rear.OBcbvQakD6Qn2td/outputfs/linux-ymq2.old'
'/tmp/rear.OBcbvQakD6Qn2td/outputfs/linux-ymq2' -> '/tmp/rear.OBcbvQakD6Qn2td/outputfs/linux-ymq2.old'
2018-04-12 09:35:56 Including output/default/20_make_boot_dir.sh
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/boot'
2018-04-12 09:35:56 Including output/default/20_make_prefix_dir.sh
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/outputfs/linux-ymq2'
2018-04-12 09:35:56 Including output/ISO/Linux-i386/20_mount_efibootimg.sh
128000+0 records in
128000+0 records out
131072000 bytes (131 MB) copied, 0.771918 s, 170 MB/s
mkfs.fat 3.0.26 (2014-03-07)
/tmp/rear.OBcbvQakD6Qn2td/tmp/efiboot.img has 64 heads and 32 sectors per track,
hidden sectors 0x0000;
logical sector size is 512,
using 0xf8 media descriptor, with 256000 sectors;
drive number 0x80;
filesystem has 2 16-bit FATs and 4 sectors per cluster.
FAT size is 252 sectors, and provides 63865 clusters.
There is 1 reserved sector.
Root directory contains 512 slots and uses 32 sectors.
Volume ID is 9ed54ada, no volume label.
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt'
mount: /dev/loop0 mounted on /tmp/rear.OBcbvQakD6Qn2td/tmp/mnt.
2018-04-12 09:35:57 Including output/default/25_create_lock.sh
2018-04-12 09:35:57 Including output/ISO/Linux-i386/25_populate_efibootimg.sh
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI'
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT'
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/fonts'
mkdir: created directory '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/locale'
'/boot/efi/EFI/sles/shim.efi' -> '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/BOOTX64.efi'
2018-04-12 09:36:01 Copying kernel
'/boot/vmlinuz-3.12.74-60.64.40-default' -> '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/kernel'
'/tmp/rear.OBcbvQakD6Qn2td/tmp/initrd.cgz' -> '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/initrd.cgz'
cp: error writing '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt/EFI/BOOT/initrd.cgz': No space left on device
2018-04-12 09:36:02 ERROR: Could not copy initrd to UEFI
=== Stack trace ===
Trace 0: /usr/sbin/rear:410 main
Trace 1: /usr/share/rear/lib/mkbackup-workflow.sh:24 WORKFLOW_mkbackup
Trace 2: /usr/share/rear/lib/framework-functions.sh:85 SourceStage
Trace 3: /usr/share/rear/lib/framework-functions.sh:45 Source
Trace 4: /usr/share/rear/output/ISO/Linux-i386/25_populate_efibootimg.sh:42 source
Trace 5: /usr/share/rear/lib/_input-output-functions.sh:150 StopIfError
Message: Could not copy initrd to UEFI
===================
2018-04-12 09:36:02 Running exit tasks.
removed directory: '/tmp/rear.OBcbvQakD6Qn2td/outputfs'
2018-04-12 09:36:02 Finished in 108 seconds
2018-04-12 09:36:02 Removing build area /tmp/rear.OBcbvQakD6Qn2td
rm: cannot remove '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt': Device or resource busy
rm: cannot remove '/tmp/rear.OBcbvQakD6Qn2td/tmp/mnt': Device or resource busy
2018-04-12 09:36:02 End of program reached


Creative Commons License
2018/04/12 12:51 2018/04/12 12:51

디지문닷넷 :: ReaR on SLES12 테스트 기록