* Trouble with Disklabel
@ 2006-04-07 15:27 Ben Carr
2006-04-07 17:54 ` Ben Carr
2006-04-08 10:38 ` Jack Estes
0 siblings, 2 replies; 3+ messages in thread
From: Ben Carr @ 2006-04-07 15:27 UTC (permalink / raw)
I am trying to apply a disklabel to a Promise 8 Drive RAID array.
However I keep getting errors such as "disklabel: Invalid disk label
(label is corrupted, or disk is unlabeled)", "disklabel: cannot
determine disk type.", "disklabel: Disk /dev/rdisk/dsk1c is unlabeled"
and "disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel
-wr" to install initial label".
The contents of the label I am attempting to apply are:
------------------------------------------------------
# /dev/rdisk/dsk1c:
type: SCSI
disk: 8 Disk RAID5
label: 8 Disk RAID5
flags:
bytes/sector: 512
sectors/track: 2612
tracks/cylinder: 52
sectors/cylinder: 135824
cylinders: 25167
sectors/unit: 3417968512
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 131072 0 unused 0 0 # 0 - 0*
b: 262144 131072 unused 0 0 # 0*- 2*
c: 3417968512 0 AdvFS # 0
- 25164*
d: 0 0 unused 0 0 # 0 - 0
e: 0 0 unused 0 0 # 0 - 0
f: 0 0 unused 0 0 # 0 - 0
g: 0 0 unused 0 0 # 0 - 0
h: 0 0 unused 0 0 # 0 - 0
------------------------------------------------------
I know this disklabel should work, as I set up an identical RAID unit
last year, thought I neglected to record the steps necessary to do so.
Any help would be greatly appreciated.
-Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trouble with Disklabel
2006-04-07 15:27 Trouble with Disklabel Ben Carr
@ 2006-04-07 17:54 ` Ben Carr
2006-04-08 10:38 ` Jack Estes
1 sibling, 0 replies; 3+ messages in thread
From: Ben Carr @ 2006-04-07 17:54 UTC (permalink / raw)
The command that eventually worked was:
/sbin/disklabel -Rr -t advfs /dev/rdisk/dsk1c /dlabel1.new
-Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Trouble with Disklabel
2006-04-07 15:27 Trouble with Disklabel Ben Carr
2006-04-07 17:54 ` Ben Carr
@ 2006-04-08 10:38 ` Jack Estes
1 sibling, 0 replies; 3+ messages in thread
From: Jack Estes @ 2006-04-08 10:38 UTC (permalink / raw)
Are you sure the disk has even a standard label on it to work with?
(what kind of an error do you get with just
#disklabel -r dsk1) OK, assuming /sbin is in your path and you have the
right disklabel program in that path...
If you don't have even a standard label, try:
#disklabel -wr dsk1 ##for the most basic bootable disk only. No
partitions have been marked as advfs yet. you'll need something like
this to get some advfs partitions cracking for you
:
#disklabel -Rr -t advfs /dev/rdisk/dsk1 # but this isn't what you
really, REALLY want. Once you get a standard label use the first
procedure, then you disklabel -e dsk1 and put in the numbers you have
above. That should do it. Any more questions, I'm happy to help.
Jack
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-08 10:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 15:27 Trouble with Disklabel Ben Carr
2006-04-07 17:54 ` Ben Carr
2006-04-08 10:38 ` Jack Estes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox