xfs
[Top] [All Lists]

xfsrestore -i with ssh/rsh+dd as stdin

To: linux-xfs@xxxxxxxxxxx
Subject: xfsrestore -i with ssh/rsh+dd as stdin
From: Nicolas Kowalski <Nicolas.Kowalski@xxxxxxx>
Date: Fri, 13 Feb 2004 14:45:57 +0100
Mail-copies-to: never
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2
Hello.

I have some problems using xfsrestore (2.2.16-1, Debian woody) with
stdin file specifier when requesting an /interactive/ restore. I have
no problems with unattended restores.

For example, in the following, xfsrestore reads its data from the
output of dd, locally. Everything is ok.

<cut-here>
gaspard:/restore# dd if=/dev/nst0 bs=1024k | xfsrestore -J -i - /restore
xfsrestore: using file dump (drive_simple) strategy
xfsrestore: version 2.2.16 (dump format 3.0) - Running single-threaded
xfsrestore: searching media for dump
xfsrestore: examining media file 0
xfsrestore: dump description: 
xfsrestore: hostname: gaspard
xfsrestore: mount point: /backup
xfsrestore: volume: /dev/hdb1
xfsrestore: session time: Fri Feb 13 09:48:34 2004
xfsrestore: level: 0
xfsrestore: session label: "gaspard:2004.02.13:0:/backup"
xfsrestore: media label: "sdlt320"
xfsrestore: file system id: 25b1018d-9731-4011-a7c1-e73e84a8d1dd
xfsrestore: session id: dfa73565-7c0c-4aaa-8c59-cc4efeb037f2
xfsrestore: media id: 17679139-35e5-4963-84a3-6679fba4c227
xfsrestore: searching media for directory dump
xfsrestore: reading directories
xfsrestore: 128651 directories and 1755499 entries processed
xfsrestore: directory post-processing

 ========================== subtree selection dialog ==========================

the following commands are available:
        pwd 
        ls [ <path> ]
        cd [ <path> ]
        add [ <path> ]
        delete [ <path> ]
        extract 
        quit 
        help 

 -> ls
      1766562304 samba/
      1502097925 dumpmgr/
      1902503387 tftpboot/
      1902503372 ftp/
      1632470340 www/
       559823869 intranet/
       427661074 pgsqla/
      1225615128 pgsql/
      1900119102 imap/
      1761413207 mail/
       143438905 local/
      1342177537 home/
       134217856 cvs/
             131 lost+found/

 -> 

[other commands ok]

<cut-here>


If dd is called remotely with rsh, xfsrestore hangs. See below:

gaspard:/restore# rsh gaspard 'dd if=/dev/nst0 bs=1024k' | xfsrestore -J -i - 
/restore
xfsrestore: using file dump (drive_simple) strategy
xfsrestore: version 2.2.16 (dump format 3.0) - Running single-threaded
xfsrestore: searching media for dump
xfsrestore: examining media file 0
xfsrestore: dump description: 
xfsrestore: hostname: gaspard
xfsrestore: mount point: /backup
xfsrestore: volume: /dev/hdb1
xfsrestore: session time: Fri Feb 13 09:48:34 2004
xfsrestore: level: 0
xfsrestore: session label: "gaspard:2004.02.13:0:/backup"
xfsrestore: media label: "sdlt320"
xfsrestore: file system id: 25b1018d-9731-4011-a7c1-e73e84a8d1dd
xfsrestore: session id: dfa73565-7c0c-4aaa-8c59-cc4efeb037f2
xfsrestore: media id: 17679139-35e5-4963-84a3-6679fba4c227
xfsrestore: searching media for directory dump
xfsrestore: reading directories
xfsrestore: 128651 directories and 1755499 entries processed
xfsrestore: directory post-processing

 ========================== subtree selection dialog ==========================

the following commands are available:
        pwd 
        ls [ <path> ]
        cd [ <path> ]
        add [ <path> ]
        delete [ <path> ]
        extract 
        quit 
        help 

 -> ls

===> nothing happens. The dd, rsh and xfsrestore processes are just
sleeping.


And finally, to add confusion, when dd is called remotely using ssh,
xfsrestore seems to accept commands, but does nothing:

gaspard:~# ssh gaspard 'dd bs=1024k if=/dev/nst0' | xfsrestore -J -i - /restore
xfsrestore: using file dump (drive_simple) strategy
xfsrestore: version 2.2.16 (dump format 3.0) - Running single-threaded
xfsrestore: searching media for dump
xfsrestore: examining media file 0
xfsrestore: dump description: 
xfsrestore: hostname: gaspard
xfsrestore: mount point: /backup
xfsrestore: volume: /dev/hdb1
xfsrestore: session time: Fri Feb 13 09:48:34 2004
xfsrestore: level: 0
xfsrestore: session label: "gaspard:2004.02.13:0:/backup"
xfsrestore: media label: "sdlt320"
xfsrestore: file system id: 25b1018d-9731-4011-a7c1-e73e84a8d1dd
xfsrestore: session id: dfa73565-7c0c-4aaa-8c59-cc4efeb037f2
xfsrestore: media id: 17679139-35e5-4963-84a3-6679fba4c227
xfsrestore: searching media for directory dump
xfsrestore: reading directories
xfsrestore: 128651 directories and 1755499 entries processed
xfsrestore: directory post-processing

 ========================== subtree selection dialog ==========================

the following commands are available:
        pwd 
        ls [ <path> ]
        cd [ <path> ]
        add [ <path> ]
        delete [ <path> ]
        extract 
        quit 
        help 

 -> ls
      1766562304 samba/
      1502097925 dumpmgr/
      1902503387 tftpboot/
      1902503372 ftp/
      1632470340 www/
       559823869 intranet/
       427661074 pgsqla/
      1225615128 pgsql/
      1900119102 imap/
      1761413207 mail/
       143438905 local/
      1342177537 home/
       134217856 cvs/
             131 lost+found/

 -> cd home

=> nothing, happens, so I hit [RET]...

the following commands are available:
        pwd 
        ls [ <path> ]
        cd [ <path> ]
        add [ <path> ]
        delete [ <path> ]
        extract 
        quit 
        help 

 ->   (<== [RET] here)

the following commands are available:
        pwd 
        ls [ <path> ]
        cd [ <path> ]
        add [ <path> ]
        delete [ <path> ]
        extract 
        quit 
        help 

 -> 



Am I doing something wrong ?

Any help would be greatly appeciated.

Thanks.

-- 
Nicolas


<Prev in Thread] Current Thread [Next in Thread>