cancel
Showing results for 
Search instead for 
Did you mean: 

Recreate Device Tree

Keith W.
Occasional Advisor

Recreate Device Tree

We had a major disk failure and had to reinstall the OS. We tried to recreate the attached raid after doing a reinstall but the device /dev/re1c does not exist.

Being a Solaris guy, I would normally just recreate the device tree and reattach the raid. Is there a similar method of reconnecting this raid to this new install?

Thank you much.
1 REPLY
Ivan Ferreira
Honored Contributor

Re: Recreate Device Tree

The easiest way is to boot with the genvmunix kernel to detect the new hardware, recompile the kernel and reboot.

boot -fi genvmunix -fl s
bcheckrc
cp /vmunix /vmunix.bak
doconfig
cp /path/to/new/kernel /vmunix
reboot

You may also try

cd /dev
./MAKEDEV re
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?