Thread View: news.software.nntp
11 messages
11 total messages
Started by Wong Siu To
Sat, 11 Sep 1993 04:39
Please help !! No inode left...
Author: Wong Siu To
Date: Sat, 11 Sep 1993 04:39
Date: Sat, 11 Sep 1993 04:39
24 lines
1404 bytes
1404 bytes
Hi there, I apologize if this's a FAQ. We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX 9.00. Our problem is that on there's no inode left on our 1.3Gb disk, which is used for storing news articles (/usr/spool/news), although the usage is only 5x%. I wonder how other News sites solve this problem, and if there's any workaround can be done on HP-UX. Any help will be much appreciated. Thanks a lot. Regards, -- S.T. Wong | BITNET: A866700@CUCSC.BITNET Computer Services Centre | Internet: st-wong@cuhk.hk The Chinese University of Hong Kong | Tel. No: (852) 609 8825 Shatin, N.T., Hong Kong | FAX No: (852) 603 5001
Re: Please help !! No inode left...
Author: Partl
Date: Mon, 13 Sep 1993 08:57
Date: Mon, 13 Sep 1993 08:57
19 lines
1863 bytes
1863 bytes
Wong Siu To (a866700@hp9000.csc.cuhk.hk) wrote: > We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX > 9.00. Our problem is that on there's no inode left on our 1.3Gb disk, > which is used for storing news articles (/usr/spool/news), although the > usage is only 5x%. usge means the sum of the data blocks, whereas inodes means the number (count) of files. Since Usenet News consist of a very large number of mostly very small files, you need an unusual high number of inodes. We set the number of inodes on our news partition to as high as 1 million for a 2 GigaByte disk with block size 1 kiloBytes (which means 1 inode for 2 disk blocks on the average). -- Dr. Hubert Partl Mail: partl@mail.boku.ac.at EDV-Zentrum, Universitaet fuer Bodenkultur Phone: (+43 1) 36 92 924 - 233 Nussdorfer Laende 11 Fax: (+43 1) 36 92 924 - 200 A-1190 Wien, Austria (-: Make laugh, not war! :-)
Re: Please help !! No inode left...
Author: Wolfgang Klimt
Date: Mon, 13 Sep 1993 09:20
Date: Mon, 13 Sep 1993 09:20
23 lines
2011 bytes
2011 bytes
In article <1993Sep11.043929.23864@hp9000.csc.cuhk.hk>, a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes: > Hi there, > > I apologize if this's a FAQ. > > We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX > 9.00. Our problem is that on there's no inode left on our 1.3Gb disk, > which is used for storing news articles (/usr/spool/news), although the > usage is only 5x%. Look at the man-pages for newfs or mkfs. They tell you that the option -i can be used to set the amount of inodes created when you make a new filesystem on a disk. Do so and change the number of bytes per inode to a value less than the one currently used. But notice that the number of inodes newfs creates will shorten your usable disk-space. Hope that helps -- Wolfgang -- -------------------------------------------------------------------------------- Wolfgang Klimt Addr.: Riemerlinger Strasse 21 klimt@informatik.tu-muenchen.de 85662 Hohenbrunn phone: +49 8102 / 1095 Germany
Re: Please help !! No inode left...
Author: Lanfranco Albani
Date: Mon, 13 Sep 1993 10:16
Date: Mon, 13 Sep 1993 10:16
27 lines
1825 bytes
1825 bytes
a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
>We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX
>9.00. Our problem is that on there's no inode left on our 1.3Gb disk,
>which is used for storing news articles (/usr/spool/news), although the
>usage is only 5x%.
This is the df -t output of the "News" disk (far from a full feed :-( ):
/disc2 (/dev/dsk/2s0 ): 66888 blocks 58611 i-nodes
303300 total blocks 71808 total i-nodes
236412 used blocks 13197 used i-nodes
0 percent minfree
As you see there are over 70000 i-nodes for 150Mb disk space.
This the default (2048 bytes / i-node) when you make a file-system.
Check your disk.
But I'm afraid you must back-up the disk and 'newfs' the disk...
Bye, Lanfranco
--
#include <std.disclaimer>
Lanfranco Albani - CAD.LAB s.p.a., v. Ronzani 7/29, Casalecchio, Italia
Email: albani@cadlab.sublink.org Phone: +39-51-6130360 Fax: +39-51-6130294
Re: Please help !! No inode left...
Author: Gerald Combs
Date: Mon, 13 Sep 1993 15:39
Date: Mon, 13 Sep 1993 15:39
24 lines
2012 bytes
2012 bytes
In article <1993Sep11.043929.23864@hp9000.csc.cuhk.hk>, a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes:
>We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX
>9.00. Our problem is that on there's no inode left on our 1.3Gb disk,
>which is used for storing news articles (/usr/spool/news), although the
>usage is only 5x%.
>
>I wonder how other News sites solve this problem, and if there's any
>workaround can be done on HP-UX.
We ran into this problem on a DECstation running Ultrix. We increased
the number of inodes by backing up our disk and running newfs with the
-i option, which specifies the number of bytes per inode. Smaller numbers
mean more inodes. We were less than pleased to find that Ultrix has a
hard limit on the number of inodes in a partition, so we had to split the
disk into partitions as well. I don't know if HP-UX has such a limit (or
if it even has the newfs command), but making more inodes shouldn't be
too difficult.
- Gerald Combs
_____ __o
----- -\<, gcombs@parsifal.umkc.edu
----- ( )/ ( )
Re: Please help !! No inode left...
Author: Jerry Aguirre
Date: Mon, 13 Sep 1993 21:26
Date: Mon, 13 Sep 1993 21:26
36 lines
2718 bytes
2718 bytes
In article <1993Sep11.043929.23864@hp9000.csc.cuhk.hk> a866700@hp9000.csc.cuhk.hk (Wong Siu To) writes: >We're maintaining News systems (Cnews+nntp) on a HP9000/845S running HP-UX >9.00. Our problem is that on there's no inode left on our 1.3Gb disk, Usually this happens on Sys V (old file system) partitions but it can happen on the BSD "fast" file system under certain conditions. The default number of bytes/inode is sufficient for a news file system. The problem is that there is an internal, hidden, limit on the max number of inodes in each cylinder group. If the disk has lots of sectors/surface and lots of surfaces you can wind up with a lot of sectors in each cylinder group. So the system might calculate 3000 inodes/group but be limited to some lower number (~1400?) by this table size limit. The value gets limited silently. Asking for more via the -i option is no help as the limit is applied after. The best trick is to reduce the cylinder group size. Typically it is 16 cylinders/group. Reducing that to 8 cylinders/group will effectively double the number of inodes permitted. Of course this needs to be done before you put files on the disk. Usually it is too late when people realize it has happened. I suggest a command like: newfs -b 4096 -c 8 -f 512 -i 2048 diskname Dumping a news partition is not too bad but the restore after recreating it can take days! Always verify the bytes/inode after creating a news file system. It can save you grief later. The typical usage is about 1 inode for each 3000 bytes so using 2048 gives a safety margin. If you have an extra disk you can save down time by doing a level 0u dump of the old news and restoring onto the new disk in the background. Then shut down, do a level 1, and restore that. The volume of data will be smaller and minimize the down time. Swap the disks and you are back on the air. Jerry
Re: Please help !! No inode left...
Author: Daniel S. Riley
Date: Tue, 14 Sep 1993 21:05
Date: Tue, 14 Sep 1993 21:05
35 lines
2741 bytes
2741 bytes
On 13 Sep 1993 15:39:58 GMT, gcombs@parsifal.umkc.edu (Gerald Combs) said:
gcombs> We ran into this problem on a DECstation running Ultrix. We
gcombs> increased the number of inodes by backing up our disk and
gcombs> running newfs with the -i option, which specifies the number
gcombs> of bytes per inode. Smaller numbers mean more inodes. We
gcombs> were less than pleased to find that Ultrix has a hard limit on
gcombs> the number of inodes in a partition, so we had to split the
gcombs> disk into partitions as well.
I don't believe Ultrix does have a hard limit on the number of inodes
in a partition. What it *does* have, in common with just about every
other file system derived from the BSD ufs prior to 4.3BSD-tahoe, is a
hard limit on the number of inodes per cylinder group:
root_lns598> grep MAXIPG /usr/include/fs/ufs/fs.h
* MAXIPG bounds the number of inodes per cylinder group, and
* N.B.: MAXIPG must be a multiple of INOPB(fs).
#define MAXIPG 2048 /* max number inodes/cyl group */
char cg_iused[MAXIPG/NBBY]; /* used inode map */
You can get around this by using the '-c' parameter to newfs to make
the cylinder groups smaller, increasing the number of cylinder groups
and hence increasing the maximum number of inodes on the partition.
I have a 1988 posting from Chris Torek which explains all this in more
gorey detail than you could ever want to know--perhaps it should be
reposted periodically, as this seems to be one of the most commonly
asked news-spool-management questions.
--
-Dan Riley Internet: dsr@lns598.tn.cornell.edu
-Wilson Lab, Cornell University HEPNET/SPAN: lns598::dsr (44630::dsr)
"Distance means nothing/To me." -Kate Bush
Re: Please help !! No inode left...
Author: Hugo Eide Gunnarsen
Date: Wed, 15 Sep 1993 23:57
Date: Wed, 15 Sep 1993 23:57
16 lines
1449 bytes
1449 bytes
You can use newfs with -i option.
-i number_of_bytes_per_inode
Specifies the density of inodes in the file
system. Default is to create an inode for each
2048 bytes of data space. If fewer inodes are
desired, a larger number should be used; to create
more inodes a smaller number should be given.
This is useful, if you have many small files (as news ...).
Remember that you will loos all files on the device, so remember to take a
backup first.
Hugo E. Gunnarsen
hugogu@slagg.met.sintef.no
Re: Please help !! No inode left...
Author: Ulf Kieber
Date: Fri, 17 Sep 1993 14:43
Date: Fri, 17 Sep 1993 14:43
43 lines
2564 bytes
2564 bytes
In article <DSR.93Sep14170534@lns596.lns.cornell.edu>,
dsr@lns598.tn.cornell.edu (Daniel S. Riley) writes:
>On 13 Sep 1993 15:39:58 GMT, gcombs@parsifal.umkc.edu (Gerald Combs)
>said:
>gcombs> We ran into this problem on a DECstation running Ultrix. We
>gcombs> increased the number of inodes by backing up our disk and
>gcombs> running newfs with the -i option, which specifies the number
>gcombs> of bytes per inode. Smaller numbers mean more inodes. We
>gcombs> were less than pleased to find that Ultrix has a hard limit on
>gcombs> the number of inodes in a partition, so we had to split the
>gcombs> disk into partitions as well.
>
>I don't believe Ultrix does have a hard limit on the number of inodes
>in a partition. What it *does* have, in common with just about every
>other file system derived from the BSD ufs prior to 4.3BSD-tahoe, is a
>hard limit on the number of inodes per cylinder group:
[...]
>You can get around this by using the '-c' parameter to newfs to make
>the cylinder groups smaller, increasing the number of cylinder groups
>and hence increasing the maximum number of inodes on the partition.
If you get a message:
cylinder groups must have a multiple of 16 cylinders
than you also need to decrease the blocksize. Use '-b' to do so. And
while you are at it: decrease the frag size as well.
For my news spool partition I did:
newfs -n -c 8 -b 4096 -f 512 /dev/rrz3c rz58
(Didn't need '-i' at all.)
--
Ulf Kieber
<{uk1, news}@irz.inf.tu-dresden.de>;
<kieber@sax.sax.de>; <ulf@maria.wustl.edu>
Don't expect me to be a breeder, and I won't assume you're a fag.
Re: Please help !! No inode left...
Author: Kirke Johnson
Date: Fri, 17 Sep 1993 23:20
Date: Fri, 17 Sep 1993 23:20
18 lines
1605 bytes
1605 bytes
We are fighting with this same problem on an HP-UX host. I am posting this via a guest account at PSU as we are down to too few inodes to do anything useful on our news host machine! Pending a reload of the drive with more inodes, we are trying to find a stable situation by reducing the expire retention days. (Running inn 1.4) our news.daily run appears to purge *large* numbers of postings, but the number of available inodes (per bdf -i) only increases slightly. It looks as though we are missing something (we are a new unix shop) that we need to do to "reclaim" the newly unused disk space and inodes, making them usable for receiving new news. Can someone point me toward what we are doing wrong?? Kirke Johnson Portland Community College <kjohnson@zeus.cc.pcc.edu>
Re: Please help !! No inode left...
Author: Karl Denninger
Date: Sat, 18 Sep 1993 05:35
Date: Sat, 18 Sep 1993 05:35
36 lines
2685 bytes
2685 bytes
In article <27dgnb$gev@ursula.ee.pdx.edu>, Kirke Johnson <kirke@ursula.ee.pdx.edu> wrote: >We are fighting with this same problem on an HP-UX host. I am posting >this via a guest account at PSU as we are down to too few inodes to do >anything useful on our news host machine! > >Pending a reload of the drive with more inodes, we are trying to find a >stable situation by reducing the expire retention days. (Running inn >1.4) our news.daily run appears to purge *large* numbers of postings, but >the number of available inodes (per bdf -i) only increases slightly. > >It looks as though we are missing something (we are a new unix shop) that >we need to do to "reclaim" the newly unused disk space and inodes, making >them usable for receiving new news. Can someone point me toward what we >are doing wrong?? > >Kirke Johnson Portland Community College <kjohnson@zeus.cc.pcc.edu> Yes. Yell at HP. This sounds an awful lot like the infamous S5 INODE bug which used to plague SVR3 and SVR2 machines. It is a nasty one. The inodes aren't really "gone", they're just not visible to the system due to a problem in the way the inode cache is scanned. It is fixable if you have source, are good with a binary patcher (such as adb and you have it) or if you scream loudly enough at the vendor. The last is the shortest distance between two points. To test this, when you are out of inodes unmount the disk and then remount it. If you then see the inodes return you have the bug. Call and complain -- loudly. This should have been fixed a couple of years ago. -- Karl Denninger (karl@genesis.MCS.COM) | You can never please everyone except Modem Access: [+1 312 248-0900] | by bankrupting yourself. Voice & FAX: [+1 312 248-8649] | Internet in Chicago; a MCSNET first!
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads