Bonjour à tous,
J’ai un petit souci avec mon preseed concernant le partitionnement des disques. J’ai deux disques d’1To chacun que je souhaite mettre en RAID1 et LVM. Voici ma démarche
[code]- Une partition ext3 /boot hors raid1 (pour LILO)
- Utilisation des deux disques en RAID
- Configuration du RAID pour utiliser les deux disque /dev/sda et /dev/sdb
- Configuration du /dev/md0 pour utiliser LVM
- Configuration de LVM
- Création du volume groupe vg01 sur /dev/md0
- Ajout de volumes logiques
- root 1Go
- swap 8Go
- tmp 1Go
- usr 2Go
- var 2Go[/code]
- Ajout de volumes logiques
- Création du volume groupe vg01 sur /dev/md0
Voici la partie partitionnement de mon fichier preseed :
[code]# /boot
d-i partman-auto/disk string /dev/sda
d-i partman-auto/expert_recipe string
boot ::
128 128 128 ext3
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /boot }
.
partitioning RAID1
partman-auto/method string raid
d-i partman-auto/disk string /dev/sda /dev/sdb
d-i partman-auto/expert_recipe string
raid ::
1024000 1024000 1024000 raid
$lvmignore{ }
$primary{ }
method{ raid }
.
d-i partman-auto-raid/recipe string
1 2 0 lvm -
/dev/sda1#/dev/sdb1
.
Partitioning LVM
d-i partman-auto/method string lvm
d-i partman-auto/disk string /dev/md0
d-i partman-auto-lvm/new_vg_name string vg0
d-i partman-lvm/vgcreate string vg0
1024 1024 1024 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ root }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ / }
.
8096 8096 8096 linux-swap
$lvmok{ } in_vg{ vg0 } lv_name{ swap }
method{ swap } format{ }
.
1024 1024 1024 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ tmp }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /tmp }
.
2048 2048 2048 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ usr }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /usr }
.
2048 2048 2048 ext3
$lvmok{ } in_vg{ vg0 } lv_name{ var }
method{ format } format{ }
use_filesystem{ } filesystem{ ext3 }
mountpoint{ /var }
.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true[/code]
Tout se passe bien jusqu’au partitionnement ou j’ai un message d’erreur me disant qu’aucun système de fichier racine n’a été défini.
Lorsque je fais une installation manuelle, il faut, après la partie LVM (une fois revenu au menu principal du partitionnement) mapper les partitions LVM avec les points de montage (genre le LVM root avec /). N’est-ce pas ce que fait
1024 1024 1024 ext3 \
$lvmok{ } in_vg{ vg0 } lv_name{ root } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / }
a la derniere ligne ?
Bref je suis perdu, totalement et je pense qu’il y a de quoi entre le RAID et le LVM en preseed!
Merci de votre aide, et excellente année 2010 à tous!