[mdadm] install (résolu)

Questions et astuces concernant l'installation et la configuration d'archlinux
noon
newbie
Messages : 2
Inscription : ven. 04 oct. 2013, 22:40

[mdadm] install (résolu)

Message par noon »

Hello,

i try to install arch linux on zfs + /boot on mdadm but i have an issue.

At boot i have this error:

Code : Tout sélectionner

Error: device 'ZFS=zroot/' not found
here is how i install my system:

nano /etc/pacman.conf ->

Code : Tout sélectionner

	[demz-repo-archiso]
	Server = http://demizerone.com/$repo/$arch

Code : Tout sélectionner

pacman-key -r 0EE7A126
pacman-key --lsign-key 0EE7A126

pacman -Syy

pacman -S archzfs dosftools gptfdisk vim grub

cfdisk /dev/sda
sda1	boot	primary	linux raid autodetect	512
sda2			primary	solaris

cfdisk /dev/sdb
sdb1	boot	primary	linux raid autodetect	512
sdb2			primary	solaris

mdadm --create /dev/md0 --raid-devices=2 --level=1 /dev/sda1 /dev/sdb1
mkf.ext2 /dev/md0

modprobe zfs

zpool create zroot /dev/sda2
zpool attach zroot /dev/sda2 /dev/sdb2
zfs create zroot/home
zfs create zroot/root
zfs create -V 8G -b 4k zroot/swap
mkswap /dev/zvol/zroot/swap
swapon /dev/zvol/zroot/swap
mkdir /zroot/boot
mount /dev/mdo /zroot/boot


pacstrap /zroot base archzfs dosfstools gptfdisk vim grub

nano /zroot/etc/fstab ->
	/dev/zvol/zroot/swap	none	swap	defaults	0 0
	
swapoff /dev/zvol/zroot/swap
umount /zroot/boot
zfs umount -a
zfs set mountpoint=/ zroot
zfs set mountpoint=/home zroot/home
zfs set mountpoint=/root zroot/root
zpool set bootfs=zroot zroot
zpool export zroot

zpool import -R /mnt zroot

genfstab -U -p /mnt | grep boot >> /mnt/etc/fstab
arch-chroot /mnt

mdadm --examine --scan >> /etc/mdadm.conf
nano /etc/mkinitcpio.conf ->

Code : Tout sélectionner

	HOOKS="base mdadm udev autodetect modconf block keyboard zfs filesystems"

Code : Tout sélectionner

mkinitcpio -p linux

grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda
grub-install /dev/sdb
nano /boot/grub/grub.cfg ->

Code : Tout sélectionner

	# (0) Arch Linux
menuentry "Arch Linux" {
    set root=(hd0,1)
    linux /vmlinuz-linux zfs=zroot
    initrd /initramfs-linux.img
}

Code : Tout sélectionner

exit
umount /mnt/boot
zfs umount -a
zpool export zroot


did i forgot something?

thanks
Dernière modification par FoolEcho le sam. 05 oct. 2013, 11:28, modifié 1 fois.
Raison : balise code
noon
newbie
Messages : 2
Inscription : ven. 04 oct. 2013, 22:40

Re: install on mdadm

Message par noon »

ok i just found the solution,

on the grub.cfg

the set root line must be set root=md/0 on not set root=md0...
Avatar de l’utilisateur
Ypnose
Maître du Kyudo
Messages : 1363
Inscription : sam. 01 mai 2010, 13:17

Re: install on mdadm

Message par Ypnose »

Actually, this is not an English forum. If you pay attention to the board, you should notice it.
All members are French, therefore they don't speak English.
If you want to ask a question about your problem, you should probably visit the official Archlinux forum.
Répondre