3-xen-orchestra-install #4
@ -327,13 +327,13 @@ Create datasets
|
|||||||
zfs create -o canmount=off zpool/data/opt
|
zfs create -o canmount=off zpool/data/opt
|
||||||
zfs create zpool/data/opt/git
|
zfs create zpool/data/opt/git
|
||||||
```
|
```
|
||||||
Remember that the `zpool/data` dataset already exists and has that it has both `mountpoint=/` and `canmount=off` set. It is not and cannot be mounted itself, it instead conveniently anchors datasets at `/`. Since the `canmount` dataset property cannot be inherited and defaults to `canmount=on` we have to manually specify `-o canmount=off`. Our new `zpool/data/opt` should not automatically mount into `/opt`.
|
Remember that the `zpool/data` dataset already exists and that it has both `mountpoint=/` and `canmount=off` set. It is not and cannot be mounted itself, it instead conveniently anchors datasets at `/`. Since the `canmount` dataset property cannot be inherited and defaults to `canmount=on` we have to manually specify `-o canmount=off`. Our new `zpool/data/opt` should not automatically mount into `/opt`.
|
||||||
|
|
||||||
We then create the child dataset `zpool/data/opt/git`, it defaults to `canmount=on` thus immediately shows up at `/opt/git`.
|
We then create the child dataset `zpool/data/opt/git`, it defaults to `canmount=on` thus immediately shows up at `/opt/git`.
|
||||||
|
|
||||||
Move data back into place and clean up temp directory
|
Move data back into place and clean up temp directory
|
||||||
```
|
```
|
||||||
rsync -av --remove-source-files '/opt/git'{'.bak',}
|
rsync -av --remove-source-files '/opt/git'{'.bak',}'/'
|
||||||
find '/opt/git.bak' -type d -empty -delete
|
find '/opt/git.bak' -type d -empty -delete
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user