[Bug 764703] New: kiwi: create same btrfs layout like SLE does
https://bugzilla.novell.com/show_bug.cgi?id=764703 https://bugzilla.novell.com/show_bug.cgi?id=764703#c0 Summary: kiwi: create same btrfs layout like SLE does Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: System Imaging AssignedTo: ms@suse.com ReportedBy: ms@suse.com QAContact: adrian@suse.com Found By: --- Blocker: --- Matthias G. Eckermann I had very long discussions with them, which Subvolumes we create by default on btrfs, and about the overall layout: * KIWI should create the same, thus SUSE customers have the same experience everywhere. * KIWI also should create the btrfs root filesystem in a subvolume named "@". All this has been "blessed" by Chris Mason as "best practice" when I asked him in front of 50 developers in San Francisco in March this year while presenting snapper; Challenges #3 and #4 in the attached presentation. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764703 https://bugzilla.novell.com/show_bug.cgi?id=764703#c1 Thomas Fehr <fehr@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fehr@suse.com --- Comment #1 from Thomas Fehr <fehr@suse.com> 2012-05-30 11:48:36 UTC --- As said we use "@" as default subvolume name and have subvolumes for the following directories: "tmp", "opt", "srv", "var/crash", "var/spool", "var/log", "var/tmp" So a "btrfs subvol list" of a root fs looks the following: inst-sys:~ # btrfs subvol list /mnt/ ID 256 top level 5 path @ ID 259 top level 5 path @/tmp ID 260 top level 5 path @/opt ID 261 top level 5 path @/srv ID 262 top level 5 path @/var/crash ID 263 top level 5 path @/var/spool ID 264 top level 5 path @/var/log ID 265 top level 5 path @/var/run ID 266 top level 5 path @/var/tmp inst-sys:~ # To create that we execute the following commands: /sbin/mkfs.btrfs '/dev/sdc2' /sbin/modprobe btrfs /bin/mount -t btrfs -o subvolid=0 '/dev/sdc2' '/tmp/x' /sbin/btrfs subvolume create /tmp/x/@ /sbin/btrfs subvolume list /tmp/x to determine subvol id of '@' (here 256) /sbin/btrfs subvolume set-default 256 /tmp/x /sbin/btrfs subvolume create /tmp/x/@/tmp /sbin/btrfs subvolume create /tmp/x/@/opt /sbin/btrfs subvolume create /tmp/x/@/srv /sbin/btrfs subvolume create /tmp/x/@/var/crash /sbin/btrfs subvolume create /tmp/x/@/var/spool /sbin/btrfs subvolume create /tmp/x/@/var/log /sbin/btrfs subvolume create /tmp/x/@/var/run /sbin/btrfs subvolume create /tmp/x/@/var/tmp -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=764703 https://bugzilla.novell.com/show_bug.cgi?id=764703#c2 Marcus Schaefer <ms@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #2 from Marcus Schaefer <ms@suse.com> 2012-05-30 18:46:08 UTC --- thanks for the information and fixed commit 305919d7a32a8ba84bc9599b378b989d4bae58dd Author: Marcus Schäfer <ms@suse.de> Date: Wed May 30 16:07:43 2012 +0200 - make sure btrfs based images provide a common subvolume setup as explained in (bnc #764703) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com