--On 07 June 2005 11:48 -0400, Michael Shalayeff wrote:
Making, drinking tea and reading an opus magnum from Stuart Henderson:
--On 23 May 2005 23:25 +0100, I wrote:
> Can anyone suggest what's going wrong with this attempt at setting
> up a ccd mirror on sparc64 (t1 105)? Making any changes to the
> disklabel (with -e or -E) results in ccd0's disk information
> changing, e.g.:
I've just been looking at this again - for the benefit of the
archives, the workaround is to write filesystems directly onto the
'c' partition, and use one ccd device per partition. This doesn't
seem to be necessary for i386.
it works just fine on sparc64.
that's my debugging setup for ccd.
works just fine on any partition as well.
when you edit disklabel you might need to reboot.
it's smth obscure in the way disklabel is handled
(sun-compatible) on the platform.
Thanks Mickey, but experimenting after reading this, it doesn't quite
clear everything up for me. Using 'disklabel -E',
cylinders/sectors/free sectors are wrong until:
g d
b
Starting sector: [0]
Size ('*' for entire disk): [4698752] *
Then the values are ok while disklabel -E is running, but after
returning to the shell, they're invalid, and rebooting doesn't help.
But 'disklabel -e' is different! Everything looks ok until a reboot,
then the same incorrect number of free sectors etc are shown.
If it's just a question of re-entering the information each time,
that's a bit annoying but not a big problem, but the difference in
behaviour between -E and -e puzzles me.
$ disklabel ccd0
# /dev/rccd0c:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 233317
total sectors: 29864576
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 5244416 0 4.2BSD 2048 16384 16 # Cyl 0
- 40971
c: 29864576 0 unused 0 0 # Cyl 0
-233316
d: 786432 5244416 4.2BSD 2048 16384 16 # Cyl 40972
- 47115
e: 1310720 6030848 4.2BSD 2048 16384 16 # Cyl 47116
- 57355
f: 22523008 7341568 4.2BSD 2048 16384 16 # Cyl 57356
-233316
$ sudo disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Initial label editor (enter '?' for help at any prompt)
q
No label changes.
$ disklabel ccd0
# /dev/rccd0c:
type: ccd
disk: ccd
label: default label
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 233317
total sectors: 29864576
rpm: 7200
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
3 partitions:
# size offset fstype [fsize bsize cpg]
c: 29864576 0 unused 0 0 # Cyl 0
-233316
disklabel: warning, unused partition d: size 786432 offset 5244416
disklabel: warning, unused partition e: size 1310720 offset 6030848
disklabel: warning, unused partition f: size 22523008 offset 7341568
$ sudo reboot
[...]
$ sudo disklabel -E ccd0
This platform requires that partition offsets/sizes be on cylinder
boundaries.
Partition offsets/sizes will be rounded to the nearest cylinder
automatically.
Initial label editor (enter '?' for help at any prompt)
p
device: /dev/rccd0c
type: ccd
disk: ccd
label: default label
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 1
sectors/cylinder: 128
cylinders: 36709
total sectors: 4698752
free sectors: 4698752
rpm: 7200
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 5244416 0 4.2BSD 2048 16384 16 # Cyl 0
- 40971
c: 29864576 0 unused 0 0 # Cyl 0
-233316
d: 786432 5244416 4.2BSD 2048 16384 16 # Cyl 40972
- 47115
e: 1310720 6030848 4.2BSD 2048 16384 16 # Cyl 47116
- 57355
f: 22523008 7341568 4.2BSD 2048 16384 16 # Cyl 57356
-233316
q
No label changes.