* Re: Advfs DU 3.2C Problem
1999-08-04 4:00 Advfs DU 3.2C Problem ajmlinga
@ 1999-08-04 4:00 ` Bob Harris
1999-08-04 4:00 ` John Hill
1 sibling, 0 replies; 3+ messages in thread
From: Bob Harris @ 1999-08-04 4:00 UTC (permalink / raw)
To: ajmlinga
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]
In article <7o99ng$7tm$1@nnrp1.deja.com>, <ajmlinga@my-deja.com> wrote:
>Our system is running DU 3.2C and we have a RAID0
>domain with two volumes consisting of 2 and 3
>RZ29B disks resp. The problem is that the system
>reports that there is no enough space in the
>device while the domain is only 30% full. What
>could be the cause of this? and what should I do
>to solve this?
> We also have another RAID5 domain with two
>volumes consisting of 3 and 5 RZ29B disks resp.
>and another JBOD domain with 1 RZ29B disk but
>these have no problems.
I suggest running the sys_check utility. I do not think sys_check was
shipped with v3.2c, so you may need to contact your customer support
center to get a copy. Sys_check will analyze your AdvFS domains and
tell you if the BMT for the domain has used up all of its extent map
entries and can no longer be expanded. The BMT is where most of the
file metadata is stored (the AdvFS equivalent of the UFS inode
information).
If you can not get a copy of sys_check, then you can do the following:
showfdmn <dmn_name>
This will show you the volume numbers (typically for a 2 volume domain
the volume numbers would be 1 and 2, but if addvol/rmvol operations
have occurred to this domain in the past, the number may be different).
Now you need to look at the BMT on each volume in the domain
showfile -x .tags/M-6 # for volume 1
showfile -x .tags/M-12 # for volume 2
If you have volume numbers other than 1 and 2 then get the BMT name by
multiplying the volume number times 6 and use that value.
The BMT on a volume can only have 600 to 700 extents and then it can no
longer be extended. In V4.0d changes were made to the way the BMT
storage was allocated that helped reduce this problem, and in V5.0 the
code was changed to totally eliminate this problem.
If this is your problem, then there are several approaches you might
consider taking on your V3.2c system to work around this problem.
Option 1. vdump the fileset(s) in the domain, recreate the domain
using the -p and -x options on the mkfdmn and addvol commands. The -p
option specifies the number of 8K pages to pre-allocate to the BMT on
volume being added to the domain. The -x option specifies the number
of 8K pages to try and extend the BMT with when additional space is
needed.
The minimum -p value should be at least what you are currently using in
the BMT on the current domain. The showfile command will give you that
(which should be obtained before you destroy the current domain). And
since you said the domain was only 30% full, if you intend to fill up
the rest of the disk with files similar to the ones already on the
disk, then you can expect that you will need the same proportation of
BMT space for the additional files. So I would suggest that you take
the current size of the BMT and tripple it since the current size only
maps 1/3 of the disk, a full disk would be need 3 times as much
metadata.
Of course if the -p value is too large, you will allocate space that
does not get used.
If you pick a good value for -p, you will not need the -x. Also the -x
is only as good as the amount of contiguous free space available on the
disk. But if you want a number, then try 2048. See if the mkfdmn man
page has recommendations or check the v3.2c release notes, I think
something about this was mentioned in there.
OK, you have a new domain, now you can vrestore your data.
Option 2. Before starting options 2, please get a vdump of your data
just to be on the safe side. If anything goes wrong, you will at least
have a backup of your data. Please don't skip this step.
Use addvol with the -p and -x options calculated above and add a 3rd
volume to the domain which is large enough to hold all the data
currently being used on one of the volumes in the domain (showfdmn will
give you the usage amounts for each volume in the domain).
Now use rmvol to remove one of the volumes that has a full BMT. All of
the data should migrate to the volume just added. Since the volume
just added was created with a large -p value it should have no problems
accepting the files being migrated.
Now add the volume just removed back into the domain using the
calculated -p and -x options. Use rmvol to remove the other original
volume from the domain. Its storage should migrate to the just added
volume of the domain.
Now you can add that volume back into the domain using the calculated
-p and -x options and rmvol the scratch disk you added first.
If anything goes wrong, you should still have the vdump and should be
able to use the first suggestion to recreate the domain and restore the
data from the backup.
Good luck.
^ permalink raw reply [flat|nested] 3+ messages in thread