|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
problems with my partman recipeHi @all!
I'm new to this list and also to autoinstalling Debian, although I'm not new to Debian itself :-) We have some PCs standing directly in our server nets to administer and especially troubleshoot without any firewalls or routers making trouble. To harmonize our environment, we decided to use *only* Debian on this PCs. (OK: Debian or Windows, but I'm not responsible for the latter.) I thought I'd try to build an automatic installation that will be fit for servers, too. (One never knows...) Up until now I think the only difference will be that servers won't have a GUI. The idea is: 1) /boot on a partition 2) / on a partition (I don't like / as a logical volume; makes it too easy to clog it with garbage as it's oh so simply to enlarge it later on) 3) /usr, /var and /tmp as logical volumes (you know why) 4) /srv and /opt as (very) small logical volumes (if they are not in use, a few MB won't hurt; on the other hand, this prevents people from simply putting stuff in there without creating a logical volume or a partition first: It's already there) 5) swap as a logical volume 6) /home as a (not too big) logical volume (easy to enlarge when needed; on the other hand not wasting space when the system is used as a server) But I don't want to discuss my disk layout with you. My problem is that my recipe isn't working. That's what I have in my preseed.cfg: d-i partman-auto/method string lvm d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/confirm boolean true d-i partman-auto/expert_recipe string \ my-recipe :: \ 128 128 128 ext3 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /boot } . \ 512 512 512 ext3 \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ / } . \ 3072 3072 3072 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /usr } . \ 1536 2048 2048 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /var } . \ 128 128 128 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /tmp } . \ 32 32 32 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /srv } . \ 32 32 32 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /opt } . \ 512 512 512 ext3 \ $lvmok{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /home } . \ 1024 1024 1024 linux-swap \ $lvmok{ } \ method{ swap } format{ } . d-i partman-auto/choose_recipe select my-recipe d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true But I'm getting "Can't have a partition outside the disk!". Any ideas? greez mario -- To UNSUBSCRIBE, email to debian-boot-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: problems with my partman recipeOn Tue, Jul 22, 2008 at 11:29 PM, Lenz, Mario (LDS) wrote:
> My problem is that my recipe isn't working. I am not sure if this is your problem, but you are missing a partition with a high maximal size. According to the partman-auto docs: Due to limitation of the algorithms in partman-auto, there must be at least one partition with high maximal size so that the whole free space can be used. Usually you can give the partition containing /home a maximal size 1000000000 which is high enough for the present storage devices. [1] [1] http://d-i.alioth.debian.org/svn/debian-installer/installer/doc/devel/partman-auto-recipe.txt > That's what I have in my preseed.cfg: > > d-i partman-auto/method string lvm > d-i partman-lvm/device_remove_lvm boolean true > d-i partman-lvm/confirm boolean true > d-i partman-auto/expert_recipe string \ > my-recipe :: \ > 128 128 128 ext3 \ > $primary{ } $bootable{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /boot } . \ > 512 512 512 ext3 \ > $primary{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ / } . \ > 3072 3072 3072 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /usr } . \ > 1536 2048 2048 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /var } . \ > 128 128 128 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /tmp } . \ > 32 32 32 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /srv } . \ > 32 32 32 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /opt } . \ > 512 512 512 ext3 \ > $lvmok{ } \ > method{ format } format{ } \ > use_filesystem{ } filesystem{ ext3 } \ > mountpoint{ /home } . \ > 1024 1024 1024 linux-swap \ > $lvmok{ } \ > method{ swap } format{ } . > > d-i partman-auto/choose_recipe select my-recipe > d-i partman/confirm_write_new_label boolean true > d-i partman/choose_partition select Finish partitioning and write changes to disk > d-i partman/confirm boolean true > > But I'm getting "Can't have a partition outside the disk!". Any ideas? -- To UNSUBSCRIBE, email to debian-boot-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
AW: problems with my partman recipeHi!
I have to apologize: I'm not used to mailing lists as I am able to solve the most problems myself or with the help of my good old friend google. So here's some additional information: I'm using Lenny and got the kernel and initrd from http://http.us.debian.org/debian/dists/lenny/main/installer-amd64/current/images/netboot/ Setting /home to a max size of 1000000000 didn't work, but creating an additional primary partition does (a bit). I added: 512 512 1000000000 ext3 \ $primary{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext3 } \ mountpoint{ /foo } . Adding this not as $primary, but as $lvmok doesn't work, either. However: I end up with more than 3GB swap although I told partman to use only 1. Is there some program I can feed a recipe into and get what partman would do? greez Mario >-----Ursprüngliche Nachricht----- >Von: Svend Sorensen [mailto:ssorensen@...] >Gesendet: Mittwoch, 23. Juli 2008 19:23 >An: Lenz, Mario (LDS) >Cc: debian-boot@... >Betreff: Re: problems with my partman recipe > >On Tue, Jul 22, 2008 at 11:29 PM, Lenz, Mario (LDS) wrote: >> My problem is that my recipe isn't working. > >I am not sure if this is your problem, but you are missing a partition >with a high maximal size. According to the partman-auto docs: > >Due to limitation of the algorithms in partman-auto, there must be at >least one partition with high maximal size so that the whole free >space can be used. Usually you can give the partition containing >/home a maximal size 1000000000 which is high enough for the present >storage devices. [1] > >[1] >http://d-i.alioth.debian.org/svn/debian-installer/installer/doc >/devel/partman-auto-recipe.txt > >> That's what I have in my preseed.cfg: >> >> d-i partman-auto/method string lvm >> d-i partman-lvm/device_remove_lvm boolean true >> d-i partman-lvm/confirm boolean true >> d-i partman-auto/expert_recipe string \ >> my-recipe :: \ >> 128 128 128 ext3 \ >> $primary{ } $bootable{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /boot } . \ >> 512 512 512 ext3 \ >> $primary{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ / } . \ >> 3072 3072 3072 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /usr } . \ >> 1536 2048 2048 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /var } . \ >> 128 128 128 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /tmp } . \ >> 32 32 32 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /srv } . \ >> 32 32 32 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /opt } . \ >> 512 512 512 ext3 \ >> $lvmok{ } \ >> method{ format } format{ } \ >> use_filesystem{ } filesystem{ ext3 } \ >> mountpoint{ /home } . \ >> 1024 1024 1024 linux-swap \ >> $lvmok{ } \ >> method{ swap } format{ } . >> >> d-i partman-auto/choose_recipe select my-recipe >> d-i partman/confirm_write_new_label boolean true >> d-i partman/choose_partition select Finish partitioning and >write changes to disk >> d-i partman/confirm boolean true >> >> But I'm getting "Can't have a partition outside the disk!". >Any ideas? > -- To UNSUBSCRIBE, email to debian-boot-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
| Free Forum Powered by Nabble | Forum Help |