From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,e09f0eac2f79625e X-Google-Attributes: gidfa528,public From: Bruce Kelly Subject: Re: FS fragmentation + flaws Date: 2000/06/04 Message-ID: #1/1 X-Deja-AN: 631056732 Content-transfer-encoding: 7bit References: <8hd08o$p5b$2@news1.skynet.be> Content-Type: text/plain; charset="US-ASCII" X-Trace: news.inreach.com 960158314 208.25.59.206 (Sun, 04 Jun 2000 15:38:34 PDT) Organization: InReach Internet Mime-version: 1.0 User-Agent: Microsoft Outlook Express Macintosh Edition - 5.01 (1630) NNTP-Posting-Date: Sun, 04 Jun 2000 15:38:34 PDT Newsgroups: comp.unix.tru64 I would agree with all of Adam Price's comments as well as the following: > From: "Axel Preudhomme" > Organization: Belgacom Skynet SA/NV > Newsgroups: comp.unix.tru64 > Date: Sun, 4 Jun 2000 09:12:51 +0200 > Subject: FS fragmentation + flaws > > Hi, > > I know that Unix filesystem are less prone to be fragmented than other ones > but I've heard that Advfs must be regularly defragmented... > > I'd like to know is it hype form other company or facts that users encounter > because some machines I use are can be prone to fragmentantion (many small > files): file server, mail server (SMTP & IMAP), print server,... > > So, > 1) Is it true (which command should I use) ? > how often ? > If so, is it a time cousuming operation (like in macOS or Windows) > Should the disk be unmounted ? > AdvFS really makes a difference for large file systems that are written often, like a separate /var/tmp. However, the defragment routine takes a very long time to run on such large file systems (~100GB). There are parameters to keep the execution within a certain time limit. I run it on a daily basis and keep the time to one hour, for example. The file systems are mounted during the defragment process and can be fully accessed by the users. For the small file systems like root and user, some of our machines defragment and some do not. There was not been a problem either way. One caveat, do not try to defragment large file systems using anything before 4.0D. Unless you want to lose all your data. > > 2) is there any (other) flaws, bugs or so that I should be aware of > concerning this filesystem ? > More importantly, you should run quotacheck on your AdvFS file systems at boot time. This requires adding "userquota" and "groupquota" to the options in /etc/fstab and setting QUOTA_CONFIG="yes" in /etc/rc.config. AdvFs always keeps quota information regardless of weither you use it or not. Quotacheck gathers the quota information kept in the metadata and puts it in the quota files for the file system. It use to be, and still may be, the case, that a build up of quota information in the metadata could cause corruption is some cases. This does not take any where near as long as fsck for UFS file systems. > 3) I've also heard that the kernel can't be on a journaling FS? Is it true ? > Originally, it was recommende not to put root in AdvFs. That is no longer the case. I have been running root in AdvFS for a long time. It is required to have AdvFS for all file systems in V5.0 clusters, unless you want all your file systems to be read only. I should mention that AdvFS was rewritten for v5.0. Problems (like log half full errors) with large file systems are supposed to be fixed in this version. I believe the target for an in place corrupt file system fixer is v5.1, but I have not asked lately to confirm if that is still the case. > Thank you for your hints, > Axel PREUDHOMME > >