NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

How can I specify dk0 as the root device (config will not allow it)



I want to build a kernel that specifies dk0 as the root device and dk1 as the dump device. config complains that 'dk' is not a device (and technically it isn't since it's a pseudo device). I figure it should be possible since I saw a couple of posts that showed dk0 as the root
device.

How can I do this?

Background:
I'm running NetBSD 5.1

I'm trying to use part of a large raid device as the root partition.

I've got the raid device setup.

disklabel can't handle the device size (6TB) so I can't partition it that way.

Another thread suggested a work-around. Specifically, use raid0d as a single partition. I tried this but the system crashes after printing a few dots. It's not ideal in any event as I want multiple partitions. Nonelesless, I tried this several times and each time I had to reboot (hard reset), rebuild parity, etc ...

So, I used gpt to partition the disk instead. I used dkctl to assign wedges to the partitions. Thus I have a raid device with multiple dk partitions (wedges).

I can boot a kernel which auto-configures the raid device and the dk devices also show up.

If I manually specify root as dk0 and dump as dk1 at bootup, the system works fine.

What I can't figure out how to do is build a kernel which uses dk0 as the default root device. When I try, config complains that there is no such device (dk).

Thanks


Home | Main Index | Thread Index | Old Index