From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: DU4.0d and DiskConfiguration
Date: 1998/11/25 [thread overview]
Message-ID: <73hk1s$vr7$1@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 365dfa1e.17215434@news.tu-darmstadt.de
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
next prev parent reply other threads:[~1998-11-25 5:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-25 5:00 DU4.0d and DiskConfiguration Mark Paede
1998-11-25 5:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1998-11-25 5:00 ` Nikola Milutinovic
1998-11-27 5:00 ` Mark Paede
1998-11-28 5:00 ` Nikola Milutinovic
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox