[Rear-users] Device renaming (was: Re: WG: Questions about "LAYOUT_MODE")

Kai-Olaf Pieth pieth at dc-systeme.de
Mon Mar 12 17:19:03 CET 2012


Yes, I am sure... 

dcs-vserver:/usr/share/rear # md5sum ./layout/prepare/default/32_apply_mappings.sh
738a07d2d4e0834dd44180cf5bd42409  ./layout/prepare/default/32_apply_mappings.sh


dcs-vserver:/usr/share/rear/test # bash --version
GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

I have updated to SLES11SP2 last week.

dcs-vserver:/usr/share/rear/test # cat /etc/SuSE-release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 2

But it’s the same on SLES10SP4:
NU bash, version 3.1.17(1)-release (i586-suse-linux)
Copyright (C) 2005 Free Software Foundation, Inc.


../layout/prepare/default/32_apply_mappings.sh: line 27: syntax error near unexpected token `<'
../layout/prepare/default/32_apply_mappings.sh: line 27: `    read item replacement junk < <(grep "^$1 " $replacement_file)'

Its very strange...do I need to go into rear shell or source any other script before running test-replacement? This syntax is very often used by rear and I really don’t understand why it should be wrong here.

Mit freundlichen Grüßen 
Kai-Olaf Pieth

dc-systeme
----------
Informatik GmbH 

Kettwiger Str. 26 	
42579 Heiligenhaus 	
E-Mail: pieth at dc-systeme.de 	
Tel: 	+49 2056 261 1	
Fax: 	+49 2056 261 260 	
Internet: www.dc-systeme.de 	
HRB Wuppertal 17704
Geschäftsführer: W. Otterbein, T. Tenhaft

-----Ursprüngliche Nachricht-----
Von: Jeroen Hoekx [mailto:jeroen.hoekx at hamok.be] 
Gesendet: Montag, 12. März 2012 15:56
An: Discussions about Relax & Recover
Betreff: Re: [Rear-users] Device renaming (was: Re: WG: Questions about "LAYOUT_MODE")

Hello,

On 12 March 2012 15:15, Kai-Olaf Pieth <pieth at dc-systeme.de> wrote:

> This is the output of the test-replacement.sh with the svn version (revision 786) of rear:
>
> ../layout/prepare/default/32_apply_mappings.sh: line 27: syntax error near unexpected token `<'
> ../layout/prepare/default/32_apply_mappings.sh: line 27: `    read item replacement junk < <(grep "^$1 " $replacement_file)'

Are you sure you're using the unmodified version of that file?
I tested it on several systems. Even on RHEL 4 it's correct:

Source
disk /dev/cciss/c0d1
part /dev/cciss/c0d1p1
part /dev/cciss/c0d1p2
disk /dev/cciss/c0d10 n
part /dev/cciss/c0d10p1
disk /dev/sda
part /dev/sda1
disk /dev/sdp
part /dev/sdp1
part /dev/sdp2
This is the disk mapping table:
    /dev/cciss/c0d1 /dev/sda
    /dev/cciss/c0d10 /dev/sdb
    /dev/sda /dev/sdc
    /dev/sdp /dev/cciss/c1d0
Target
disk /dev/sda
part /dev/sda1
part /dev/sda2
disk /dev/sdb n
part /dev/sdb1
disk /dev/sdc
part /dev/sdc1
disk /dev/cciss/c1d0
part /dev/cciss/c1d0p1
part /dev/cciss/c1d0p2

md5 hash should be
[root at rh4rear test]# md5sum ../layout/prepare/default/32_apply_mappings.sh
738a07d2d4e0834dd44180cf5bd42409  ../layout/prepare/default/32_apply_mappings.sh

Which bash --version are you using?

> the logfile attached is from "rear -Dv mkbackup" with this version of rear. It is not working on cciss because of ... ERROR: BUG BUG BUG!  Unknown device /dev/cciss!c0d0p1...

This should have been fixed in 787. I don't have any cciss devices to test at the moment...

I should get rid of get_friendly_name to get DM names and add the functionality to get_device_name.

Greetings,

Jeroen

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Rear-users mailing list
Rear-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rear-users






More information about the rear-users mailing list