From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,54e110548b59b173 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2000-11-08 19:00:09 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: tru64man@my-deja.com Newsgroups: comp.unix.tru64 Subject: Re: AdvFS Date: Thu, 09 Nov 2000 02:52:27 GMT Organization: Deja.com - Before you buy. Message-ID: <8ud3h9$r2p$1@nnrp1.deja.com> References: <8u7lbs$bfe$1@nnrp1.deja.com> <8ua1p4$7a4$1@news.ndsu.nodak.edu> NNTP-Posting-Host: 208.61.146.72 X-Article-Creation-Date: Thu Nov 09 02:52:27 2000 GMT X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90) X-Http-Proxy: 1.1 x70.deja.com:80 (Squid/1.1.22) for client 208.61.146.72 X-MyDeja-Info: XMYDJUIDtru64man Xref: supernews.google.com comp.unix.tru64:756 thank you for clarifying Tim, :-) In article <8ua1p4$7a4$1@news.ndsu.nodak.edu>, mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) wrote: > In article , > Kjell Andresen wrote: > > tru64man@my-deja.com writes: > > > > > Can someone give me analogy or brief explanation of a fileset and > > > filedomain in a tru64 system that is using AdvFS? > > > > Domain = collection of physical volumes > > Fileset = logical disk of a domain, mountable > > Kjell's synopsis is pretty good, but here's a little more info. Having > worked with logical volumes on AIX and with Veritas first, AdvFS confused > me at first too. > > With traditional LV setups, you often have two "objects": > > Volume Group(s): collection of one or more physical storage devices, > which form a "pool of available space". > > Logical Volume(s): a fixed-size (but often growable/shrinkable) logical > chunk of storage. You generally treat this just like you would a > disk partition on a "traditional" UNIX system. Most of the time you > put a filesystem on top of the logical volume, but you could use the > LV as a "raw" volume for things like databases. > > Generally, when a logical volume is created, it occupies a fixed set of > physical sectors on one or more disks within the volume group, sort of > like how a disk partition on a traditional UNIX system occupies a > set of physical sectors all its own. With a logical volume the sectors > need not be contiguous, and may span (concatenate) multiple physical > disks. > > With AdvFS, you also have two "objects": > > Domains: collection of one or more physical storage devices, which > form a "pool of available space". Very much like volume groups in > "traditional" LV. > > Filesets: a logical device that is, for want of a better word, a > "handle" into some amount of storage that comes from the domain it > is associated with. Unlike traditional logical volumes, a fileset is > not "sized", so it immediately has access to all free space within > the domain. > > If you have two or more filesets in one domain, those filesets are > (by default) sharing/fighting for all available space in the domain. > > With traditional LV, if you have a volume group (foovg) that contains > a single 4 Gig disk and you create two 1 gig logical volumes (lv1, lv2) > from space in that volume group, either volume could be filled without > the other one being affected (since the volumes were sized when created). > If you try to write 1.2 Gig of data to either volume, you know with > 100% certainty that it will fail because there just isn't that much space > available, since the volumes have a fixed size that's smaller than the > write you tried. > > With AdvFS, if you have a file domain (foo) that contains a single 4 Gig > disk and you create two filesets (fs1, fs2) within that domain, then: > > - filling either fileset means that the other one is "full" too, > since the volumes are sharing/fighting for the space available in > the domain (4 Gig, modulo AdvFS overhead). > > - attempting to write 1.2 Gig of data to either fileset may or may > not work, depending on how much free space is available in the > domain itself. > > - since all the space is shared between all the filesets, no fileset > has a particular set of physical disk sectors that it owns. Data > for any fileset can be anywhere in the domain. > > With AdvFS, you can limit how much space a particular fileset will > use only by establishing an advfs quota for that fileset. In this > way, you can prevent one fileset from gobbling up all the space in a > particular AdvFS domain. > > Note that since Tru64 comes with LSM (a port of Veritas VxVM, a > traditional logical volume system), you may have both a traditional > LVM as well as AdvFS in use on your system, possibly even together > (AdvFS on top of LSM, which we use quite a bit). Things can get pretty > messy, e.g. > > You create an LSM volume group "spacevg", which (initially) consists > of > > dsk16c > dsk17c > dsk18c > > each a 9 Gig disk. An LSM volume of ~ 27 Gig (all available space in > the group) called "space-01" is then created. It's a known/fixed size, > but that size can later be grown/shrunk as long as > > - there's space available to grow it (in this example there is > not unless more disks are added to that LSM vg) > > - if there's something residing on top of the logical volume, > whatever that something is needs to know how to grow/shrink > too! For example, prior to Tru64 5.1, putting a UFS filesysetm > on top of an LSM volume meant that although you could technically > grow the volume, UFS didn't know how to grow, so there wasn't > any additional space available to it. 5.1 changes this. I've > never even tried shrinking a volume, but most things don't > react well to this. > > Now that we have a "space-01", we can create an AdvFS domain "space" > on top of it. > > We can then create filesets "foo", "bar", and "baz" within that AdvFS > domain. The domain has approximately 27 Gig of space available (modulo > space used up first by LSM for its bookkeeping, then space used by > AdvFS for its bookkeeping), all of which is immediately useable by > any one of the three AdvFS filesets. > > Now let's say that you need another 27 Gig of space in your "space" > AdvFS domain. You buy 3 more 9 Gig disks, disks dsk19c through dsk21c. > Your first thought might be to add those three disks to the LSM vg > "spacevg", so it contains > > dsk16c > dsk17c > dsk18c > dsk19c > dsk20c > dsk21c > > and then grow "space-01" to be 54 Gig in size, expanding the existing > logical volume to fill the additional available physical space. This > won't work, though, because AdvFS doesn't know how to handle having > one of its storage devices (which may be physical or in this case logical) > change in size. > > What you *can* do, however, is to make use of the fact that AdvFS allows > you to add additional storage devices to an existing domain. This means > that instead of growing the underlying LSM lv onto the 3 new disks, you > should instead create a new logical volume. You might put those three > disks (19c - 21c) in the LSM vg "spacevg", or you might put them in some > other LSM vg ("spacevg2", for example). > > You then create a new LSM logical volume, which I'll call "space02- 01", > which is fixed size, ~ 27 Gig, and occupies all space on dsk19c - dsk21c. > You can use the AdvFS "addvol" command to add the new 27 Gig logical > volume to the "space" AdvFs domain, and suddenly there is 54 Gig available > in that domain. > > That's the basics. Does your head hurt yet? ;-) I haven't even touched > on the cool features of AdvFS, such as data migration via addvol/rmvol and > fileset snapshots via "clonefset". > > Hope this helps, > > Tim > -- > Tim Mooney mooney@dogbert.cc.ndsu.NoDak.edu > Information Technology Services (701) 231-1076 (Voice) > Room 242-J1, IACC Building (701) 231-8541 (Fax) > North Dakota State University, Fargo, ND 58105-5164 > Sent via Deja.com http://www.deja.com/ Before you buy.