Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* BIG problems with disk drive
@ 1997-06-05  4:00 Jure Simsic
  1997-06-05  4:00 ` Bob Harris
  0 siblings, 1 reply; 2+ messages in thread
From: Jure Simsic @ 1997-06-05  4:00 UTC (permalink / raw)



We're running OSF1 4.0 on alpha 1000. We have a fileset dedicated to
usenet and it started behaving very weird lately. The disks are 16Gb and
are now full up to 40%, meaning there should be still around 10Gb free
space. There is also enough Inodes, but we're getting messages "no space
left on device" and such. You can't create any file or anything.. What i
get from [df -ik] is

Filesystem       1024-blocks        Used   Available Capacity    
Iused       Ifree  %Iused  Mounted on
news_domain#news    16756736     6435843     9565464    41%    
1215338    33815353     3% /usr/var/news/spool

It's mounted as advfs and I tried /sbin/advfs/verify on it (unmounted)
and got

+++ Domain verification +++

Domain Id 331ed3b0.0004b701

Checking disks ...

Checking storage allocated on disk /dev/re1c
display_mcell_totals: mcell count breakdown
    Inuse:2444343
        Primary:1215347
        Secondary:13367
        Extent:1215627
        Other:2
        Bad:0
    Free:1
    Total:2444344

insert_tag: can't allocate memory for tag hdr's mcell ptr list
.
.
.[goes on for screens until ^C c]

I haven't got any more ideas (not smart ones anyway) so if anybody has
any experience with such problems, I'll be more than grateful. Help :-I

Jure
-- 
Jure Simsic
RCU, University of Ljubljana
Kardeljeva ploscad 17, 1000 Ljubljana, Slovenia
email: jure.simsic@uni-lj.si  webmaster@uni-lj.si



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BIG problems with disk drive
  1997-06-05  4:00 BIG problems with disk drive Jure Simsic
@ 1997-06-05  4:00 ` Bob Harris
  0 siblings, 0 replies; 2+ messages in thread
From: Bob Harris @ 1997-06-05  4:00 UTC (permalink / raw)



In article <33960963.7B55BCE@uni-lj.si>, Jure Simsic
<jure.simsic@uni-lj.si> wrote:

> We're running OSF1 4.0 on alpha 1000. We have a fileset dedicated to
> usenet and it started behaving very weird lately. The disks are 16Gb and
> are now full up to 40%, meaning there should be still around 10Gb free
> space. There is also enough Inodes, but we're getting messages "no space
> left on device" and such. You can't create any file or anything.. What i
> get from [df -ik] is
>    ...
> It's mounted as advfs and I tried /sbin/advfs/verify on it (unmounted)
> and got

The AdvFS domain metadata file (BMT) has become so fragmented that it can
no longer be extented.

Hopefully the 16GB of space is multiple disks added to the domain (I mean
disk added to the domain via the addvol command, I do not mean LSM or a
RAID device), because that is the easiest one to fix up.

Assuming multiple disks in the domain, then find/borrow one more disk, and
add it to the domain with addvol and specify a value for -p and -x (see the
man page for information on these 2 options).  Now use rmvol to remove a
disk from the domain.  All the files on the domain will migrate to new
disk.  Once the disk has been removed, you can add it back into the domain
with a new -p and -x options.  Now select another disk in the domain and
rmvol/addvol -p -x of it.  Repeat until all the original disks have been
removed and added back in with new -p -x options.  Now you can remove the
borrowed disk.  You domain should now have a defragmented BMT file on each
disk in the domain and room to grow.

You can examine the BMT files by using the following:

cd /mount_point/.tags
showfdmn domain_name
ls -l M-6
ls -l M-12
ls -l M-18
ls -l M-24

where the 6, 12, 18, 24, etc... come by looking at the showfdmn information
and taking the vol number in the 1st column of the output and multiplying
it by 6.  Each disk in the domain has its own BMT file.

You can examine the fragmentation of the BMT file by using the showfile -x
command

showfile -x M-6
showfile -x M-12
etc...

The maximum number of fragments the BMT file is allowed to have is 600+
frags (less than 700, I just don't know the exact number).

When selecting the -p values for the addvol -p, I would add up the sizes of
all the existing BMT files from the 'ls -l' command, then using the
showfsets command get a count of the number of files in the domain.  Now
you can get an estimate of how many bytes of metadata are used on average
for each file

metadata_per_file = SUM(sizes of all BMT files) / SUM(files in each fileset)

Now you can estimate how many files it will take to fill up the domain
since you know that you have X number of files and the domain is 41% full. 
Just 

Max_files = (X * 100) / 41

Now you can estimate the total amount of BMT space that will be needed

Max_BMT = Max_files * metadata_per_file

The -p option is in 8192 byte pages so figure out how many pages, then
divide the number of pages by the total number of disks in the domain, and
apply that value as the -p value when doing the addvol

-p_value = (Max_BMT/8192) / number_disk_in_domain

assuming the size of each disk in the domain is equal.  If not equal, then
allocate the BMT proportionally.

Now, if you are using a single huge disk as the domain (via LSM or a RAID
controller), then you will have to vdump/vrestore the files into a newly
created domain that has a larger -p -x values assigned.  Use the same
examples above for how to estimate how much BMT to pre-allocate.

Also it is recommeded that you defragment the domain on a regular basis so
that when the BMT does need to be extended it will be able to find a large
contiguous chunk so that it will not use up mapping entries for small
extents.  Defragging nightly with a -T value to limit the duration is a
good idea.  It should keep things down to a reasonable level.

-- 
                                      Bob Harris

I don't get to tell me what to do, I only get to tell me how to do it.
The opinions expressed are my own and do not represent Digital Equipment
Corporation



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-06-05  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-05  4:00 BIG problems with disk drive Jure Simsic
1997-06-05  4:00 ` Bob Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox