Received: with ECARTIS (v1.0.0; list linux-xfs); Sun, 04 Apr 2004 20:22:08 -0700 (PDT) Received: from omx1.americas.sgi.com (cfcafw.sgi.com [198.149.23.1]) by oss.sgi.com (8.12.10/8.12.9) with SMTP id i353M5KO014272 for ; Sun, 4 Apr 2004 20:22:05 -0700 Received: from larry.melbourne.sgi.com (larry.melbourne.sgi.com [134.14.52.130]) by omx1.americas.sgi.com (8.12.10/8.12.9/linux-outbound_gateway-1.1) with SMTP id i3537bVC020603 for ; Sun, 4 Apr 2004 22:07:38 -0500 Received: from melbourne.sgi.com (omen.melbourne.sgi.com [134.14.55.139]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id NAA01223; Mon, 5 Apr 2004 13:07:33 +1000 Date: Mon, 5 Apr 2004 13:07:33 +1000 From: Ivan Rayner To: "Jacky Kim" Cc: "linux-xfs" Subject: Re: xfsdump media file size Message-Id: <20040405130733.0db6985d.ivanr@sgi.com> In-Reply-To: <200404040646.i346kpkt080088@mx2.sgi.com> References: <200404040646.i346kpkt080088@mx2.sgi.com> Organization: SGI X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; mips-sgi-irix6.5) Mime-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-archive-position: 2742 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: ivanr@sgi.com Precedence: bulk X-list: linux-xfs Content-Length: 1128 Lines: 34 On Sun, 4 Apr 2004 12:38:43 +0800, Jacky Kim wrote: > >> Because Linux 2.4 kernel has 2 GB file size limit, I want to backup some data > >> to severial regular files with limited size. > >> > >> I find that the '-d' option can specify the size of dump media files, so I try > >> the follow command: > >> > >> # xfsdump -l 0 -d 100 -f /backup/data -s data /home > >> > >> But it doesn't work, because the size of the media file(/backup/data) is much > >> larger then 100 megabytes. > >> > >> What can I do? > > > >Basically, you can't do that. Linux xfsdump only supports writing to > >multiple media files if it is writing to tape. You could probably use the > >split utility to do what you want. Eg. > > > > xfsdump -f - ... | split -b 100m > > > >And then you'll have to play a similar trick (probably using cat) to join > >them together for xfsrestore. > > But there is still the same problem: the totle size will exceed 2GB limit when > I join the splits together. You don't need to join them back together. You should be able to do something like: cat file1 file2 file3 | xfsrestore -f - ... Ivan