root/manageBE/convert-readme.txt

Revision 101, 1.1 KB (checked in by cryx, 3 months ago)

another documentation update

Line 
1How to convert your existing ZFS rootfs setup for using it with manageBE
2
3With manageBE the root-filesystems are located at pool/ROOT, it is recommended to have seperate filesystems for /tmp and /var
4
51. Create a snapshot of your current bootfs,
6   e.g. zfs snapshot tank@manageBE
7
82. Create tank/ROOT
9   e.g. zfs create tank/ROOT
10
113. Send and receive the snapshot to the new rootfs
12   e.g. zfs send tank@manageBE |zfs receive tank/ROOT/mynew_rootfs
13   The new rootfs should be mounted at /tank/ROOT/mynew_rootfs now
14   
154. Mark the new rootfs as being a boot-environment
16   e.g. zfs set freebsd:boot-environment=1 tank/ROOT/mynew_rootfs
17
185. Edit /tank/ROOT/mynew_rootfs/boot/loader.conf and add 'vfs.root.mountfrom="zfs:tank/ROOT/mynew_rootfs"
19
206. Activate the new rootfs
21   e.g. zpool set bootfs=tank/ROOT/mynew_rootfs tank
22
23
247. Reboot into the new rootfs
25
268. Delete everything in /tank except the ROOT directory, you can now also delete the tank@manageBE snapshot
27
28DISCLAIMER: Always make backups, don't blame me if this renders your system unusable or you lose any data!
Note: See TracBrowser for help on using the browser.