From: tru64man@my-deja.com
Subject: Re: AdvFS
Date: Thu, 09 Nov 2000 02:52:27 GMT [thread overview]
Message-ID: <8ud3h9$r2p$1@nnrp1.deja.com> (raw)
In-Reply-To: 8ua1p4$7a4$1@news.ndsu.nodak.edu
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 <u8ny9yw2q3v.fsf@beta.uio.no>,
> Kjell Andresen <kjell@usit.uio.no> 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.
next prev parent reply other threads:[~2000-11-09 2:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-07 1:20 AdvFS tru64man
2000-11-07 7:33 ` AdvFS Kjell Andresen
2000-11-07 5:00 ` AdvFS Tim Mooney
2000-11-09 2:52 ` tru64man [this message]
2000-11-15 5:00 ` New features in True 64 Version 5.1 Narinder Kumar
2000-11-17 5:00 ` AdvFS Jack Patteeuw
-- strict thread matches above, loose matches on Subject: below --
2001-03-19 20:35 AdvFS Tony
2001-03-20 15:17 ` AdvFS Marble Head
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox