Tar Problem??

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Jun 28 01:16:29 PDT 2003

On Sat, Jun 28, 2003 at 03:43:25AM -0400, Gerard Samuel wrote:
> Gerard Samuel wrote:
> >Im uncompressing a file via tar, and Im getting this error ->
> >/files: create/symlink failed, no inodes free
> >tar: mpn2/themes/css/mail/mail.css: Cannot open: No such file or 
> >directory
> >tar: Error exit delayed from previous errors
> >
> >Is this a "tar" or filesystem error?? 

The filesystem you're writing to doesn't have sufficient inodes
available to create all of the files from the tarball.  Effectively
you need an inode for each file you create. Inodes are created at the
time the filesystem is generated: the newfs(8) command has an option
to set the number of bytes-per-inode: generally the defaults are fine,
but the bytes-per-inode setting should be set to no more than the
expected average size of files on the partition, and preferably rather
less than that.  Running out of inodes before you run out of disk
space is embarrassing.  Worse, it requires backing up the whole
partition, rebuilding the filesystem and then recovering the data from
backup in order to fix.
> I forgot to include df output ->
> hivemind# df -H
> Filesystem Size Used Avail Capacity Mounted on
> /dev/da0s1a 132M 46M 76M 38% /
> /dev/da0s1g 2.7G 917M 1.6G 37% /usr
> /dev/da0s1e 103M 15M 80M 16% /var
> /dev/da0s1f 52M 387K 47M 1% /tmp
> /dev/da0s1h 320M 222M 73M 75% /files
> /dev/da0s1d 415M 77M 305M 20% /db
> /dev/ccd0c 54G 11G 39G 21% /storage
> procfs 4.1K 4.1K 0B 100% /proc


  % df -iH

to add the information about inode usage to the df output.  As a rule
of thumb, the %iused value should always be less than the percentage
capacity used.



Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030628/aa23aa1c/attachment.bin

More information about the freebsd-questions mailing list