From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 14744 invoked from network); 18 Aug 1998 07:57:42 -0000 Received: from caffeine.ix.net.nz (203.97.100.28) by mail2.redhat.com with SMTP; 18 Aug 1998 07:57:42 -0000 Received: (from chris@localhost) by caffeine.ix.net.nz (8.8.7/8.8.3) id TAA25288 for axp-list@redhat.com; Tue, 18 Aug 1998 19:57:32 +1200 Message-ID: <19980818195732.B25094@caffeine.ix.net.nz> Date: Tue, 18 Aug 1998 19:57:32 +1200 From: Chris Wedgwood To: axp-list@redhat.com Subject: Re: TAR on large file systems (gt 2GB) References: <199808180643.AAA26680@ellpspace.math.ualberta.ca> <35D92F9A.1C54DD13@paralleldata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=3MwIy2ne0vdjdPXF X-Mailer: Mutt 0.93.1i In-Reply-To: <35D92F9A.1C54DD13@paralleldata.com>; from Wes Bauske on Tue, Aug 18, 1998 at 07:39:06AM +0000 X-No-Archive: Yes --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii On Tue, Aug 18, 1998 at 07:39:06AM +0000, Wes Bauske wrote: > I'm running 2.1.115, one patch for the X console switching. > > One other possible restriction is I'm NFS mounting > the file system from an Intel Linux box so NFS could > be unhappy about things but it looks good from mount/df. > > Filesystem 1024-blocks Used Available Capacity Mounted on > /dev/hda2 497699 42908 429087 9% / > /dev/hda4 1243751 700537 478954 59% /usr > /dev/hda1 7972 764 7208 10% /dos/c > /dev/sda1 8573747 6051207 2077943 74% /z/data5 > wsb3:/z/home 5073462 2130201 2680600 44% /z/home > wsb3:/z/data3 15864375 2996502 12042197 20% /z/data3 > pds04:/z/pds04a 33554432 29215344 4339088 87% /z/pds04a > pds04:/z/pds04 8601600 4896368 3705232 57% /z/pds04 > wsb:/z/data 10999529 3975501 6452918 38% /z/data Which partition are you trying to write the tar file to? If that parition is NFS mounted to the Intel, it won't work, but on a local file system it shouldn't be a problem (assuming tar isn't broken). The attached program creates a 3GB sparse file on a local filesystem (I just made this quick test now and don't have enough disk space free for a real file). If it doesn't work, please send me the output of strace over it or echo $? after it terminates. -cw --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Description: test program Content-Disposition: attachment; filename="big-file-test.c" #include #include #include #include #define GB (1024ul*1024ul*1024ul) #define POS (3*GB) int main() { int fd; char zero = 0; if((fd = open("big-file.test",O_RDWR|O_CREAT)) == -1) return 1; if((lseek(fd,POS,SEEK_SET) == -1)) return 2; if((write(fd,&zero,1) == -1)) return 3; close(fd); return 0; } --3MwIy2ne0vdjdPXF--