From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,69af3761d2cbf83f X-Google-Attributes: gidfee84,public From: markvo@cda.mrs.umn.edu (Mark Van Overbeke) Subject: Re: advfs "no space" problem Date: 1995/04/03 Message-ID: #1/1 X-Deja-AN: 100804617 references: <3kmrs9$54t@westnet.westnet.com> <3lcq1d$cq9@sandbox.atcon.com> organization: University of Minnesota - Morris newsgroups: comp.unix.osf.osf1 In article <3lcq1d$cq9@sandbox.atcon.com> shawn@warp.atcon.com (Shawn Preston) writes: >kurt@westnet.westnet.com (Kurt Hockenbury) wrote: > >>I've got a news spool on an advfs, turning two 1-gig drives into a 2 gig >>area for news articles. Problem is, I can't seem to take full advantage >>of it! > >>With the disk only partly full, I'm getting "No space left on device" errors. >>df -i reports the drive at only 74% capacity, and 16% Iused. Also the "used" >>plus "available" blocks don't add up anywhere near the "total": > >Join the club! I had the EXACT problem as you. I had a partition for >just the news spool and got the "No sp[ace left on device". I was >between 70-80% disk capacity and was using only 1% of the inodes on >that partition. My only recourse was to set that partition back to >UFS. > >If anyone solves this problem I would love the hear about it as it was >very annoying and frustrating. > > >I see someone ellse posted on here asking if there were any dangers in >using ADVFS with news (I have INN) . My advice is DON'T until someone >fixs the problem. The headaches I went through I don't wish on anyone. > >DANO > I have not been bitten by this problem yet. News server is still small and for testing, but I expect to get bigger. On page 4-27 in the DEC OSF/1 Release Notes, in section 4.5.2.8 Incorrect Disk Space Error Messages we have: "On systems that consist primarily of small files (less than 8KB) and regularly create and delete very large numbers (many hundreds) of these small files, AdvFS can run out of metedata space (inode tables), causing erroneous 'out of disk space' errors. Examples of such systems are Internet News servers and mail servers. To avoid this problem, preallocate the metedata immediately after the fileset is created. This can be done by writing a script that creates and then deletes the estimated number of files that are expected to exist in the AdvFS domain (the files created by the script should be empty). For example, the following ksh script preallocates the metedata for 1000 files: integer f=1000 while (( f > 0 )) do touch prealloc_$f f=f-1 done rm prealloc_* This ends what is there. In the OSF/1 V3.2 release notes, on pages 4-16 and 4-17, in section 4.4.2.10 Increase metadata extent size for large number of files, we can find (more than what I have included here): "For this release, a new flag (-x), has been added to the mkfdmn command that allows you to increase the size of the metadata table extents. The syntax for this flag is as follows: mkfdmn -x number_pages device domain_name You can increase the number of pages to any value. The following are guidelines for the number of pages to allocate: o For 50,000 files (of fewer) use the default, 128. o For 50,000 to 100,000 files use -x 256. o For 100,000 to 200,000 files use -x 512. o For 200,000 files (or more) use -x 1024. Table 4-1 provides the approximate number of pages that your metadata will occupy given the number of files. The progression is linear. Table 4-1 Number of Files Metadata size (8192 byte pages) 50,000 3600 100,000 7200 200,000 14400 400,000 28800 This ends what is in the 3.2 release notes that I am putting here. I have kept my server as a test since I had heard/read about this problem. I had also heard/read about the "fix" in 3.2. I am going to update to V3.2 before I make my server live and move to the 2 GB disk instead of a 300 MB or so partition. Hope this helps someone else out there. Mark -- Mark Van Overbeke Systems Software Programmer Computing Services University of Minnesota, Morris INTERNET: Markvo@caa.mrs.umn.edu (VMS) Morris, MN 56267 1-612-589-6378 markvo@cda.mrs.umn.edu (Ultrix) -- Success is the progressive realization of your worthwhile goal or dream!