* Booting to Raid array under SRM
@ 2000-12-07 14:48 Robert Williams
2000-12-07 15:12 ` David Woodhouse
2000-12-07 17:41 ` Alvin Starr
0 siblings, 2 replies; 9+ messages in thread
From: Robert Williams @ 2000-12-07 14:48 UTC (permalink / raw)
To: axp-list
RAID disks must have partition types set to "fd"
to enable automatic recognition of the array.
SRM disks must have BSD labels to enable booting.
BSD labels do not support type "fd".
Is it impossible to boot to a software
RAID on alpha under SRM?
--
Robert Williams
http://bob.usuhs.mil/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-07 14:48 Booting to Raid array under SRM Robert Williams
@ 2000-12-07 15:12 ` David Woodhouse
2000-12-07 15:17 ` David Woodhouse
2000-12-07 15:52 ` Robert Williams
2000-12-07 17:41 ` Alvin Starr
1 sibling, 2 replies; 9+ messages in thread
From: David Woodhouse @ 2000-12-07 15:12 UTC (permalink / raw)
To: axp-list
bob@bob.usuhs.mil said:
> SRM disks must have BSD labels to enable booting.
Not strictly true, AFAIK. SRM uses the last 16 bytes of the first sector, I
believe. So you could put the necessary magic in for SRM booting if you only
have three primary partitions in an MSDOS-style partition table.
You may need to have aboot to get it to grok msdos partitions though - I'm
not sure.
--
dwmw2
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-07 15:12 ` David Woodhouse
@ 2000-12-07 15:17 ` David Woodhouse
2000-12-07 15:52 ` Robert Williams
1 sibling, 0 replies; 9+ messages in thread
From: David Woodhouse @ 2000-12-07 15:17 UTC (permalink / raw)
To: axp-list
dwmw2@infradead.org said:
> You may need to have aboot to get it to grok msdos partitions though
> - I'm not sure.
s/have/hack/
more caffeine required.
Of course, you also need to massage the data in the first few bytes of the
sector to ensure that the checksum comes out right - such that the byte in
the 'partition type' for msdos partition table entry is zero.
--
dwmw2
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-07 15:12 ` David Woodhouse
2000-12-07 15:17 ` David Woodhouse
@ 2000-12-07 15:52 ` Robert Williams
1 sibling, 0 replies; 9+ messages in thread
From: Robert Williams @ 2000-12-07 15:52 UTC (permalink / raw)
To: axp-list
David Woodhouse wrote:
> bob@bob.usuhs.mil said:
> > SRM disks must have BSD labels to enable booting.
>
> Not strictly true, AFAIK. SRM uses the last 16 bytes of the first sector, I
> believe. So you could put the necessary magic in for SRM booting if you only
> have three primary partitions in an MSDOS-style partition table.
>
> You may need to have aboot to get it to grok msdos partitions though - I'm
> not sure.
How would you install aboot?
Assuming that partition 1 (dos label) starts at Cylinder 2,
would it be
swriteboot /dev/hda bootlx -f3
--
Robert Williams
http://bob.usuhs.mil/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-07 14:48 Booting to Raid array under SRM Robert Williams
2000-12-07 15:12 ` David Woodhouse
@ 2000-12-07 17:41 ` Alvin Starr
2000-12-08 14:52 ` Robert Williams
1 sibling, 1 reply; 9+ messages in thread
From: Alvin Starr @ 2000-12-07 17:41 UTC (permalink / raw)
To: axp-list
On Thu, 7 Dec 2000, Robert Williams wrote:
> RAID disks must have partition types set to "fd"
> to enable automatic recognition of the array.
yes
> SRM disks must have BSD labels to enable booting.
yes
> BSD labels do not support type "fd".
no
> Is it impossible to boot to a software
> RAID on alpha under SRM?
works just fine.
A patch is required to the kernel that will allow BSD disklabels to be
read for the partition type on boot and since aboot does not know of
partition type fd I aliased a boot partition over top of the raid
partition with fdisk.
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-07 17:41 ` Alvin Starr
@ 2000-12-08 14:52 ` Robert Williams
2000-12-08 17:04 ` Alvin Starr
0 siblings, 1 reply; 9+ messages in thread
From: Robert Williams @ 2000-12-08 14:52 UTC (permalink / raw)
To: axp-list
Alvin Starr wrote:
> > BSD labels do not support type "fd".
>
> no
How do BSD labels support "fd"?
I see 1:swap, 2:Version 6:...9:4.4LFS,
d: boot, e: ADOS... I'm not sure which one
to pick.
> > Is it impossible to boot to a software
> > RAID on alpha under SRM?
>
> works just fine.
> A patch is required to the kernel that will allow BSD disklabels to be
> read for the partition type on boot and since aboot does not know of
> partition type fd I aliased a boot partition over top of the raid
> partition with fdisk.
So you initially set DOS partitions to type "fd",
and then fdisked your /dev/md0 to have BSD partitions?
Where do you have swriteboot put th e boot loader?
On the first Cylinder of the DOS partitioned disk,
or the first Cylinder of the BSD aliased RAID device?
--
Robert Williams
http://bob.usuhs.mil/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-08 14:52 ` Robert Williams
@ 2000-12-08 17:04 ` Alvin Starr
2000-12-08 17:24 ` Michal Jaegermann
0 siblings, 1 reply; 9+ messages in thread
From: Alvin Starr @ 2000-12-08 17:04 UTC (permalink / raw)
To: axp-list
On Fri, 8 Dec 2000, Robert Williams wrote:
> Alvin Starr wrote:
>
> > > BSD labels do not support type "fd".
> >
> > no
>
> How do BSD labels support "fd"?
> I see 1:swap, 2:Version 6:...9:4.4LFS,
> d: boot, e: ADOS... I'm not sure which one
> to pick.
the disklable has a byte for the partition type. The partitioning tool
that you have may not allow you to use an arbitrary value.
> > > Is it impossible to boot to a software
> > > RAID on alpha under SRM?
> >
> > works just fine.
> > A patch is required to the kernel that will allow BSD disklabels to be
> > read for the partition type on boot and since aboot does not know of
> > partition type fd I aliased a boot partition over top of the raid
> > partition with fdisk.
>
> So you initially set DOS partitions to type "fd",
> and then fdisked your /dev/md0 to have BSD partitions?
>
> Where do you have swriteboot put th e boot loader?
> On the first Cylinder of the DOS partitioned disk,
> or the first Cylinder of the BSD aliased RAID device?
fdisk supports partitioning BSD labled disks. command "b" goes into BSD
mode. you then can lable the partitions any way you want.
from one of my systems running raid.
Command (m for help): b
Warning: starting partitions at cylinder 1 will be bad for the health of
your
partition table -- start at cylinder 2 instead!
BSD disklabel command (m for help): p
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 4096512 1008 fd # (Cyl. 2 -4065)
b: 2048256 4097520 fd # (Cyl. 4066 -6097)
c: 33885936 6145776 fd # (Cyl. 6098 -39714)
h: 4096512 1008 ext2 # (Cyl. 2 -4065)
BSD disklabel command (m for help):
notice the h partition. This is the partition that I boot from. I had to
do this to keep aboot happy.
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-08 17:04 ` Alvin Starr
@ 2000-12-08 17:24 ` Michal Jaegermann
2000-12-08 17:34 ` Alvin Starr
0 siblings, 1 reply; 9+ messages in thread
From: Michal Jaegermann @ 2000-12-08 17:24 UTC (permalink / raw)
To: axp-list
On Fri, Dec 08, 2000 at 12:04:01PM -0500, Alvin Starr wrote:
....
>
> BSD disklabel command (m for help): p
>
> 8 partitions:
> # size offset fstype [fsize bsize cpg]
> a: 4096512 1008 fd # (Cyl. 2 -4065)
> b: 2048256 4097520 fd # (Cyl. 4066 -6097)
> c: 33885936 6145776 fd # (Cyl. 6098 -39714)
> h: 4096512 1008 ext2 # (Cyl. 2 -4065)
>
> BSD disklabel command (m for help):
>
> notice the h partition. This is the partition that I boot from. I had to
> do this to keep aboot happy.
It should not be very hard to teach aboot about '0xfd' fstype. You can
likely equate it interally with ext2. 'aboot' is not a very complicated
piece of software.
Of course if you have a partition label to spare you can do the same
what Alvin did. BSD type partitioning explicitely allows for
overlapping partitions but you may have only up to eight of these total.
Michal
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Booting to Raid array under SRM
2000-12-08 17:24 ` Michal Jaegermann
@ 2000-12-08 17:34 ` Alvin Starr
0 siblings, 0 replies; 9+ messages in thread
From: Alvin Starr @ 2000-12-08 17:34 UTC (permalink / raw)
To: axp-list
On Fri, 8 Dec 2000, Michal Jaegermann wrote:
> On Fri, Dec 08, 2000 at 12:04:01PM -0500, Alvin Starr wrote:
> ....
> >
> > BSD disklabel command (m for help): p
> >
> > 8 partitions:
> > # size offset fstype [fsize bsize cpg]
> > a: 4096512 1008 fd # (Cyl. 2 -4065)
> > b: 2048256 4097520 fd # (Cyl. 4066 -6097)
> > c: 33885936 6145776 fd # (Cyl. 6098 -39714)
> > h: 4096512 1008 ext2 # (Cyl. 2 -4065)
> >
> > BSD disklabel command (m for help):
> >
> > notice the h partition. This is the partition that I boot from. I had to
> > do this to keep aboot happy.
>
> It should not be very hard to teach aboot about '0xfd' fstype. You can
> likely equate it interally with ext2. 'aboot' is not a very complicated
> piece of software.
>
> Of course if you have a partition label to spare you can do the same
> what Alvin did. BSD type partitioning explicitely allows for
> overlapping partitions but you may have only up to eight of these total.
Michal is right. It should be easy to fix aboot. I was pressed for time
and lazy so I took the easy way out.
Alvin Starr || voice: (416)585-9971
Interlink Connectivity || fax: (416)585-9974
alvin@iplink.net ||
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2000-12-08 17:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-07 14:48 Booting to Raid array under SRM Robert Williams
2000-12-07 15:12 ` David Woodhouse
2000-12-07 15:17 ` David Woodhouse
2000-12-07 15:52 ` Robert Williams
2000-12-07 17:41 ` Alvin Starr
2000-12-08 14:52 ` Robert Williams
2000-12-08 17:04 ` Alvin Starr
2000-12-08 17:24 ` Michal Jaegermann
2000-12-08 17:34 ` Alvin Starr
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox