SUMMARY - Reducing size of an lsm volume with advfs file set

From: <anthony.miller_at_vf.vodafone.co.uk>
Date: Fri, 25 Sep 1998 12:40:10 +0100

Back on 27th August I asked the following question:
===================================================

I have a DUNIX V4.0D system with / & swap on one internal 4.3gb disk and
/usr on another internal 4.3gb disk. / & /usr are advfs file sets on
lsm volumes. The system also has a number of 4.3's on an HSZ70. I am
in the process of mirroring /, swap & /usr (in fact I have mirrored / &
swap already).

When I set the system up I SHOULD have installed onto the HSZ based
disks then mirrored onto the internal disks - but I did it the other way
around!

The HSZ based disks have a few blocks less (the exact number doesn't
matter) space available than the internal disks when the default disk
label has been written. I guess this is because of space allocated for
some kind of HSZ meta-data.

I cant mirror /usr because my destination disk is smaller than the
source (it works the other way around).

I know that I can backup my existing /usr to my destination disk, modify
fstab to mount the new copy, reboot, then do the mirror (small --> large
disks).

However, the question is: Is there a way to reduce the size of the
existing sub disk on the running lsm volume (for /usr) online without
corrupting the existing advfs domain/file set container thereon?
=====================================================================

Many thanks to those who replied.



Chris H. Ruhnke
i769646_at_smrs013.stl.mo.boeing.com
----------------------------------
You cannot shrink a LSM volume after you have built an AdvFS domain on
it.

Your best bet is as you already outlined. Move the "/usr" filesystem to

the HSZ-based volume then after you have mounted it as the "/usr" you
can rmfdmn your old usr domain and then shrink the LSM volume to the
size you want and set up your mirror.


alan_at_nabeth.cxo.dec.com
-----------------------
No. AdvFS has no way to deal with a volume changing size, growing
or shrinking. It is one of the truly wasted features of LSM.
You could:

1. Add the HSZ device to the domain for /usr.
2. Remove the original partition, letting the data migrate to
    the smaller device.
3. Use LSM to add the partition back to make it a mirror of
    the smaller device.


Ed Murphy
Manager IT R&D
United States Surgical Corporation
ed.murphy.ussurg.com
------------------------------------------
You can addvol the HSZ disk to your usr domain then rmvol the internal,
this will move the data to the HSZ disk. You can then create the mirror
on the internal disk.
Received on Fri Sep 25 1998 - 11:43:35 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT