From: alan@nabeth.cxo.dec.com (Alan Rollow)
Subject: Re: Alpha/OSF disk format
Date: 1996/01/10 [thread overview]
Message-ID: <4cuvtf$74l@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 4crt8n$gh8@lore.interserv.net
In article <4crt8n$gh8@lore.interserv.net>, jyung@pointcast.com (John Yung) writes:
>This may sound stupid but even DEC support couldn't give me a direct answer.
To some it might be an interesting exercise to find out what the question
was and what information you provided...
>
>I am trying to check disk partitioning and add more swap space. I use
>disklabel to check my disks. Only the root disk came back with info, others
>came back invalid label.
Had you considered that the disks aren't labeled? The label is feature
managed by Digital UNIX and you have to a bit out of your way to write
the initial label to a disk. If no label is present, the disk driver
uses a default partition table that depends on the disk drive. The
default partitions for supported SCSI disks are given in the rz(7)
manual page.
The default partition for unsupported disks is typically:
A = 64 MB
B = 128 MB
C = entire disk
G = C - ( A + B )
The remaining partitions aren't defined.
>My fstab file indicates that I have /dev/rz0b and
>/dev/rz2b for swapping. Since I can't see partition info for rz2, I don't
>know how big.
The swapon command should know how much space is being provided by
a particular partition:
% /sbin/swapon -s
Swap partition /dev/rz2b:
Allocated space: 16384 pages (128MB)
In-use space: 1 pages ( 0%)
Free space: 16383 pages ( 99%)
Swap partition /dev/rz3b:
Allocated space: 16384 pages (128MB)
In-use space: 1 pages ( 0%)
Free space: 16383 pages ( 99%)
Total swap allocation:
Allocated space: 32768 pages (256MB)
In-use space: 2 pages ( 0%)
Available space: 32766 pages ( 99%)
>I have a new disk (RZ28). How can I partition 200mb for b and remainder 1.8gb
>for g partition and assign b for swapping.
1. Label the disk:
# disklabel -wr /dev/rrz#c rz28
2. Use the disklabel to edit the partition table.
# disklabel -e /dev/rrz#c
3. Arrange some space to protect the label, which is on the first
sector of the disk. The paging code will be very happy to
try and overwrite it, so starting a page/swap device at the
beginning of the disk is bad idea. Left to itself the label
is readonly, so the page/swap code will get I/O errors when
it tries to write there. Either offset B from the beginning
or put a file system at the beginning and the page/swap at the
end.
>
>Please copy your reply to jyung@pointcast.com.
>
>Thanks alot in advance,
>John Yung
>PointCast Inc.
>
> [ example label of rz0 deleted. ]
>
># disklabel rz1
>Invalid disk label (label is corrupted, or disk is unlabeled)
^^^^^^^^^^^^^^^^^
Odds are, it isn't labeled. Maybe never was.
>
--
Alan Rollow alan@nabeth.cxo.dec.com
prev parent reply other threads:[~1996-01-10 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-01-08 5:00 Alpha/OSF disk format John Yung
1996-01-10 5:00 ` Alan Rollow [this message]
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