From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2b6868f466cd4a7f X-Google-Attributes: gidfee84,public From: mooney@dogbert.cc.ndsu.NoDak.edu (Tim Mooney) Subject: Re: Extending LSM volumes Date: 1998/10/10 Message-ID: <6vomql$je6$1@node2.nodak.edu>#1/1 X-Deja-AN: 399788063 References: <361C7D15.4945CA2E@unixcenter.ericsson.se> Organization: North Dakota Higher Education Computing Network (NDHECN) Newsgroups: comp.unix.osf.osf1 In article <361C7D15.4945CA2E@unixcenter.ericsson.se>, Hans Westerback 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