Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney)
Subject: Re: Extending LSM volumes
Date: 1998/10/10	[thread overview]
Message-ID: <6vomql$je6$1@node2.nodak.edu> (raw)
In-Reply-To: 361C7D15.4945CA2E@unixcenter.ericsson.se

In article <361C7D15.4945CA2E@unixcenter.ericsson.se>,
Hans Westerback  <edthwes@unixcenter.ericsson.se> wrote:
> Hi,
> 
> a question re DUNIX 4.0d and LSM, running AdvFs (but not
> advfs-utilities)
> Can someone tell me if there is a correct way to do this:
> 
> Scenario: I have a filesystem which is an Advfs fileset, mirrored via
> LSM.
> It needs extending, and there is no more space available on this disk.
> 
> As we don't have advfs utilities I can use the growfs. My idea to do
> this on the fly was this: Plug in two new disks and makedev to see them.
> Works OK. Add them to LSM. Dissociate
> one of the plexes from the original LSM volume. Make a new larger plex
> from the new disk. Associate this plex to the old volume, when the
> mirroring is done, then dissociate the other original plex, and mirror
> again to the other new disk.
> 
> Problem is that even though the new plex is large enough, the volume is
> still the original size.

Exactly.  AdvFS has some cool features, but it will *not* notice when you
extend the size of one of the volumes it resides on.  This means that the
LSM `grow' feature should *not* be used with AdvFS (or UFS).  It's really
only useful when what you're putting on top of the LSM volume will notice
that the volume has grown, and use the space.  Certain databases would fall
into this category.

The Veritas filesystem (VxFS) can be grown, which makes using VxFS with VxVM
(LSM is Digital's port of VxVM) very nice.

> What I finally did was to again dissociate the new larger plex from the
> volume, unmount the filesystem, make a new larger volume using the new
> plex. But now I couldn't use the volume until I had done a volume init
> active. And when mounting it the data was gone. Of course I had tarred
> it so no problem... But could I have done it without unmounting ? Or if
> not could I have kept the data on the new plex, thus avoiding restore?

You essentially can't do what you want, using the approach you're taking.  The
only way to add space to an AdvFS file domain is by adding a volume (LSM or
partition) to the filedomain.  `addvol' is the normal way to accomplish this.

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



      reply	other threads:[~1998-10-10  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-08  4:00 Extending LSM volumes Hans Westerback
1998-10-10  4:00 ` Tim Mooney [this message]
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