Wie macht eigentlich Debian das mit Grub2 auf ZFS?

minimike

Berufsrevolutionär
Hi

Ich würde gerne mehrere FreeBSD Installationen auf meinem Zpool fahren. So wie das mal bei OpenSolaris war. Vor dem Update mal eben das RootFS clonen und dann hat man im Grub Menü dann mehrere Einträge zur Auswahl.
Also ich habe aus Faulheit bisher FreeBSD immer mit der MFSBSD Life CD installiert. Dauert nur 5 min und gut ist. Leider scheitere ich daran dann auf System anschliesend Grub2 zu installieren. Ich frage mich gerade wie Debian das dann mit KfreeBSD macht. Jemand ne Idee?

lg Darko
 
OpenSolaris nutze ja den Grub1 und nie den Grub2, daher würde ich mal in den Raum stellen, dass durchaus die möglichkeit bestehen könnte, dass grub2 nichtmal zfs beherrscht und dass Debian kFreeBSD Grub1 nutzt, aber wie du siehst nutze ich hier den Konjunktiv ausgiebig, also siehst du das lieber mal nur als anregung wonach zu suchen ist ;-)
 
Ist auch nicht vorstellbar, dass Grub nur ZFS bis v14 unterstützt. Das letzte OpenSolaris Release hatte eine ZFS Version>20. Irgendwie mussten die ja auch booten, also muss es da auch Source zu geben, und ich nehme an genau den hat minimike jetzt und er kompiliert nicht.

Kannst du mal compileroutput liefern und mal ansagen womit du baust?
Ich kann dann mal auf OpenSolaris/SPARC gegenkompilieren - es ist leider gut möglich, dass die aktuellsten Sources von OpenSolaris.org generell nicht bauen.
 
Kannst du mal compileroutput liefern und mal ansagen womit du baust?
Ich kann dann mal auf OpenSolaris/SPARC gegenkompilieren - es ist leider gut möglich, dass die aktuellsten Sources von OpenSolaris.org generell nicht bauen.

Mir fällt grade auf, dass ich das nicht kann, weil man auf SPARC nicht mit grub bootet :huth:

In den Repos auf opensolaris.org seht es bis Build 143 oder so, wenn du auf nummer Sicher gehen willst dann probier die Sourcen von b134 oder älter, von denen ist zumindest allgemein bekannt, dass sie problemlos bauen.
 
Also ich habe mit erheblichen Mühen ein Gitrepo von Illumos gefunden. Derzeit frickele ich mehr schlecht als recht mit KfreeBSD und Grub2 in VMware. Kurz war es mir gelungen Debian von einem Subvolume zu booten. Jedoch nach dem der Zpool umbenannt wurde konnte die VM auch mit korrigierten Grubparametern nicht mehr booten.

Der Installer von Debian KfreeBSD kann ZFS Subvolumes nicht ansprechen. Deshalb installiert er in das Top Volume. (Würg)
Der Installer benennt den Zpool nach Hostname und Festplatte. Selber benennen wäre zu vermessen. (Kotz)
 
Hallo,

ich habe aus Interesse auch mal eine OpenIndiana Installation (SunOS 5.11 oi_147 i86pc) laufen.
Da ist es der alte GRUB 0.97 (Build 5.11-0.148), der das System mit ZFS bootet.
OpenIndiana 147 zfs Version:
Code:
zfs upgrade
This system is currently running ZFS filesystem version 5.

All filesystems are formatted with the current version.
OpenIndiana 147 zpool Version:
Code:
zpool upgrade
This system is currently running ZFS pool version 28.

All pools are formatted using this version.

Was gibt es alles in /boot/grub:
Code:
ll /boot/grub
total 1178
drwxr-xr-x 3 root sys     25 2010-10-20 16:55 .
drwxr-xr-x 5 root sys      6 2010-10-20 16:55 ..
drwxr-xr-x 2 root sys      3 2010-10-20 16:55 bin
-r--r--r-- 1 root sys   1844 2010-09-14 14:44 capability
-r--r--r-- 1 root sys     10 2010-09-14 14:44 default
-rw-r--r-- 1 root sys   9236 2010-09-14 14:44 e2fs_stage1_5
-rw-r--r-- 1 root sys   8964 2010-09-14 14:44 fat_stage1_5
-rw-r--r-- 1 root sys   8244 2010-09-14 14:44 ffs_stage1_5
-rw-r--r-- 1 root sys   1447 2010-09-14 14:44 install_menu
-rw-r--r-- 1 root sys   8344 2010-09-14 14:44 iso9660_stage1_5
-rw-r--r-- 1 root sys   9732 2010-09-14 14:44 jfs_stage1_5
-rw-r--r-- 1 root sys   1546 2010-09-14 14:44 menu.lst
-rw-r--r-- 1 root sys   8436 2010-09-14 14:44 minix_stage1_5
-rw-r--r-- 1 root sys 138928 2010-09-14 14:44 nbgrub
-rw-r--r-- 1 root sys 139952 2010-09-14 14:44 pxegrub
-rw-r--r-- 1 root sys  10676 2010-09-14 14:44 reiserfs_stage1_5
-rw-r--r-- 1 root sys   4241 2010-09-14 14:44 splash.xpm.gz
-rw-r--r-- 1 root sys    512 2010-09-14 14:44 stage1
-rw-r--r-- 1 root sys 139600 2010-09-14 14:44 stage2
-rw-r--r-- 1 root sys 139600 2010-09-14 14:44 stage2_eltorito
-rw-r--r-- 1 root sys   8148 2010-09-14 14:44 ufs_stage1_5
-rw-r--r-- 1 root sys   8520 2010-09-14 14:44 ufs2_stage1_5
-rw-r--r-- 1 root sys   7924 2010-09-14 14:44 vstafs_stage1_5
-rw-r--r-- 1 root sys  10572 2010-09-14 14:44 xfs_stage1_5
-rw-r--r-- 1 root sys  19468 2010-09-14 14:44 zfs_stage1_5
Also mal /boot/grub/menu.lst angeguckt:
Code:
cat /boot/grub/menu.lst 
#
# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#

# With zfs root the active menu.lst file is /<pool>/boot/grub/menu.lst
# This reference copy of the file is not used.

# default menu entry to boot
default 0
#
# menu timeout in second before default OS is booted
# set to -1 to wait for user input
timeout 10
#
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: do not enable grub serial console when BIOS console serial
#	redirection is active.
#   serial --unit=0 --speed=9600
#   terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#   splashimage /boot/grub/splash.xpm.gz
#
# To chainload another OS
#
# title Another OS
#	root (hd<disk no>,<partition no>)
#	chainloader +1
#
# To chainload a Solaris release not based on grub
#
# title Solaris 9
#	root (hd<disk no>,<partition no>)
#	chainloader +1
#	makeactive
#
# To load a Solaris instance based on grub
# If GRUB determines if the booting system is 64-bit capable,
# the kernel$ and module$ commands expand $ISADIR to "amd64"
#
# title Solaris <version>
#	root (hd<disk no>,<partition no>,x)	--x = Solaris root slice
#	kernel$ /platform/i86pc/kernel/$ISADIR/unix
#	module$ /platform/i86pc/$ISADIR/boot_archive

#
# To override Solaris boot args (see kernel(1M)), console device and
# properties set via eeprom(1M) edit the "kernel" line to:
#
#   kernel /platform/i86pc/kernel/unix <boot-args> -B prop1=val1,prop2=val2,...
#
OK, also mal in /rpool/boot/grub/menu.lst reingeguckt:
Code:
cat /rpool/boot/grub/menu.lst
splashimage /boot/grub/splash.xpm.gz
background 215ECA
default 0
timeout 30
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title OpenIndiana Development oi_147 X86
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/openindiana
splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------

# Unknown partition of type 0 found on /dev/rdsk/c5t0d0p0 partition: 1
# It maps to the GRUB device: (hd0,0) .

# Unknown partition of type 0 found on /dev/rdsk/c5t0d0p0 partition: 2
# It maps to the GRUB device: (hd0,1) .

# Unknown partition of type 0 found on /dev/rdsk/c5t0d0p0 partition: 3
# It maps to the GRUB device: (hd0,2) .

# Unknown partition of type 0 found on /dev/rdsk/c5t0d0p0 partition: 4
# It maps to the GRUB device: (hd0,3) .
title openindiana-1
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/openindiana-1
splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title openindiana-2
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/openindiana-2
splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title openindiana-3
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/openindiana-3
splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============
title openindiana-4
findroot (pool_rpool,0,a)
bootfs rpool/ROOT/openindiana-4
splashimage /boot/solaris.xpm
foreground d25f00
background 115d93
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=graphics
module$ /platform/i86pc/$ISADIR/boot_archive
#============ End of LIBBE entry =============

Vielleicht hilft das ja irgendwie weiter.
 
Zurück
Oben