[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference aosg::lsm

Title:LSM
Moderator:SMURF::SHIDERLY
Created:Mon Jan 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:803
Total number of notes:2852

742.0. "Expanding the a partition with LSM partition in the way" by BIGUN::nessus.cao.dec.com::Mayne (Wake up, time to die) Fri Jan 24 1997 02:11

One of my customers would like to upgrade from Digital UNIX 3.2x to 4.0, but the 
root partition is too small.

The obvious steps are:

back everything up
unmirror the root disk
unencapsulate the root disk
back up root
move the top of the root partition (a) up into the b partition, and adjust b 
accordingly
create new filesystem on root, restore root, encapsulate, mirror

The catch is that the LSM database is in a partition (h) between a and b, which 
makes expanding the a partition a bit awkward.

So, how can we move the h partition so we can expand the a partition?

(One other possible catch: the two root disk mirrors are the only ones in 
rootdg.)

PJDM
T.RTitleUserPersonal
Name
DateLines
742.1shouldn't beSMURF::SCHLOSSFri Jan 24 1997 16:178
    Are you sure that the 'h' partition is physically between the 'a' and
    'b' partitions?  To the best of my knowlege LSM root encapsulations
    have always stolen space from the end of the swap partition.  If your
    boot disk has 'h' in between 'a' and 'b' then you have a little more
    work cut out for you but it can be done.  You just need to back up the
    'h' partition (using dd), rearrange the disklabel to your liking, and
    then restore it.  LSM must not be running while you are doing this so
    it has to be after you unencapsulate root.  Good luck.
742.2BIGUN::nessus.cao.dec.com::MayneWake up, time to dieTue Feb 04 1997 06:046
h is definitely between a and b.

I thought about dding h and restoring it to h in another place on the disk, but 
I wasn't sure if there was anything else involved.

PJDM
742.3SMURF::SCHLOSSTue Feb 04 1997 14:5310
    Well, DD might work but you need to be aware of two things.  One is
    that in addition to restoring the contents of the H partition you also
    need to restore the fstype field in the disklabel.  Secondly, you can't
    move or change an open partition so you can't muck with H while LSM is
    running.  You will either need to move the disk to another system to
    edit the disklabel or boot from another disk.  Lastly, it might be
    easier just to remove the H partition from LSM control, edit the disk
    label, and then place the H partition back under LSM control.  In this
    case LSM will handle the data.  This assumes that you have multiple
    private regions available to allow removing this H partition.