1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +00:00

Merge pull request #1389 from SvenDowideit/zfs-notes

Some things i noticed while i was testing zfs
This commit is contained in:
Darren Shepherd
2016-11-14 07:45:13 -07:00
committed by GitHub

View File

@@ -13,10 +13,13 @@ In order to start using ZFS, you'll need to first enable one of the [persistent
$ sudo ros console switch ubuntu $ sudo ros console switch ubuntu
$ sudo ros service enable kernel-headers $ sudo ros service enable kernel-headers
$ sudo ros service up -d kernel-headers $ sudo ros service up -d kernel-headers
$ sudo ros service logs kernel-headers
``` ```
When RancherOS console has reloaded, you will have logged into the persistent console. The current kernel headers will need to be downloaded using the `ros service enable` and the service will be started with `ros service up -d kernel-headers`. When RancherOS console has reloaded, you will have logged into the persistent console. The current kernel headers will need to be downloaded using the `ros service enable` and the service will be started with `ros service up -d kernel-headers`.
You can make sure that the headers are in the right place by looking at the kernel-headers service logs.
#### Installing ZFS on Ubuntu Console #### Installing ZFS on Ubuntu Console
Based on the [Ubuntu ZFS docs](https://wiki.ubuntu.com/Kernel/Reference/ZFS), you only need to install `zfs` package into the Ubuntu console to enable ZFS. All the other necessary packages will be installed as its dependencies. Based on the [Ubuntu ZFS docs](https://wiki.ubuntu.com/Kernel/Reference/ZFS), you only need to install `zfs` package into the Ubuntu console to enable ZFS. All the other necessary packages will be installed as its dependencies.
@@ -26,6 +29,8 @@ $ sudo apt update
$ sudo apt install zfs $ sudo apt install zfs
``` ```
Then have a look at the zfs dmks build log file - which is likely to be a file similar to `/var/lib/dkms/zfs/0.6.5.6/build/make.log`.
#### Mounting ZFS filesystems on boot #### Mounting ZFS filesystems on boot
In order for ZFS to load on boot, it needs to be added to `modules` list in the config. Prior to adding it to the list of modules, you'll need to check to see if there are other modules that are currently enabled. In order for ZFS to load on boot, it needs to be added to `modules` list in the config. Prior to adding it to the list of modules, you'll need to check to see if there are other modules that are currently enabled.
@@ -95,6 +100,7 @@ Now you'll need to remove `-s overlay` (or any other storage driver) from the Do
$ sudo ros config set rancher.docker.storage_driver '' $ sudo ros config set rancher.docker.storage_driver ''
$ sudo ros config set rancher.docker.graph /zpool1/docker $ sudo ros config set rancher.docker.graph /zpool1/docker
# After editing Docker daemon args, you'll need to start Docker # After editing Docker daemon args, you'll need to start Docker
$ sudo system-docker stop docker
$ sudo system-docker start docker $ sudo system-docker start docker
``` ```