From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,4d2eeb7489425f7f X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,4d2eeb7489425f7f X-Google-Attributes: gidfee84,public From: harris@zk3.dec.com (Bob Harris) Subject: Re: BIG problems with disk drive Date: 1997/06/05 Message-ID: #1/1 X-Deja-AN: 246223524 References: <33960963.7B55BCE@uni-lj.si> Organization: Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1,comp.unix.osf.misc In article <33960963.7B55BCE@uni-lj.si>, Jure Simsic 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