Le Tuesday 11 November 2008 12:28:17 Jean Baptiste FAVRE, vous avez écrit : > Bonjour la liste, > > Après les questions metaphysiques sur Xen et LVM, me voilà en bute a un > autre souci: > J'essaye de réaliser une installation automatique de machine Xen sous > Debian via PXE avec un fichier preseed. > Tout va bien sauf... le partitionnement de mon disque. > > Je suis parti de là: > http://d-i.alioth.debian.org/manual/en.i386/apbs04.html#preseed-partman > et d'autres exemples glanés sur le net (notamment là: http://hands.com/) > > Ce que je voudrais faire: > - Partitionnement assisté LVM > - Partition /home séparée > > Au mieux, il ne prend pas en compte mes réglages, au pire un message > d'erreur apparaît à propos du nom de VG qui existe déjà. > Ceci m'étonne un peu dans la mesure où j'efface le "disque" à chaque fois. > > Une piste ? > JB Le partitionnement LVM en preseed est vraiment minimal sous Etch. J'espère que ça sera mieux avec Lenny. Mon problème à moi, c'était que je ne voulais pas utiliser tout l'espace libre. Et au bout d'un moment, j'avais compris qu'on était obligé. Du coup je créais un LV que je supprimais après, avec un script... Voici la partie concernant le partitionnement que j'ai testé : ################################################################### d-i partman-auto/method string lvm # This makes partman automatically partition without confirmation. d-i partman/confirm_write_new_label boolean true d-i partman-auto/purge_lvm_from_device boolean true d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/confirm boolean true d-i partman-auto-lvm/new_vg_name string vgsys d-i partman-auto/expert_recipe string ghm-serveur :: \ 96 128 128 ext3 \ $primary{ } \ $bootable{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext3 } \ options/noatime{ noatime } \ mountpoint{ /boot } \ . \ 128 200% 512 linux-swap \ $lvmok{ } \ method{ swap } \ format{ } \ . \ 512 768 1024 ext3 \ $lvmok{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext3 } \ options/noatime{ noatime } \ mountpoint{ /home } \ . \ 1024 1024 2048 ext3 \ $lvmok{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext3 } \ options/noatime{ noatime } \ mountpoint{ /tmp } \ . \ 2048 4096 5120 ext3 \ $lvmok{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext3 } \ options/noatime{ noatime } \ mountpoint{ / } \ . \ 2048 4096 5120 ext3 \ $lvmok{ } \ method{ format } \ format{ } \ use_filesystem{ } \ filesystem{ ext3 } \ options/noatime{ noatime } \ mountpoint{ /var } \ . \ 1 1000 1000000000 ext3 \ $lvmok{ } \ method{ keep } \ . d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true # Le LV cree avec la methode keep, et de taille max, le max possible (1000000000) est # obligatoire, sinon la procédure plante (division par zero) et aucun LV n'est créé # On le supprime après l'installation d-i partman-basicmethods/method_only boolean false d-i preseed/late_command string lvremove -f /dev/vgsys/keep_2
Attachment:
signature.asc
Description: This is a digitally signed message part.