[Rear-users] ReaR 1.5pre1

Schlomo Schapiro schlomo at schapiro.org
Mon Mar 12 00:08:01 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

attached please find rear 1.5pre1 which should solve the following issues:
- - bonding
- - md devices on non-SUSE
- - cciss
- - TSM should also backup the resulting files

Please give it a try and send me the feedback (positive & negative).

Regards,
Schlomo

PS: Christian, I couldn't run a full test on your VM sine it lacks some
crucial software (mount.cifs, mkisofs usw.). But the rear mkrescue ran
through cleanly now and the data files in /etcc/rear/recovery look good
to me. So please kindly check this RPM on the CentOS VM you have and
also do a real backup/recovery.

Christian Neuhold wrote:
> Hi,
> 
> i only make a minimal rear configuration, I hope this is ok.
> My root filesystem is on a logical volume.
> rear backup command I use: rear -d -D mkbackup
> 
> vol_id does not exist in Centos 4.4, instead I use udev_volume_id, but I 
> get "error DEVPATH empty" always.
> 
> udev_volume_id  /dev/mapper/rootvg-root_lv
> error DEVPATH empty
> 
> udev_volume_id /dev/rootvg/rootlv
> error DEVPATH empty
> 
> udev_volume_id  /dev/sdc
> error DEVPATH empty
> 
> 
> 
> local.conf
> OUTPUT=TSM
> MODULES_LOAD=( vmxnet )
> 
> /proc/partitions
> major minor  #blocks  name
> 
>    8     0    2097152 sda
>    8     1     152586 sda1
>    8     2    1943865 sda2
>    8    16    2097152 sdb
>    8    17     152586 sdb1
>    8    18    1943865 sdb2
>    9     0     152512 md0
>    9     1    1943744 md1
>  253     0     262144 dm-0
>  253     1     131072 dm-1
>  253     2     950272 dm-2
>  253     3     425984 dm-3
>  253     4     131072 dm-4
>    8    32     229376 sdc
>  253     5      53248 dm-5
>                                                       
> fstab:
> # This file is edited by fstab-sync - see 'man fstab-sync' for details
> /dev/rootvg/rootlv      /                       ext3    defaults        1 1
> /dev/md0                /boot                   ext3    defaults        1 2
> none                    /dev/pts                devpts  gid=5,mode=620  0 0
> none                    /dev/shm                tmpfs   defaults        0 0
> none                    /proc                   proc    defaults        0 0
> none                    /sys                    sysfs   defaults        0 0
> /dev/rootvg/tmp_lv      /tmp                    ext3    defaults        1 2
> /dev/rootvg/usr_lv      /usr                    ext3    defaults        1 2
> /dev/rootvg/var_lv      /var                    ext3    defaults        1 2
> /dev/rootvg/swap_lv     swap                    swap    defaults        0 0
> /dev/datavg/prod_lv     /srv/prod               ext3    defaults,noauto 0 0
> /dev/hdc                /media/cdrom            auto    
> pamconsole,exec,noauto,managed 0 0
> /dev/fd0                /media/floppy           auto    
> pamconsole,exec,noauto,managed 0 0
> 
> 
> /tmp/rear.log
> 2007-02-13 20:31:35 Relax & Recover Version 1.4 / 2007-02-06
> 2007-02-13 20:31:35 Combining configuration files
> 2007-02-13 20:31:35 Skipping /etc/rear/mkbackup.conf (file not found or empty)
> 2007-02-13 20:31:35 Including /etc/rear/Linux-i386.conf
> 2007-02-13 20:31:35 Including /etc/rear/GNU/Linux.conf
> 2007-02-13 20:31:35 Skipping /etc/rear/CentOS.conf (file not found or empty)
> 2007-02-13 20:31:35 Skipping /etc/rear/CentOS/i386.conf (file not found or 
> empty)
> 2007-02-13 20:31:35 Skipping /etc/rear/CentOS/4.4.conf (file not found or 
> empty)
> 2007-02-13 20:31:35 Including /etc/rear/site.conf
> 2007-02-13 20:31:35 Including /etc/rear/local.conf
> 2007-02-13 20:31:36 Creating build area '/tmp/rear.4065'
> 2007-02-13 20:31:36 Running mkbackup workflow
> 2007-02-13 20:31:36 Running 'prep' stage
> 2007-02-13 20:31:36 Including prep/default/01_progress_start.sh
> 2007-02-13 20:31:36 Including prep/TSM/default/40_prep_tsm.sh
> 2007-02-13 20:31:36 Including prep/default/99_progress_stop.sh
> 2007-02-13 20:31:36 Finished running 'prep' stage in 0 seconds
> 2007-02-13 20:31:36 Running 'dr' stage
> 2007-02-13 20:31:36 Including dr/default/01_mk_config_dir_recovery.sh
> 2007-02-13 20:31:36 Including dr/GNU/Linux/10_describe_physical_devices.sh
> 2007-02-13 20:31:36 Skipping small removable device 'hdc' [Size: 3GB]. Adjust 
> SYSFS_REMOVABLE_DEVICE_SIZE [15] to prevent
> this.
> 2007-02-13 20:31:36 Including dr/GNU/Linux/11_describe_mountpoint_device.sh
> 2007-02-13 20:31:36 Including dr/GNU/Linux/12_describe_filesystems.sh
> 2007-02-13 20:31:36 ERROR Cannot determine filesystem info 
> on '/dev/mapper/rootvg-rootlv'
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.
> [root at CNCCENTOS01 /]# rm -rf /tmp/rear.*
> rear mkbackup -d
> [root at CNCCENTOS01 /]# rear -d -D mkbackup
> Relax & Recover Version 1.4 / 2007-02-06
> The preparation phase OK
> ERROR: Cannot determine filesystem info on '/dev/mapper/rootvg-rootlv'
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.
> [root at CNCCENTOS01 /]# cat /tmp/rear.
> cat: /tmp/rear.: No such file or directory
> [root at CNCCENTOS01 /]# cat /tmp/rear.log
> 2007-02-13 20:31:51 Relax & Recover Version 1.4 / 2007-02-06
> 2007-02-13 20:31:51 Combining configuration files
> 2007-02-13 20:31:51 Skipping /etc/rear/mkbackup.conf (file not found or empty)
> 2007-02-13 20:31:51 Including /etc/rear/Linux-i386.conf
> + . /etc/rear/Linux-i386.conf
> ++ REQUIRED_PROGS=("${REQUIRED_PROGS[@]}" sfdisk)
> ++ PROGS=("${PROGS[@]}" grub partprobe parted lilo fdisk cfdisk)
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including /etc/rear/GNU/Linux.conf
> + . /etc/rear/GNU/Linux.conf
> ++ PROGS=(${PROGS[@]} bash mknod vol_id udev_volume_id portmap readlink 
> rpcinfo grep cat tr reboot halt shutdown killall5
> killall chroot tee awk ip ifenslave klogd syslog-ng syslogd echo cp date wc 
> cut rm test init ethtool expand sed mount umou
> nt insmod modprobe lsmod true false mingetty rmmod hostname uname sleep logger 
> ps ln dirname basename mkdir cpio tty ping
> netstat free traceroute less vi rmmod df ls dmesg du tar gzip netcat top 
> iptraf joe pico getent id nslookup ldd strace rsy
> nc tail head find md5sum mkfs mkfs.ext2 mkfs.ext3 mkfs.jfs mkfs.xfs 
> mkfs.reiserfs mkreiserfs fsck.ext2 fsck.ext3 fsck.xfs
> fsck.reiserfs reiserfsck tune2fs xfs_admin xfs_db jfs_tune reiserfstune fsck 
> expr egrep grep fgrep df chmod chown stat mks
> wap swapon swapoff mknod)
> ++ LIBS=(${LIBS[@]} /lib/libnss_dns* /lib/libnss_files* /lib/libgcc_s*)
> ++ MODULES=(${MODULES[@]} af_packet unix nfs lockd sunrpc cifs)
> ++ 
> COPY_AS_IS=(${COPY_AS_IS[@]} /dev /etc/protocols /etc/services /etc/rpc /etc/termcap /usr/share/terminfo)
> + test 1
> + set +x
> 2007-02-13 20:31:51 Skipping /etc/rear/CentOS.conf (file not found or empty)
> 2007-02-13 20:31:51 Skipping /etc/rear/CentOS/i386.conf (file not found or 
> empty)
> 2007-02-13 20:31:51 Skipping /etc/rear/CentOS/4.4.conf (file not found or 
> empty)
> 2007-02-13 20:31:51 Including /etc/rear/site.conf
> + . /etc/rear/site.conf
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including /etc/rear/local.conf
> + . /etc/rear/local.conf
> ++ OUTPUT=TSM
> ++ MODULES_LOAD=(vmxnet)
> + test 1
> + set +x
> 2007-02-13 20:31:51 Creating build area '/tmp/rear.4263'
> 2007-02-13 20:31:51 Running mkbackup workflow
> 2007-02-13 20:31:51 Running 'prep' stage
> 2007-02-13 20:31:51 Including prep/default/01_progress_start.sh
> + . /usr/share/rear/prep/default/01_progress_start.sh
> ++ ProgressStart 'The preparation phase'
> ++ echo -n 'The preparation phase  '
> ++ kill -USR2 4296
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including prep/TSM/default/40_prep_tsm.sh
> + . /usr/share/rear/prep/TSM/default/40_prep_tsm.sh
> ++ COPY_AS_IS=("${COPY_AS_IS[@]}" "${COPY_AS_IS_TSM[@]}")
> ++ 
> COPY_AS_IS_EXCLUDE=("${COPY_AS_IS_EXCLUDE[@]}" "${COPY_AS_IS_EXCLUDE_TSM[@]}")
> ++ PROGS=("${PROGS[*]}" "${PROGS_TSM[*]}")
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including prep/default/99_progress_stop.sh
> + . /usr/share/rear/prep/default/99_progress_stop.sh
> ++ ProgressStop
> ++ kill -USR1 4296
> ++ echo -e '\bOK'
> + test 1
> + set +x
> 2007-02-13 20:31:51 Finished running 'prep' stage in 0 seconds
> 2007-02-13 20:31:51 Running 'dr' stage
> 2007-02-13 20:31:51 Including dr/default/01_mk_config_dir_recovery.sh
> + . /usr/share/rear/dr/default/01_mk_config_dir_recovery.sh
> ++ rm -Rf /etc/rear/recovery
> ++ mkdir -m 755 /etc/rear/recovery
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including dr/GNU/Linux/10_describe_physical_devices.sh
> + . /usr/share/rear/dr/GNU/Linux/10_describe_physical_devices.sh
> ++ FindPhysicalDevices
> +++ 
> ls -d /sys/block/hdc/device /sys/block/sda/device /sys/block/sdb/device /sys/block/sdc/device
> ++ for d in '$(ls -d /sys/block/*/device)'
> ++ test -L /sys/block/hdc/device
> +++ dirname /sys/block/hdc/device
> ++ sysfspath=/sys/block/hdc
> +++ basename /sys/block/hdc
> ++ device=hdc
> ++ test -s /sys/block/hdc/size
> +++ cat /sys/block/hdc/size
> ++ sysfssize=8388604
> +++ cat /sys/block/hdc/removable
> ++ test 1 -eq 1 -a 3 -le 15
> ++ Log 'Skipping small removable device '\''hdc'\'' [Size: 3GB]. Adjust 
> SYSFS_REMOVABLE_DEVICE_SIZE [15] to prevent this.'
> ++ test 1 -gt 0
> +++ Stamp
> +++ date '+%Y-%m-%d %H:%M:%S '
> ++ echo '2007-02-13 20:31:51 Skipping small removable device '\''hdc'\'' 
> [Size: 3GB]. Adjust SYSFS_REMOVABLE_DEVICE_SIZE [
> 15] to prevent this.'
> 2007-02-13 20:31:51 Skipping small removable device 'hdc' [Size: 3GB]. Adjust 
> SYSFS_REMOVABLE_DEVICE_SIZE [15] to prevent
> this.
> ++ continue
> ++ for d in '$(ls -d /sys/block/*/device)'
> ++ test -L /sys/block/sda/device
> +++ dirname /sys/block/sda/device
> ++ sysfspath=/sys/block/sda
> +++ basename /sys/block/sda
> ++ device=sda
> ++ test -s /sys/block/sda/size
> +++ cat /sys/block/sda/size
> ++ sysfssize=4194304
> +++ cat /sys/block/sda/removable
> ++ test 0 -eq 1 -a 2 -le 15
> ++ DeviceNameToNode sda
> ++ device=/dev/sda
> ++ device2=/dev/sda
> ++ test -b /dev/sda
> ++ echo /dev/sda
> ++ for d in '$(ls -d /sys/block/*/device)'
> ++ test -L /sys/block/sdb/device
> +++ dirname /sys/block/sdb/device
> ++ sysfspath=/sys/block/sdb
> +++ basename /sys/block/sdb
> ++ device=sdb
> ++ test -s /sys/block/sdb/size
> +++ cat /sys/block/sdb/size
> ++ sysfssize=4194304
> +++ cat /sys/block/sdb/removable
> ++ test 0 -eq 1 -a 2 -le 15
> ++ DeviceNameToNode sdb
> ++ device=/dev/sdb
> ++ device2=/dev/sdb
> ++ test -b /dev/sdb
> ++ echo /dev/sdb
> ++ for d in '$(ls -d /sys/block/*/device)'
> ++ test -L /sys/block/sdc/device
> +++ dirname /sys/block/sdc/device
> ++ sysfspath=/sys/block/sdc
> +++ basename /sys/block/sdc
> ++ device=sdc
> ++ test -s /sys/block/sdc/size
> +++ cat /sys/block/sdc/size
> ++ sysfssize=458752
> +++ cat /sys/block/sdc/removable
> ++ test 0 -eq 1 -a 0 -le 15
> ++ DeviceNameToNode sdc
> ++ device=/dev/sdc
> ++ device2=/dev/sdc
> ++ test -b /dev/sdc
> ++ echo /dev/sdc
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including dr/GNU/Linux/11_describe_mountpoint_device.sh
> + . /usr/share/rear/dr/GNU/Linux/11_describe_mountpoint_device.sh
> ++ echo -n ''
> ++++ mount
> ++++ cut -d ' ' -f 1,3
> ++++ grep -v noauto /etc/fstab
> +++ join -a 2 -j 2 /dev/fd/63 /dev/fd/62
> ++ read -a entry
> ++++ grep -v '^#'
> ++++ tr -s ' \t' ' '
> ++++ cut -s -d ' ' -f 1,2,3
> ++++ sort -k 2
> ++++ sort -k 2 -t ' '
> ++++ grep -E '(reiserfs|xfs|ext|jfs)'
> ++ IsInArray / /srv/prod
> ++ search=/
> ++ shift
> ++ test 1 -gt 0
> ++ test / = /srv/prod
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ IsInArray /dev/mapper/rootvg-rootlv
> ++ search=/dev/mapper/rootvg-rootlv
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ test 4 -ne 4
> ++ echo / /dev/mapper/rootvg-rootlv /dev/rootvg/rootlv ext3
> ++ read -a entry
> ++ IsInArray /boot /srv/prod
> ++ search=/boot
> ++ shift
> ++ test 1 -gt 0
> ++ test /boot = /srv/prod
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ IsInArray /dev/md0
> ++ search=/dev/md0
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ test 4 -ne 4
> ++ echo /boot /dev/md0 /dev/md0 ext3
> ++ read -a entry
> ++ IsInArray /tmp /srv/prod
> ++ search=/tmp
> ++ shift
> ++ test 1 -gt 0
> ++ test /tmp = /srv/prod
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ IsInArray /dev/mapper/rootvg-tmp_lv
> ++ search=/dev/mapper/rootvg-tmp_lv
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ test 4 -ne 4
> ++ echo /tmp /dev/mapper/rootvg-tmp_lv /dev/rootvg/tmp_lv ext3
> ++ read -a entry
> ++ IsInArray /usr /srv/prod
> ++ search=/usr
> ++ shift
> ++ test 1 -gt 0
> ++ test /usr = /srv/prod
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ IsInArray /dev/mapper/rootvg-usr_lv
> ++ search=/dev/mapper/rootvg-usr_lv
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ test 4 -ne 4
> ++ echo /usr /dev/mapper/rootvg-usr_lv /dev/rootvg/usr_lv ext3
> ++ read -a entry
> ++ IsInArray /var /srv/prod
> ++ search=/var
> ++ shift
> ++ test 1 -gt 0
> ++ test /var = /srv/prod
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ IsInArray /dev/mapper/rootvg-var_lv
> ++ search=/dev/mapper/rootvg-var_lv
> ++ shift
> ++ test 0 -gt 0
> ++ return 1
> ++ test 4 -ne 4
> ++ echo /var /dev/mapper/rootvg-var_lv /dev/rootvg/var_lv ext3
> ++ read -a entry
> ++ test -s /etc/rear/recovery/mountpoint_device
> + test 1
> + set +x
> 2007-02-13 20:31:51 Including dr/GNU/Linux/12_describe_filesystems.sh
> + . /usr/share/rear/dr/GNU/Linux/12_describe_filesystems.sh
> ++ read mountpoint device mountby filesystem junk
> ++ mkdir -p /etc/rear/recovery/dev/mapper/rootvg-rootlv
> ++ vol_id /dev/mapper/rootvg-rootlv
> ++ udev_volume_id /dev/mapper/rootvg-rootlv
> ++ sed -e 's/^F:\(.*\)$/ID_FS_USAGE='\''\1'\''/' -e 's/^T:
> \(.*\)$/ID_FS_TYPE='\''\1'\''/' -e 's/^V:\(.*\)$/ID_FS_VERSION='                                                                                                                                                                
> \''\1'\''/' -e 's/^L:\(.*\)$/ID_FS_LABEL='\''\1'\''/' -e 's/^N:
> \(.*\)/ID_FS_LABEL_SAFE='\''\1'\''/' -e 's/^U:\(.*\)/ID_FS_                                                                                                                                                                
> UUID='\''\1'\''/'
> ++ grep =
> ++ Error 'Cannot determine filesystem info 
> on '\''/dev/mapper/rootvg-rootlv'\''
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.'
> ++ Log ERROR 'Cannot determine filesystem info 
> on '\''/dev/mapper/rootvg-rootlv'\''
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.'
> ++ test 2 -gt 0
> +++ Stamp
> +++ date '+%Y-%m-%d %H:%M:%S '
> ++ echo '2007-02-13 20:31:51 ERROR Cannot determine filesystem info 
> on '\''/dev/mapper/rootvg-rootlv'\''
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.'
> 2007-02-13 20:31:51 ERROR Cannot determine filesystem info 
> on '/dev/mapper/rootvg-rootlv'
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.
> ++ echo 'ERROR: Cannot determine filesystem info 
> on '\''/dev/mapper/rootvg-rootlv'\''
> Your udev implementation (vol_id or udev_volume_id) does not recognize it.'
> ++ exit 1
> + exec
> 
> 
> Ciao
> 	cuni
> 
> 
> Am Dienstag, 13. Februar 2007 10:16:07 schrieb Christian Neuhold:
>> Hi,
>> I tried your new version (rear 1.4) , but no success.
>>
>> When I start rear mkbackup on CentOS release 4.4 (Final) I get following
>> error:
>>
>> Relax & Recover Version 1.4 / 2007-02-06
>> Press ENTER to include '/etc/rear/Linux-i386.conf' ...
>> Press ENTER to include '/etc/rear/GNU/Linux.conf' ...
>> Press ENTER to include '/etc/rear/site.conf' ...
>> Press ENTER to include '/etc/rear/local.conf' ...
>> Press ENTER to include '/usr/share/rear/prep/default/01_progress_start.sh'
>> ...
>> The preparation phase  Press ENTER to include
>> '/usr/share/rear/prep/ISO/default/30_check_iso_dir.sh' ...
>> Press ENTER to include
>> '/usr/share/rear/prep/ISO/default/32_check_cdrom_size.sh' ..|
>> Press ENTER to include
>> '/usr/share/rear/prep/ISO/default/33_find_isolinux.sh' ...
>> Press ENTER to include '/usr/share/rear/prep/TSM/default/40_prep_tsm.sh'
>> ...
>> Press ENTER to include '/usr/share/rear/prep/default/99_progress_stop.sh'
>> ...
>> OK
>> Press ENTER to include
>> '/usr/share/rear/dr/default/01_mk_config_dir_recovery.sh' ...
>> Press ENTER to include
>> '/usr/share/rear/dr/GNU/Linux/10_describe_physical_devices.sh' ...
>> Press ENTER to include
>> '/usr/share/rear/dr/GNU/Linux/11_describe_mountpoint_device.sh' ...
>> Press ENTER to include
>> '/usr/share/rear/dr/GNU/Linux/12_describe_filesystems.sh' ...
>> ERROR: Cannot determine filesystem info on '/dev/mapper/rootvg-root_lv'
>> Your udev implementation (vol_id or udev_volume_id) does not recognize
>> it.
>>
>> Ciao
>>          cuni
>>
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job
>> easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Rear-users mailing list
>> Rear-users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/rear-users
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Rear-users mailing list
> Rear-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rear-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFF9IvQkXcSrJ5iIp4RAhOjAKCZeJUrRCpY8nYzj0TPUZPVOtnvCwCeOaHS
CA7dSwC3q3sGWVcFE/LbSnc=
=1HSM
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rear-1.5pre1-1.noarch.rpm
Type: application/octet-stream
Size: 96676 bytes
Desc: not available
Url : http://pikachu.3ti.be/pipermail/rear-users/attachments/20070312/46487b41/attachment.obj 


More information about the rear-users mailing list