* Expanding the root file system, is it possible?
@ 1998-09-02 4:00 Stephen Cook
1998-09-02 4:00 ` Nikola Milutinovic
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Stephen Cook @ 1998-09-02 4:00 UTC (permalink / raw)
Hi everyone,
I have a Digital 4100 running Digital Unix V3.2G with LSM and AdvFs
enabled. I want to update it to the latest and greatest V4.0D,
however I do not have enough disk space on the root file system.
In my Digital course several years ago the instructor told me to
ensure that I never ran out of space on the root file system as I did
not want to have to expande it. This implies that it is possible.
So my question is how do I expand the root file system?
Thank You
Stephen Cook
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-02 4:00 Expanding the root file system, is it possible? Stephen Cook
@ 1998-09-02 4:00 ` Nikola Milutinovic
1998-09-02 4:00 ` Janet Bertot
1998-09-03 4:00 ` John Hill
1998-09-03 4:00 ` Mark & Suzanne (gcs might work)
2 siblings, 1 reply; 9+ messages in thread
From: Nikola Milutinovic @ 1998-09-02 4:00 UTC (permalink / raw)
Stephen Cook wrote:
>
> Hi everyone,
>
> I have a Digital 4100 running Digital Unix V3.2G with LSM and AdvFs
> enabled. I want to update it to the latest and greatest V4.0D,
> however I do not have enough disk space on the root file system.
>
> In my Digital course several years ago the instructor told me to
> ensure that I never ran out of space on the root file system as I did
> not want to have to expande it. This implies that it is possible.
Highly unlikely. Both UFS and AdvFS (or any other FS) set some of it's
parameters acording to the partition size. If you just change the partition
size, the FS will stay the same. Any tool trying to change that would need to
rebuild superblock, i-node tables and almost everything else.
This, effectively, equals to backing data up somewhere, creating new FS and
restoring data from the backup, this way or the other. And that is exactly what
you can do, "vdump .... disklabel ... (LSM tools) ... mkfdmn ... mkfset ...
vrestore"
Nix.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-02 4:00 ` Nikola Milutinovic
@ 1998-09-02 4:00 ` Janet Bertot
0 siblings, 0 replies; 9+ messages in thread
From: Janet Bertot @ 1998-09-02 4:00 UTC (permalink / raw)
To: Nikola Milutinovic
Nikola Milutinovic <milutinn@EUnet.yu> writes:
|> >
|> > I have a Digital 4100 running Digital Unix V3.2G with LSM and AdvFs
|> > enabled. I want to update it to the latest and greatest V4.0D,
|> > however I do not have enough disk space on the root file system.
|> Highly unlikely. Both UFS and AdvFS (or any other FS) set some of it's
|> parameters acording to the partition size. If you just change the partition
|> size, the FS will stay the same. Any tool trying to change that would need to
|> rebuild superblock, i-node tables and almost everything else.
Right but you expand it if
1) you use RIS for example to boot your system over the network.
And having save a dump of the old root file system, you repartition
the disk using disklabel, making sure to *only* expand the root
partition (typically "a") into the swap partition (typically "b")
thus you don't have to worry about having to dump and save the whole
disk. You dump the root, repartition root-swap, make a new file system
using newfs, and restore from you initial dump.
2) if your machine has two disks, you can boot from the second while
expanding the first and vice-versa.
--
Janet Bertot
Inria -- Sophia Antipolis
^ permalink raw reply [flat|nested] 9+ messages in thread
* Expanding the root file system, is it possible?
@ 1998-09-02 4:00 Stephen Cook
1998-09-04 4:00 ` Christian Krackowizer
0 siblings, 1 reply; 9+ messages in thread
From: Stephen Cook @ 1998-09-02 4:00 UTC (permalink / raw)
Hi
everyone,
I have a
Digital
4100
running
Digital
Unix V3.2G
with LSM
and AdvFs
enabled.
I want to
update it
to the
latest and
greatest
V4.0D,
however I
do not
have
enough
disk space
on the
root file
system.
In my
Digital
course
several
years ago
the told
me to
ensure
that I
never ran
out of
space on
the root
file
system as
I did not
want to
have to
expande
it. This
implies
that it is
possible.
So my
question
is how do
I expand
the root
file
system.
Thank You
Stephen
Cook
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-02 4:00 Expanding the root file system, is it possible? Stephen Cook
1998-09-02 4:00 ` Nikola Milutinovic
1998-09-03 4:00 ` John Hill
@ 1998-09-03 4:00 ` Mark & Suzanne (gcs might work)
2 siblings, 0 replies; 9+ messages in thread
From: Mark & Suzanne (gcs might work) @ 1998-09-03 4:00 UTC (permalink / raw)
Stephen Cook wrote:
>
> Hi everyone,
>
> I have a Digital 4100 running Digital Unix V3.2G with LSM and AdvFs
> enabled. I want to update it to the latest and greatest V4.0D,
> however I do not have enough disk space on the root file system.
>
> In my Digital course several years ago the instructor told me to
> ensure that I never ran out of space on the root file system as I did
> not want to have to expande it. This implies that it is possible.
>
> So my question is how do I expand the root file system?
Basically I believe the boot loader can't deal with parts on vmunix
beging mapped of the boot device so rather than make any of the boot
code more insane they have inforced a no expand option for the root
file system domain. If you build the root_domain by hand you must
remember to also inforce this :-
-r Specifies the file domain as the root domain. This prevents multiple
volumes in the root domain. AdvFS supports only one volume in the
root domain.
If you don't you could simple addvol to root_domain which would probably
keep working for a while till you reboot. Not sure if the mount of
root_domain will fail or it may keep working till vmunix or other
important boot file gets mapped off the primary boot device? In either
case its not what you want.
Cheers
Mark :)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-02 4:00 Expanding the root file system, is it possible? Stephen Cook
1998-09-02 4:00 ` Nikola Milutinovic
@ 1998-09-03 4:00 ` John Hill
1998-09-03 4:00 ` Mark & Suzanne (gcs might work)
2 siblings, 0 replies; 9+ messages in thread
From: John Hill @ 1998-09-03 4:00 UTC (permalink / raw)
Stephen Cook wrote:
> Hi everyone,
>
> I have a Digital 4100 running Digital Unix V3.2G with LSM and AdvFs
> enabled. I want to update it to the latest and greatest V4.0D,
> however I do not have enough disk space on the root file system.
>
> In my Digital course several years ago the instructor told me to
> ensure that I never ran out of space on the root file system as I did
> not want to have to expande it. This implies that it is possible.
>
> So my question is how do I expand the root file system?
>
> Thank You
>
> Stephen Cook
I think the instructor was implying that expanding the root partition
is a painful
task - which it is. As suggested in other postings, you have to save
away your
existing root (and probably other) partitions on the disk, boot off
either another
disk or via RIS, repartition, recover the saved files and hope you got
it all right.
There is an option on the operating system CD to boot off the CD - I
found this
the neatest way to boot off something other than the system disk when I
had the
same problem going from V3.2G to V4.0B.
I can give a blow-by-blow commentary if you need it (I got quite
proficient by
the time I'd repartitioned the third system disk :-) ).
Regards,
John Hill
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Dr. John C. Hill University of Cambridge, +
+ E-mail: hill@hep.phy.cam.ac.uk Cavendish Laboratory, +
+ Phone: +44-1223-337243 Madingley Road, +
+ Fax: +44-1223-353920 Cambridge, CB3 0HE, U.K. +
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-02 4:00 Stephen Cook
@ 1998-09-04 4:00 ` Christian Krackowizer
1998-09-09 4:00 ` Rev. Don Kool
0 siblings, 1 reply; 9+ messages in thread
From: Christian Krackowizer @ 1998-09-04 4:00 UTC (permalink / raw)
In article <35ED7839.2B888663@home.com>, smcook@home.com says...
>
>Hi
>everyone,
>
>I have a
>Digital
>4100
if you have a second disk, it's easy. partition the second using the same
layout as the boot disk, but make partition 'a' as big as you want.
Then do disklabel and all this stuff.
Shutdown to single-user mode, 'dd' partition 'a' ffrom systemdisk to partition
'a' of spare disk. for all other fielssystems you can use 'dump'.
shutdown the machine, change SCSI-id's and boot the new(identical) system.
I do not recommend booting direct from the spare-disk without changing the
SCSI-id's as in some file a e.g. '/dev/rz0...' will cause problems...
I've done this often under Ultrix, never tested it on OSF1, but there's
same old partition stuff ...
regards
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-04 4:00 ` Christian Krackowizer
@ 1998-09-09 4:00 ` Rev. Don Kool
1998-09-09 4:00 ` Christian Krackowizer
0 siblings, 1 reply; 9+ messages in thread
From: Rev. Don Kool @ 1998-09-09 4:00 UTC (permalink / raw)
Christian Krackowizer wrote:
>
> In article <35ED7839.2B888663@home.com>, smcook@home.com says...
> >
> >Hi
> >everyone,
> >
> >I have a
> >Digital
> >4100
>
> if you have a second disk, it's easy. partition the second using the same
> layout as the boot disk, but make partition 'a' as big as you want.
> Then do disklabel and all this stuff.
> Shutdown to single-user mode, 'dd' partition 'a' ffrom systemdisk to partition
> 'a' of spare disk. for all other fielssystems you can use 'dump'.
>
> shutdown the machine, change SCSI-id's and boot the new(identical) system.
> I do not recommend booting direct from the spare-disk without changing the
> SCSI-id's as in some file a e.g. '/dev/rz0...' will cause problems...
>
> I've done this often under Ultrix, never tested it on OSF1, but there's
> same old partition stuff ...
>
> regards
If you want to boot of the new disk, you'll have to change the swap
file link in "/sbin" to point to the correct partition. I think the
link name is "swapdefault" or something like that.
Hope this helps,
Don
--
********************** You a bounty hunter?
* Rev. Don McDonald * Man's gotta earn a living.
* Baltimore, MD * Dying ain't much of a living, boy.
********************** "Outlaw Josey Wales"
http://members.home.net/oldno7
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Expanding the root file system, is it possible?
1998-09-09 4:00 ` Rev. Don Kool
@ 1998-09-09 4:00 ` Christian Krackowizer
0 siblings, 0 replies; 9+ messages in thread
From: Christian Krackowizer @ 1998-09-09 4:00 UTC (permalink / raw)
In article <35F5EB3E.B30E5BCD@home.com>, oldno7@home.com says...
>
>Christian Krackowizer wrote:
>>
>> In article <35ED7839.2B888663@home.com>, smcook@home.com says...
>> >
>> >Hi
>> >everyone,
>> >
>> >I have a
>> >Digital
>> >4100
>>
>> if you have a second disk, it's easy. partition the second using the same
>> layout as the boot disk, but make partition 'a' as big as you want.
>> Then do disklabel and all this stuff.
>> Shutdown to single-user mode, 'dd' partition 'a' ffrom systemdisk to
partition
>> 'a' of spare disk. for all other fielssystems you can use 'dump'.
>>
>> shutdown the machine, change SCSI-id's and boot the new(identical) system.
>> I do not recommend booting direct from the spare-disk without changing the
>> SCSI-id's as in some file a e.g. '/dev/rz0...' will cause problems...
>>
>> I've done this often under Ultrix, never tested it on OSF1, but there's
>> same old partition stuff ...
>>
>> regards
>
> If you want to boot of the new disk, you'll have to change the swap
>file link in "/sbin" to point to the correct partition. I think the
>link name is "swapdefault" or something like that.
>
and /etc/fstab too
--
+-----------------------------------------------------------------+
| Krackowizer Christian mailto:kra1@technodat.co.at |
| TECHNODAT Phone: ++43-(0)662-454944-0 |
| CAD/CAM - Systeme fuer Moebel GmbH FAX: ++43-(0)662-454944-9 |
| Jakob-Haringer-Strasse 6 http://www.technodat.co.at/ |
| A-5020 Salzburg / Austria |
+-----------------------------------------------------------------+
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1998-09-09 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-02 4:00 Expanding the root file system, is it possible? Stephen Cook
1998-09-02 4:00 ` Nikola Milutinovic
1998-09-02 4:00 ` Janet Bertot
1998-09-03 4:00 ` John Hill
1998-09-03 4:00 ` Mark & Suzanne (gcs might work)
-- strict thread matches above, loose matches on Subject: below --
1998-09-02 4:00 Stephen Cook
1998-09-04 4:00 ` Christian Krackowizer
1998-09-09 4:00 ` Rev. Don Kool
1998-09-09 4:00 ` Christian Krackowizer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox