|
Revision 101, 1.1 KB
(checked in by cryx, 3 months ago)
|
|
another documentation update
|
| Line | |
|---|
| 1 | How to convert your existing ZFS rootfs setup for using it with manageBE |
|---|
| 2 | |
|---|
| 3 | With manageBE the root-filesystems are located at pool/ROOT, it is recommended to have seperate filesystems for /tmp and /var |
|---|
| 4 | |
|---|
| 5 | 1. Create a snapshot of your current bootfs, |
|---|
| 6 | e.g. zfs snapshot tank@manageBE |
|---|
| 7 | |
|---|
| 8 | 2. Create tank/ROOT |
|---|
| 9 | e.g. zfs create tank/ROOT |
|---|
| 10 | |
|---|
| 11 | 3. 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 | |
|---|
| 15 | 4. Mark the new rootfs as being a boot-environment |
|---|
| 16 | e.g. zfs set freebsd:boot-environment=1 tank/ROOT/mynew_rootfs |
|---|
| 17 | |
|---|
| 18 | 5. Edit /tank/ROOT/mynew_rootfs/boot/loader.conf and add 'vfs.root.mountfrom="zfs:tank/ROOT/mynew_rootfs" |
|---|
| 19 | |
|---|
| 20 | 6. Activate the new rootfs |
|---|
| 21 | e.g. zpool set bootfs=tank/ROOT/mynew_rootfs tank |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | 7. Reboot into the new rootfs |
|---|
| 25 | |
|---|
| 26 | 8. Delete everything in /tank except the ROOT directory, you can now also delete the tank@manageBE snapshot |
|---|
| 27 | |
|---|
| 28 | DISCLAIMER: Always make backups, don't blame me if this renders your system unusable or you lose any data! |
|---|