* Root File System Full - Digital Unix
@ 2003-02-03 16:06 Calum MacIver
2003-02-03 17:29 ` Adam Price
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Calum MacIver @ 2003-02-03 16:06 UTC (permalink / raw)
I am responsible (the word administrator would be too strong) for an
Oracle 8i database which sits on a Alpha Server runnning Digital Unix
(4D - patchset 6 I believe).
The root file system is 99% full and as a consequence we keep getting
write failed :/ file sytem full errors. This happened about 6 months
ago so I archived (and linked) off any (apparantly) non-essential
files to another file system. However, trying to do this again is
proving more difficult as most of the files/directories appear to be
essential to the running of the system (/dev. /etc and so on) - I am
loathe to move these as I'm not sure what effect this could have on
the system. I have no core files here to remove, and no printing is
done from this machine (is is entirely used for Oracle), so I cannot
find any large files like this to remove.
A df - k produces the following:
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/rz0a 259290 230311 3050 99% /
/proc 0 0 0 100% /proc
/dev/rz0g 1500245 619277 730943 46% /usr
/dev/rz1c 4061956 3359299 296461 92% /u1
/dev/rz2c 4061956 2512387 1143373 69% /u2
/dev/rz3c 4061956 3282819 372941 90% /u3
/dev/rz8c 8619292 5638043 2119319 73% /u4
/dev/rz9b 8221812 6294563 1105067 86% /u5
Whereas an ls -l (from /) produces:
#.mrg...login .proto...cshrc etc sys
.Xauthority .proto...login floppy tcb
.cshrc .proto...profile home tmp
.dt .proto..DXsession lib u1
.dtprofile .sh_history mdec u2
.login .sysman mnt u3
.netscape DXkeyboard opt u4
.new...cshrc DXsession osf_boot u5
.new...login DXshutdown proc usr
.new...profile bin sbin var
.new..DXsession cdrom shlib vmunix
.profile dev subsys
Can anybody suggest any files that could be safely removed/linked off
to another file system - or alternatively, a way of increasing the
space available to /?
Thankyou, in advance, to anyone that can help.
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: Root File System Full - Digital Unix 2003-02-03 16:06 Root File System Full - Digital Unix Calum MacIver @ 2003-02-03 17:29 ` Adam Price 2003-02-04 10:23 ` Calum MacIver 2003-02-03 17:39 ` Kevin Handy ` (2 subsequent siblings) 3 siblings, 1 reply; 12+ messages in thread From: Adam Price @ 2003-02-03 17:29 UTC (permalink / raw) In news:b87509d1.0302030806.55a034c6@posting.google.com, Calum MacIver <calum.maciver@caldkirk-ha.northy.nhs.uk> typed: > I am responsible (the word administrator would be too strong) for an > Oracle 8i database which sits on a Alpha Server runnning Digital Unix > (4D - patchset 6 I believe). > The root file system is 99% full and as a consequence we keep getting > write failed :/ file sytem full errors. This happened about 6 months > ago so I archived (and linked) off any (apparantly) non-essential > files to another file system. However, trying to do this again is > proving more difficult as most of the files/directories appear to be > essential to the running of the system (/dev. /etc and so on) - I am > loathe to move these as I'm not sure what effect this could have on > the system. I have no core files here to remove, and no printing is > done from this machine (is is entirely used for Oracle), so I cannot > find any large files like this to remove. > A df - k produces the following: > > Filesystem 1024-blocks Used Available Capacity Mounted on > /dev/rz0a 259290 230311 3050 99% / > /proc 0 0 0 100% /proc > /dev/rz0g 1500245 619277 730943 46% /usr > /dev/rz1c 4061956 3359299 296461 92% /u1 > /dev/rz2c 4061956 2512387 1143373 69% /u2 > /dev/rz3c 4061956 3282819 372941 90% /u3 > /dev/rz8c 8619292 5638043 2119319 73% /u4 > /dev/rz9b 8221812 6294563 1105067 86% /u5 > > Whereas an ls -l (from /) produces: SNIP output of ls, not the output of ls -l. > Can anybody suggest any files that could be safely removed/linked off > to another file system - or alternatively, a way of increasing the > space available to /? Look in /dev for things which are files not devices, some examples are /dev/nrmt0h being a file or /dev/nul existing and some script using it. Look in /bin and /sbin for core dumps, look in /tmp for big files.. To improve things further, move /home onto its own disk. Hope this helps Adam ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 17:29 ` Adam Price @ 2003-02-04 10:23 ` Calum MacIver 2003-02-04 10:35 ` Erkki Aalto ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Calum MacIver @ 2003-02-04 10:23 UTC (permalink / raw) > > Look in /dev for things which are files not devices, some examples > are /dev/nrmt0h being a file or /dev/nul existing and some script using > it. > Look in /bin and /sbin for core dumps, look in /tmp for big files.. > Cheers. There is nothing of size in the tmp directory, and the var is under the /usr file system, but it looks likely that the problem is in the /dev directory. I found the following files in there: # pwd /dev # ls -l -u n* crw-rw-rw- 1 root system 9,5127 Sep 4 2000 nrmt0a crw-rw-rw- 1 root system 9,5123 Sep 4 2000 nrmt0h crw-rw-rw- 1 root system 9,5121 Sep 4 2000 nrmt0l crw-rw-rw- 1 root system 9,5125 Sep 4 2000 nrmt0m -rw-r--r-- 1 root system 186654720 Feb 4 02:03 nrmtoh crw-rw-rw- 1 root system 2, 2 Jan 27 15:30 null # And, as you said, the nrmtoh is there and appears to be a file (by the way, what does the c mean in the crw-rw-rw- that is there for the other files. The access time matches the timing of the backup, so I am wondering if this could be related to the backup. (we tar to tape by the way). My plan would be to move this file to another u partition and place a link to it in the /dev directory. Would this make sense or is it too risky? > To improve things further, move /home onto its own disk. > Hope this helps > Adam Yep, you are right, this certainly needs to be dealt with in the long term as I'm sure it will come up again. However, persuading the bosses to spend money on consultancy/training has never been easy around here. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-04 10:23 ` Calum MacIver @ 2003-02-04 10:35 ` Erkki Aalto 2003-02-04 19:21 ` Adam Price 2003-02-07 18:03 ` Kevin Handy 2 siblings, 0 replies; 12+ messages in thread From: Erkki Aalto @ 2003-02-04 10:35 UTC (permalink / raw) Calum MacIver <calum.maciver@caldkirk-ha.northy.nhs.uk> wrote: : # ls -l -u n* : crw-rw-rw- 1 root system 9,5127 Sep 4 2000 nrmt0a : crw-rw-rw- 1 root system 9,5123 Sep 4 2000 nrmt0h : crw-rw-rw- 1 root system 9,5121 Sep 4 2000 nrmt0l : crw-rw-rw- 1 root system 9,5125 Sep 4 2000 nrmt0m : -rw-r--r-- 1 root system 186654720 Feb 4 02:03 nrmtoh : crw-rw-rw- 1 root system 2, 2 Jan 27 15:30 null : # : And, as you said, the nrmtoh is there and appears to be a file (by the : way, what does the c mean in the crw-rw-rw- that is there for the : other files. The access time matches the timing of the backup, so I am : wondering if this could be related to the backup. (we tar to tape by : the way). My plan would be to move this file to another u partition : and place a link to it in the /dev directory. Would this make sense or : is it too risky? Look closer, it is nrmtoh, not nrmt0h. I bet someone has made a typo and created a huge regular file on the disk instead of a backup archive on a tape. -- Erkki '�rkki' Aalto "Life is divided up into Internet: Erkki.Aalto@Helsinki.FI the horrible and the miserable" Snail: P.O. Box 64 FIN-00014 University of Helsinki, Finland ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-04 10:23 ` Calum MacIver 2003-02-04 10:35 ` Erkki Aalto @ 2003-02-04 19:21 ` Adam Price 2003-02-07 18:03 ` Kevin Handy 2 siblings, 0 replies; 12+ messages in thread From: Adam Price @ 2003-02-04 19:21 UTC (permalink / raw) In news:b87509d1.0302040223.780d8dad@posting.google.com, Calum MacIver <calum.maciver@caldkirk-ha.northy.nhs.uk> typed: >> Look in /dev for things which are files not devices, some examples >> are /dev/nrmt0h being a file or /dev/nul existing and some script >> using it. >> Look in /bin and /sbin for core dumps, look in /tmp for big files.. >> > > Cheers. > There is nothing of size in the tmp directory, and the var is under > the /usr file system, but it looks likely that the problem is in the > /dev directory. > I found the following files in there: > # pwd > /dev > # ls -l -u n* > crw-rw-rw- 1 root system 9,5127 Sep 4 2000 nrmt0a > crw-rw-rw- 1 root system 9,5123 Sep 4 2000 nrmt0h > crw-rw-rw- 1 root system 9,5121 Sep 4 2000 nrmt0l > crw-rw-rw- 1 root system 9,5125 Sep 4 2000 nrmt0m > -rw-r--r-- 1 root system 186654720 Feb 4 02:03 nrmtoh > crw-rw-rw- 1 root system 2, 2 Jan 27 15:30 null > # > And, as you said, the nrmtoh is there and appears to be a file (by the > way, what does the c mean in the crw-rw-rw- that is there for the > other files. The access time matches the timing of the backup, so I am > wondering if this could be related to the backup. (we tar to tape by > the way). My plan would be to move this file to another u partition > and place a link to it in the /dev directory. Would this make sense or > is it too risky? Use the file command on /dev/nrmtoh you will probably find it is a tar file... I would suspect that you are not transfering to tape at all... but rather taring the data into /dev/nrmtoh when you should be sending it to /dev/nrmt0h.... Check your backup scripts carefully for typos.. If you find that you have been making this mistake, then the current tapes are no-good (You havent put any data on them). You can transfer the last good backup to tape using the dd command. Then correct the backup script and all should be well. As for the c at the begining of the ls -l output it shows a 'character special file' which is a pseudo file used to represent a device driver to the kernel. Adam PS Once you have the data on tape you can remove /dev/rmtoh file. PPS Be sure you can see the difference between 0 (Zero) and o (Oh). ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-04 10:23 ` Calum MacIver 2003-02-04 10:35 ` Erkki Aalto 2003-02-04 19:21 ` Adam Price @ 2003-02-07 18:03 ` Kevin Handy 2 siblings, 0 replies; 12+ messages in thread From: Kevin Handy @ 2003-02-07 18:03 UTC (permalink / raw) Calum MacIver wrote: >>Look in /dev for things which are files not devices, some examples >>are /dev/nrmt0h being a file or /dev/nul existing and some script using >>it. >>Look in /bin and /sbin for core dumps, look in /tmp for big files.. >> > > > Cheers. > There is nothing of size in the tmp directory, and the var is under > the /usr file system, but it looks likely that the problem is in the > /dev directory. > I found the following files in there: > # pwd > /dev > # ls -l -u n* > crw-rw-rw- 1 root system 9,5127 Sep 4 2000 nrmt0a > crw-rw-rw- 1 root system 9,5123 Sep 4 2000 nrmt0h > crw-rw-rw- 1 root system 9,5121 Sep 4 2000 nrmt0l > crw-rw-rw- 1 root system 9,5125 Sep 4 2000 nrmt0m > -rw-r--r-- 1 root system 186654720 Feb 4 02:03 nrmtoh > crw-rw-rw- 1 root system 2, 2 Jan 27 15:30 null > # > And, as you said, the nrmtoh is there and appears to be a file (by the > way, what does the c mean in the crw-rw-rw- that is there for the > other files. The access time matches the timing of the backup, so I am Your backup script is WRONG! There is a typo in it specifying an 'o' (Oh) instead of a '0' (zero), and nothing is being written to tape. The 186Mb file in the device directory is the backup that should have gone to the tape, but missed. I'd bet that all your backup tapes are blank (ouch!). This is NOT good! I'd check the backup command file, and fix the problem there, and immediately run the backup script. You should be able to see the tape drive doing something while the script is running (blinking lights, whizzing noises, etc.) Once you fix the backup script problem, you will want to delete this backup file (freeing up 186Mb of disk space), maybe copying it to a tape first if you need the backup. > wondering if this could be related to the backup. (we tar to tape by > the way). My plan would be to move this file to another u partition > and place a link to it in the /dev directory. Would this make sense or > is it too risky? > > >>To improve things further, move /home onto its own disk. >>Hope this helps >>Adam > > > Yep, you are right, this certainly needs to be dealt with in the long > term as I'm sure it will come up again. However, persuading the bosses > to spend money on consultancy/training has never been easy around > here. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 16:06 Root File System Full - Digital Unix Calum MacIver 2003-02-03 17:29 ` Adam Price @ 2003-02-03 17:39 ` Kevin Handy 2003-02-03 17:37 ` brad 2003-02-04 3:16 ` Richard Tomkins 2003-02-04 19:18 ` Dr Ivan D. Reid 3 siblings, 1 reply; 12+ messages in thread From: Kevin Handy @ 2003-02-03 17:39 UTC (permalink / raw) Calum MacIver wrote: > I am responsible (the word administrator would be too strong) for an > Oracle 8i database which sits on a Alpha Server runnning Digital Unix > (4D - patchset 6 I believe). > The root file system is 99% full and as a consequence we keep getting > write failed :/ file sytem full errors. This happened about 6 months > ago so I archived (and linked) off any (apparantly) non-essential > files to another file system. However, trying to do this again is > proving more difficult as most of the files/directories appear to be > essential to the running of the system (/dev. /etc and so on) - I am > loathe to move these as I'm not sure what effect this could have on > the system. I have no core files here to remove, and no printing is > done from this machine (is is entirely used for Oracle), so I cannot > find any large files like this to remove. > A df - k produces the following: > > Filesystem 1024-blocks Used Available Capacity Mounted on > /dev/rz0a 259290 230311 3050 99% / > /proc 0 0 0 100% /proc > /dev/rz0g 1500245 619277 730943 46% /usr > /dev/rz1c 4061956 3359299 296461 92% /u1 > /dev/rz2c 4061956 2512387 1143373 69% /u2 > /dev/rz3c 4061956 3282819 372941 90% /u3 > /dev/rz8c 8619292 5638043 2119319 73% /u4 > /dev/rz9b 8221812 6294563 1105067 86% /u5 > > Whereas an ls -l (from /) produces: > > #.mrg...login .proto...cshrc etc sys > .Xauthority .proto...login floppy tcb > .cshrc .proto...profile home tmp > .dt .proto..DXsession lib u1 > .dtprofile .sh_history mdec u2 > .login .sysman mnt u3 > .netscape DXkeyboard opt u4 > .new...cshrc DXsession osf_boot u5 > .new...login DXshutdown proc usr > .new...profile bin sbin var > .new..DXsession cdrom shlib vmunix > .profile dev subsys > > Can anybody suggest any files that could be safely removed/linked off > to another file system - or alternatively, a way of increasing the > space available to /? > Thankyou, in advance, to anyone that can help. Look under /var/log, and see if that is what is using up all of your root space. If so, you might want to look into a program called 'logrotate' and see if you can make use of it, or something similiar. Also look at /tmp. Files should not be perminately allocated there, so see if anything there is old. Something must be consuming space, otherwise it wouldn't be disappearing. You should determine where it is going, and probably make changes to the system based on that. Otherwise you will be continually fighting the same problem over and over. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 17:39 ` Kevin Handy @ 2003-02-03 17:37 ` brad 2003-02-03 18:06 ` Adam Price 0 siblings, 1 reply; 12+ messages in thread From: brad @ 2003-02-03 17:37 UTC (permalink / raw) In article <3E3EA93B.40603@srv.net>, Kevin Handy <kth@srv.net> writes: >Calum MacIver wrote: <snip> >> Can anybody suggest any files that could be safely removed/linked off >> to another file system - or alternatively, a way of increasing the >> space available to /? >> Thankyou, in advance, to anyone that can help. > >Look under /var/log, and see if that is what is using up all >of your root space. If so, you might want to look into a >program called 'logrotate' and see if you can make use of >it, or something similiar. > >Also look at /tmp. Files should not be perminately allocated >there, so see if anything there is old. > Would it also be possible to link /var and /tmp under /usr, or one of the other /u* partitions? Assuming that it could be done, it would provide a longer-term solution to the problem. >Something must be consuming space, otherwise it wouldn't be >disappearing. You should determine where it is going, and >probably make changes to the system based on that. Otherwise >you will be continually fighting the same problem over and >over. > > _________________________________________________________________ Bradford J. Hamilton "All opinions are my own" bMradAhamiPltSon@atMtAbi.cPoSm "Lose the MAPS" ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 17:37 ` brad @ 2003-02-03 18:06 ` Adam Price 0 siblings, 0 replies; 12+ messages in thread From: Adam Price @ 2003-02-03 18:06 UTC (permalink / raw) In news:aNx%9.60213$G83.1241@sccrnsc04, Bradford J. Hamilton <brad@.homeportal.2wire.net> typed: > In article <3E3EA93B.40603@srv.net>, Kevin Handy <kth@srv.net> writes: >> Calum MacIver wrote: > <snip> >>> Can anybody suggest any files that could be safely removed/linked >>> off >>> to another file system - or alternatively, a way of increasing the >>> space available to /? >>> Thankyou, in advance, to anyone that can help. >> >> Look under /var/log, and see if that is what is using up all >> of your root space. If so, you might want to look into a >> program called 'logrotate' and see if you can make use of >> it, or something similiar. >> >> Also look at /tmp. Files should not be perminately allocated >> there, so see if anything there is old. >> > > Would it also be possible to link /var and /tmp under /usr, or one of > the other /u* partitions? Assuming that it could be done, it would > provide a longer-term solution to the problem. In tru64 /var is by default either a link to /usr/var or on it's own filesystem, I suspect in this case that it is part of /usr and so not a part of the problem. > >> Something must be consuming space, otherwise it wouldn't be >> disappearing. You should determine where it is going, and >> probably make changes to the system based on that. Otherwise >> you will be continually fighting the same problem over and >> over. This is extremely good advice... Adam ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 16:06 Root File System Full - Digital Unix Calum MacIver 2003-02-03 17:29 ` Adam Price 2003-02-03 17:39 ` Kevin Handy @ 2003-02-04 3:16 ` Richard Tomkins 2003-02-04 19:18 ` Dr Ivan D. Reid 3 siblings, 0 replies; 12+ messages in thread From: Richard Tomkins @ 2003-02-04 3:16 UTC (permalink / raw) Actually, it is time to either get trained or hire a consultant if you only want a interim fix. It's quite simple, someone set this up and is now gone, your database has out grown the disk. You could hire a consultant to move the entire database to something you could handle more easily or possibly cheaper, It's your call. If this is critical to your firm, then your boss should be making some smart choices right about now. rtt ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-03 16:06 Root File System Full - Digital Unix Calum MacIver ` (2 preceding siblings ...) 2003-02-04 3:16 ` Richard Tomkins @ 2003-02-04 19:18 ` Dr Ivan D. Reid 2003-02-05 14:36 ` Calum MacIver 3 siblings, 1 reply; 12+ messages in thread From: Dr Ivan D. Reid @ 2003-02-04 19:18 UTC (permalink / raw) On 3 Feb 2003 08:06:42, Calum MacIver <calum.maciver@caldkirk-ha.northy.nhs.uk> wrote in <b87509d1.0302030806.55a034c6@posting.google.com>: > Whereas an ls -l (from /) produces: > .netscape DXkeyboard opt u4 You don't have a /.netscape/cache hiding in there, do you? I find du -k | sort -n to be handy at times (Might be best to do it in the relevant subdirectories rather than at / though!). -- Ivan Reid, Electronic & Computer Eng., Brunel Uni. Ivan.Reid@brunel.ac.uk ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Root File System Full - Digital Unix 2003-02-04 19:18 ` Dr Ivan D. Reid @ 2003-02-05 14:36 ` Calum MacIver 0 siblings, 0 replies; 12+ messages in thread From: Calum MacIver @ 2003-02-05 14:36 UTC (permalink / raw) Thankyou everyone for your help. It appears to now to be sorted, and it was, in fact the nmtoh file that was the problem. I archived it off, replaced it with a link then had a look at the file. It is indeed something that should have gone off to tape (as was pointed out - nmt0h), but fortunately it was not, in fact, the backup but an oracle export file that had been piped to the wrong place - hence no need for the link. It's an old(ish) file and the scripts for backups are working fine. Having got rid of it the root file system is now only 21% full - phew!! So, once again, problem sorted and cheers to everyone for their time and advice. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-02-07 18:03 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-02-03 16:06 Root File System Full - Digital Unix Calum MacIver 2003-02-03 17:29 ` Adam Price 2003-02-04 10:23 ` Calum MacIver 2003-02-04 10:35 ` Erkki Aalto 2003-02-04 19:21 ` Adam Price 2003-02-07 18:03 ` Kevin Handy 2003-02-03 17:39 ` Kevin Handy 2003-02-03 17:37 ` brad 2003-02-03 18:06 ` Adam Price 2003-02-04 3:16 ` Richard Tomkins 2003-02-04 19:18 ` Dr Ivan D. Reid 2003-02-05 14:36 ` Calum MacIver
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox