xfs
[Top] [All Lists]

Re: xfsdump and tar on same tape

To: Xavier Poirier <xpoirier@xxxxxxxxxxxxx>
Subject: Re: xfsdump and tar on same tape
From: Bill Kendall <wkendall@xxxxxxx>
Date: Tue, 27 Sep 2005 10:48:11 -0500
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <1127745384.4338076895826@hermesadm.chb.fr>
References: <1127738813.4337edbd27a25@hermesadm.chb.fr> <4337FB0E.8090302@sgi.com> <1127745384.4338076895826@hermesadm.chb.fr>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Debian Thunderbird 1.0.6 (X11/20050802)
It appears you did the "mt fsf" after the dump.
I meant for that to be done only when you were
doing a restore, and to do so after the xfsrestore
completed. The following sequence works for me:

You might want to try using variable block mode
on your tape device, if it supports it:

# mt -f /dev/nst0 setblk 0

Then do your backups:

# mt -f /dev/nst0 rewind
# xfsdump -f /dev/nst0 /home
# tar cvf /dev/nst0 /boot

And to restore:

# mt -f /dev/nst0 rewind
# xfsrestore -f /dev/nst0 /somepath
# mt -f /dev/nst0 fsf 1
# tar xvf /dev/nst0

Bill

On 09/26/05 09:36, Xavier Poirier wrote:
En réponse à Bill Kendall <wkendall@xxxxxxx>:

not working , see also :

(next to xfsdump -f /dev/nst0 /home)

mt -f /dev/nst0 fsf 1
/dev/nst0: Input/output error

[root@intranet /]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=44, block number=0, partition=0.
Tape block size 1048576 bytes. Density code 0x26 (DDS-4 or QIC-4GB).
Soft error count since last status=0
General status bits on (89010000):
EOF EOD ONLINE IM_REP_EN


After xfsrestore completes, issue "mt -f /dev/nstX fsf 1"
to seek to the next file and then run tar.

Bill

On 09/26/05 07:46, Xavier Poirier wrote:

hi,

I want to make a backup of my two filesystems witch are:

/ (EXT2)
/home (XFS)

I want to do an XFSDUMP of /home with no-rewind capabilities

of the

tape and add next a TAR of / to the end.
The problem is that I cannot read TAR archive of the tape

(xfsdump

read without problem), I don't know the number session to go

on the tape.

Any idea?

Xavier




--------------------------------------------------------------------

Ce courriel est envoyé au travers de l' interface IMP:

ch-bourg01.fr

Ce message a été passé automatiquement à l' antivirus This email have been sent through Imap Mail Program:

ch-bourg01.fr

This message have been scanned with an antivirus scanner






***** Xavier Poirier *****
*** Technicien Informatique ***
* Centre Hospitalier de Bourg en Bresse *
* Tel : 04 74 45 41 17 * *** eFax : 04 74 23 04 53 ***
***** mailto:xpoirier@xxxxxxxxxxxxx *****


--------------------------------------------------------------------
Ce courriel est envoyé au travers de l' interface IMP: ch-bourg01.fr
Ce message a été passé automatiquement à l' antivirus This email have been sent through Imap Mail Program: ch-bourg01.fr
This message have been scanned with an antivirus scanner





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