Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Some Problem in setup RAID with NVRAID using dmraid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
orphen
n00b
n00b


Joined: 04 Sep 2004
Posts: 44
Location: CHINA

PostPosted: Sun Nov 26, 2006 9:16 am    Post subject: Some Problem in setup RAID with NVRAID using dmraid Reply with quote

I do it follow http://gentoo-wiki.com/HOWTO_Install_Gentoo_with_NVRAID_using_dmraid
BUT, got wrong below
Code:
livecd root # ./dmraidinitrd linuxrc initrd
Making busybox...
  HOSTCC conf.o
  HOSTCC zconf.tab.o
  HOSTCC conf
Making device-mapper lib...
  Making fake install in /tmp/initrd/opt/device-mapper...
Making dmraid...
Creating initrd image...
2048+0 records in
2048+0 records out
2097152 bytes (2.1 MB) copied, 0.018406 seconds, 114 MB/s
cp: cannot stat `/tmp/initrd/dmraid/1.0.0.rc13/tools/dmraid': No such
file or directory
Fatal error: did dmraid fail to compile?

And I have had make sure that libselinux has been emerged.
Does some one has the same troubles ?
_________________
AMD Athlon64 3200+ Venice
VDATA DDR400 512MB X2
ST SATA II 160GB + ST SATA 160GB
nVidia Geforce 6600GT
ADSL 1Mbps
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Sun Nov 26, 2006 2:18 pm    Post subject: Reply with quote

orphen,

You may find this thread answers your question as it unpicks dmraid and how genkernel puts it together. The steps it goes through will be useful rather than the exact problem and solution, rather like the install handbook.

dmraid is something you should avoid if you can. Its BIOS provided software raid, so the layout of data on the drives is particular to your BIOS. the only reason to choose dmraid over kernel raid is that Windows understands dmraid too, so Windows and Linux can share the same raid set.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
orphen
n00b
n00b


Joined: 04 Sep 2004
Posts: 44
Location: CHINA

PostPosted: Tue Nov 28, 2006 7:14 am    Post subject: Reply with quote

Thank you.
I had search many topics about dmraid.
BUT, I'm NOT using genkernel. I configure&amke the kernel by myslef.
_________________
AMD Athlon64 3200+ Venice
VDATA DDR400 512MB X2
ST SATA II 160GB + ST SATA 160GB
nVidia Geforce 6600GT
ADSL 1Mbps
Back to top
View user's profile Send private message
orphen
n00b
n00b


Joined: 04 Sep 2004
Posts: 44
Location: CHINA

PostPosted: Tue Nov 28, 2006 1:38 pm    Post subject: Reply with quote

The problem above has been fixed.
I had changed script of dmraidinitrd to copy the dmraid in the system.

And, there is another problem.

Code:
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 188k freed
sh: applet not found
Kernel panic - not syncing: Attemted to kill init!


The ash/sh can NOT be executed.
Code:
LiveCD root# /mnt/gentoo/root/image/bin/ash
ash: applet not found
LiveCD root# /mnt/gentoo/root/image/bin/sh
sh: applet not found


Anybody HELP?
_________________
AMD Athlon64 3200+ Venice
VDATA DDR400 512MB X2
ST SATA II 160GB + ST SATA 160GB
nVidia Geforce 6600GT
ADSL 1Mbps
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Tue Nov 28, 2006 8:27 pm    Post subject: Reply with quote

orphen,

ash is not a vaild shell, unless you have already installed it. My system does not even have a symlink from ash to bash.
/etc/shells contains
Code:
# /etc/shells: valid login shells
/bin/sh
/bin/bash
/bin/tcsh
/bin/csh
/bin/esh
/bin/ksh
/bin/zsh
/bin/sash
so they should all work, even if they are symlinks to bash.

In initrds, its normal to use sh for the shell and provide it with busybox and a symbolic link.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
orphen
n00b
n00b


Joined: 04 Sep 2004
Posts: 44
Location: CHINA

PostPosted: Wed Nov 29, 2006 1:24 am    Post subject: Reply with quote

My system does not even have a svmlink from ash to bash too.
And ash has not installed yet.
BUT, there is ash in the initrd image's /bin. And also sh in the initrd image's /bin.
The MD5SUM of ash&sh is the same.
Maybe I would to do `echo "/bin/ash" > /etc/shell` in the initrd image?

BUT, when is booting
Code:
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 188k freed
sh: applet not found
Kernel panic - not syncing: Attemted to kill init!


It is "sh: applet not found!"

PS. My kernel is 2.6.18-gentoo-r3, and dmraid version is 1.0.0_rc13.
_________________
AMD Athlon64 3200+ Venice
VDATA DDR400 512MB X2
ST SATA II 160GB + ST SATA 160GB
nVidia Geforce 6600GT
ADSL 1Mbps
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54300
Location: 56N 3W

PostPosted: Wed Nov 29, 2006 8:24 pm    Post subject: Reply with quote

orphen,

Is /bin/busybox in the in intrd or the complete /bin/sh an /bin/ash and all the supporting libraries ?
Normally, busybox provides all the system functions an initrd needs and eveything is symlinked to it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
orphen
n00b
n00b


Joined: 04 Sep 2004
Posts: 44
Location: CHINA

PostPosted: Thu Nov 30, 2006 12:21 am    Post subject: Reply with quote

Thank you for your help.
The /bin/busybox is in the initrd which I have seen.
The scripts which I have used is http://gentoo-wiki.com/HOWTO_Install_Gentoo_with_NVRAID_using_dmraid/dmraidinitrd
so, I think that "all the system functions an initrd needs and eveything is symlinked to it", BUT I'm NOT sure.
_________________
AMD Athlon64 3200+ Venice
VDATA DDR400 512MB X2
ST SATA II 160GB + ST SATA 160GB
nVidia Geforce 6600GT
ADSL 1Mbps
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum