* why can't I repartition a not-in-use disk?
@ 1993-12-02 18:24 Mark Bartelt
1993-12-14 0:13 ` Nikolaus E Schuessler
0 siblings, 1 reply; 3+ messages in thread
From: Mark Bartelt @ 1993-12-02 18:24 UTC (permalink / raw)
Well, after my previous queries about uld dumping core, pixie dumping core,
and the like, I received a number of helpful replies, most of which were on
the order of "broken in 1.2, fixed in 1.3; so upgrade".
So this morning I upgraded one of our AXPs to 1.3, and decided to increase
the amount of swap space at the same time. This particular system has two
disks: an RZ26 from DEC (rz3), and an external Fujitsu M2694S from Brand X
(rz9). I normally have the b partitions of both drives enabled for swapping.
I repartitioned rz3 during the installation procedure, and that all went fine.
However, I can't manage to get the 2694 repartitioned. I booted the system
with all references to rz9 commented out of /etc/fstab, so the disk isn't (or,
at least, *shouldn't* be) in use. The fact that "df" shows nothing mounted on
any of the rz9 partitions, and "swapon -s" doesn't show any rz9 partition in
use as a swap area, certainly implies that the disk isn't being used.
However, when I try to use "disklabel" to rewrite the partition table, here's
what happens:
CARIBOU> disklabel -e -r rz9
[ make my changes to partition table ]
write new label? [y]: y
disklabel: ioctl DIOCSDINFO: Open partition would move or shrink
Use alternate partition
re-edit the label? [y]:
What's going on? What's with the reference to an "open partition"? Opened
by what?
And, given that disklabel doesn't want to let me write the new label to my
not-in-use disk, how *can* I repartition it? Will I have to boot from the
distribution CD? As usual, many TIA ...
Mark Bartelt 416/978-5619
Canadian Institute for mark@cita.toronto.edu
Theoretical Astrophysics mark@cita.utoronto.ca
"Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue
[ singing "It's all right, ma (I'm only bleating)" ]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: why can't I repartition a not-in-use disk?
1993-12-02 18:24 why can't I repartition a not-in-use disk? Mark Bartelt
@ 1993-12-14 0:13 ` Nikolaus E Schuessler
1993-12-21 22:14 ` J Lee Jaap
0 siblings, 1 reply; 3+ messages in thread
From: Nikolaus E Schuessler @ 1993-12-14 0:13 UTC (permalink / raw)
>
>However, when I try to use "disklabel" to rewrite the partition table, here's
>what happens:
>
> CARIBOU> disklabel -e -r rz9
> [ make my changes to partition table ]
> write new label? [y]: y
> disklabel: ioctl DIOCSDINFO: Open partition would move or shrink
> Use alternate partition
> re-edit the label? [y]:
>
>What's going on? What's with the reference to an "open partition"? Opened
>by what?
>
This took me a while to figure out ... I had this problem when
changing the a partition on the boot disk. I had to mop boot (across
the network) to get it fixed ...
It seems the mere existance of the device file in /dev can cause
the device to be "open". Since it seems your disks are external,
i'd boot into single user mode, delete /dev/rz9[abdefgh], do
the disklabel thing, and re MAKEDEV the devices.
>And, given that disklabel doesn't want to let me write the new label to my
>not-in-use disk, how *can* I repartition it? Will I have to boot from the
>distribution CD? As usual, many TIA ...
If the above suggestion doesn't work, you will prolly need to boot
from the distribution CD:
* chose system maintenance mode
* cd /dev
* MAKEDEV rz9
* rm rz9[abdefgh]
* disklabel
* halt and reboot
--
Niko Schuessler
Project Vincent Systems Manager email: niko@iastate.edu
Iowa State University Computation Center voice: (515) 294-1672
Ames IA 50011 snail: 291 Durham
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why can't I repartition a not-in-use disk?
1993-12-14 0:13 ` Nikolaus E Schuessler
@ 1993-12-21 22:14 ` J Lee Jaap
0 siblings, 0 replies; 3+ messages in thread
From: J Lee Jaap @ 1993-12-21 22:14 UTC (permalink / raw)
niko@iastate.edu (Nikolaus E Schuessler) writes:
>However, when I try to use "disklabel" to rewrite the partition table, here's
>what happens:
>
> CARIBOU> disklabel -e -r rz9
> [ make my changes to partition table ]
> write new label? [y]: y
> disklabel: ioctl DIOCSDINFO: Open partition would move or shrink
> Use alternate partition
> re-edit the label? [y]:
>
>What's going on? What's with the reference to an "open partition"? Opened
>by what?
The other solution given may work, but I found an explicit reference
to rrz?c did the trick, when I was shrinking the a partition. If
you just give rz?, disklabel apparently uses the a partition.
--
J Lee Jaap <J.L.Jaap@LaRC.NASA.Gov> +1 804/864-2148
employed by, not necessarily speaking for, AS&M Inc,
at NASA LaRC, Hampton VA 23681-0001
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1993-12-21 22:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-02 18:24 why can't I repartition a not-in-use disk? Mark Bartelt
1993-12-14 0:13 ` Nikolaus E Schuessler
1993-12-21 22:14 ` J Lee Jaap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox