* Re: DU4.0d and DiskConfiguration
1998-11-25 5:00 DU4.0d and DiskConfiguration Mark Paede
1998-11-25 5:00 ` Nikola Milutinovic
@ 1998-11-25 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1 sibling, 0 replies; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1998-11-25 5:00 UTC (permalink / raw)
In article <365dfa1e.17215434@news.tu-darmstadt.de> you write:
>Hello!
>
>I'm very new to DU and have a few questions regarding the Disk
>Configuration Utility:
>1. The tool (configure partitions) looks a bit like Partition Magic,
>so I had the idea that it might be possible to change the sizes of the
>partitions "on the fly". After pressing the "apply" button, there is a
>warning message of possible data loss. Is this a _possible_ loss, or
>will the data on the changed partitions be lost?
>And if it should work without what is the possability of data-loss
>-more like 10 or like 90%?
Neither local file system supported by Digital UNIX can handle
the underlying partition changing size. Increasing the size
of a partition will merely waste the space. Decreasing the
size of a partition will at best result in I/O errors to the
area past the end of the partition and worst look like file
system corruption causing the system or domain to panic. In
the case of AdvFS any I/O error accessing file system meta-
data is treated as corruption.
If you change the starting location of a partition, then it
gets really bad.
If you arrange for an unused partition to overlap an in use
one, then putting the new partition in use will eventually
overwrite parts of the other. The first thing, after opening
a device, newfs does is that it tries to write the last sector
of the partition being used. So, creating a UFS will quickly
overwrite something in an overlapped partition.
>2. What happens if the DU starts without or with a changed
>swap-partition?
re: without. It will operate in over-commit mode. This is
the same result you get when you remove /sbin/swapdefault
before the page/swap space is added. If you more memory
than virtual memory needs, the system will continue to run.
Once the system is unable to allocate page/swap space, idle
processes are killed, so those trying to page and swap will
have somewhere to go.
re: With the size changed.
It will use the amount of space indicated by the partition
size. If that happens to overlap some other partition, too
bad for the data on that partition.
>As the preinstalled swap partition is to small I would like to change
>it (see 1.) or I have to create a new one. So is it possible with just
>this utility to delete the old and create a new swap partition or do I
>have to change something else?
The existing page/swap space is almost certainly adjcent with some
other partition that's being used. To shrink the others, you have
to migrate them to new space. Once you can safely increase the size
of the page/swap space, the system will use whatever is there. If
you have a spare disk partition, it is much simplier to add it
with the swapon(8) command. The system can have more page/swap
devices than you can have disks...
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DU4.0d and DiskConfiguration
1998-11-25 5:00 DU4.0d and DiskConfiguration Mark Paede
@ 1998-11-25 5:00 ` Nikola Milutinovic
1998-11-27 5:00 ` Mark Paede
1998-11-25 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1 sibling, 1 reply; 5+ messages in thread
From: Nikola Milutinovic @ 1998-11-25 5:00 UTC (permalink / raw)
Mark Paede wrote:
>
> Hello!
>
> I'm very new to DU and have a few questions regarding the Disk
> Configuration Utility:
> 1. The tool (configure partitions) looks a bit like Partition Magic,
> so I had the idea that it might be possible to change the sizes of the
> partitions "on the fly". After pressing the "apply" button, there is a
> warning message of possible data loss. Is this a _possible_ loss, or
> will the data on the changed partitions be lost?
> And if it should work without what is the possability of data-loss
> -more like 10 or like 90%?
If there was data on the partition, your damage could range from "no effect" to
"no data". When UNIX creates a file system, U makes it for that particular
partition size and offset. Increase the partition and the FS remains the same.
Move the partition and the FS is mis-located.
> 2. What happens if the DU starts without or with a changed
> swap-partition?
Not sure. Some versions stated that the swap is UFS type, but thats stupid. Swap
is just a partition, a range of blocks on the disk, where UNIX swaps memory
pages. And it is created every time machine boots (swapon).
> As the preinstalled swap partition is to small I would like to change
> it (see 1.) or I have to create a new one. So is it possible with just
> this utility to delete the old and create a new swap partition or do I
> have to change something else?
When you boot the DU4.0D CD, you can adjust any partitions for your
configuration. My choice is:
part offset size purpose
----------------------------------------------------------
a 0 64-128 MB root partition + bootstrap
b a+ (2-3)xRAM swap
c 0 0 unused
d 0 0 unused
e 0 0 unused
f 0 0 unused
g a+b+ <rest> usr + var
h 0 0 unused
And after I have done this, I choose advanced setup and procede.
Nix.
^ permalink raw reply [flat|nested] 5+ messages in thread
* DU4.0d and DiskConfiguration
@ 1998-11-25 5:00 Mark Paede
1998-11-25 5:00 ` Nikola Milutinovic
1998-11-25 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
0 siblings, 2 replies; 5+ messages in thread
From: Mark Paede @ 1998-11-25 5:00 UTC (permalink / raw)
Hello!
I'm very new to DU and have a few questions regarding the Disk
Configuration Utility:
1. The tool (configure partitions) looks a bit like Partition Magic,
so I had the idea that it might be possible to change the sizes of the
partitions "on the fly". After pressing the "apply" button, there is a
warning message of possible data loss. Is this a _possible_ loss, or
will the data on the changed partitions be lost?
And if it should work without what is the possability of data-loss
-more like 10 or like 90%?
2. What happens if the DU starts without or with a changed
swap-partition?
As the preinstalled swap partition is to small I would like to change
it (see 1.) or I have to create a new one. So is it possible with just
this utility to delete the old and create a new swap partition or do I
have to change something else?
Mark
--
for replying: please remove no. from reply-address
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DU4.0d and DiskConfiguration
1998-11-25 5:00 ` Nikola Milutinovic
@ 1998-11-27 5:00 ` Mark Paede
1998-11-28 5:00 ` Nikola Milutinovic
0 siblings, 1 reply; 5+ messages in thread
From: Mark Paede @ 1998-11-27 5:00 UTC (permalink / raw)
On Wed, 25 Nov 1998 17:27:55 +0100, Nikola Milutinovic
<milutinn@EUnet.yu> wrote:
[...]
>When you boot the DU4.0D CD, you can adjust any partitions for your
>configuration. My choice is:
That's the problem. The system is pre-installed and running and I
don't want to reinstall it
>part offset size purpose
>----------------------------------------------------------
>a 0 64-128 MB root partition + bootstrap
>b a+ (2-3)xRAM swap
>c 0 0 unused
>d 0 0 unused
>e 0 0 unused
>f 0 0 unused
>g a+b+ <rest> usr + var
>h 0 0 unused
The partitions look like this. With a lot unused space after g. So
what I have done now was to add a second swap-partition as h. And I
found a use for the old one (b), so this space is not wasted (I think
on big swap-part is better then two small on one disk).
But what I have lost ist the possability of an own partition for
/usr/users/
So the moving of partitions would still be interesting, but it seems
that it doesn't work.
Another question: It doesn't make sense for me to use a, b and g as so
c-f are lost (especially with my pre-install where 2GB are left free
behind g). Is it a need for DU to use this partitions? And if yes -
why? (But this will be probably unanswered.)
Mark
--
for replying: please remove no. from reply-address
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: DU4.0d and DiskConfiguration
1998-11-27 5:00 ` Mark Paede
@ 1998-11-28 5:00 ` Nikola Milutinovic
0 siblings, 0 replies; 5+ messages in thread
From: Nikola Milutinovic @ 1998-11-28 5:00 UTC (permalink / raw)
Mark Paede wrote:
>
> So the moving of partitions would still be interesting, but it seems
> that it doesn't work.
The only way to move the partition is to backup, destroy, create,
restore.
> Another question: It doesn't make sense for me to use a, b and g as so
> c-f are lost (especially with my pre-install where 2GB are left free
> behind g). Is it a need for DU to use this partitions? And if yes -
> why? (But this will be probably unanswered.)
The idea behind this partitioning scheme is to have multi-purpose
default disk labels (part.). You just "splash" the default and you have
several choices. If it is a system disk, then use {a-root, b-swap,
g-usr, h-var} or {a-root, b-swap, advfs:(g+h)-usr/var}. Or if you want
it as a whole, then use c. And so on.
That is why I always make my custom disklabel, when I install the
system. I know exactly what I want, swap space specially.
Nix.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-11-28 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-25 5:00 DU4.0d and DiskConfiguration Mark Paede
1998-11-25 5:00 ` Nikola Milutinovic
1998-11-27 5:00 ` Mark Paede
1998-11-28 5:00 ` Nikola Milutinovic
1998-11-25 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox