docs: Removed $/# from code block to make code copy easier. (#3448)

This commit is contained in:
koolhead17
2016-12-15 07:15:47 +05:30
committed by Dee Koder
parent b28ff50126
commit d9fd6f9a96
4 changed files with 36 additions and 36 deletions

View File

@@ -18,13 +18,13 @@ Start ZFS service
```sh
# service zfs start
service zfs start
```
```sh
# dd if=/dev/zero of=/zfs bs=1M count=4000
dd if=/dev/zero of=/zfs bs=1M count=4000
```
@@ -32,7 +32,7 @@ Configure a loopback device on the `/zfs` file.
```sh
# mdconfig -a -t vnode -f /zfs
mdconfig -a -t vnode -f /zfs
```
@@ -40,13 +40,13 @@ Create zfs pool
```sh
# zpool create minio-example /dev/md0
zpool create minio-example /dev/md0
```
```sh
# df /minio-example
df /minio-example
Filesystem 512-blocks Used Avail Capacity Mounted on
minio-example 7872440 38 7872402 0% /minio-example
@@ -56,8 +56,8 @@ Verify if it is writable
```sh
# touch /minio-example/testfile
# ls -l /minio-example/testfile
touch /minio-example/testfile
ls -l /minio-example/testfile
-rw-r--r-- 1 root wheel 0 Apr 26 00:51 /minio-example/testfile
```
@@ -69,8 +69,8 @@ However, this pool is not taking advantage of any ZFS features, so let's create
```sh
# zfs create minio-example/compressed-objects
# zfs set compression=lz4 minio-example/compressed-objects
zfs create minio-example/compressed-objects
zfs set compression=lz4 minio-example/compressed-objects
```
@@ -78,7 +78,7 @@ To keep monitoring your pool use
```sh
# zpool status
zpool status
pool: minio-example
state: ONLINE
scan: none requested
@@ -98,7 +98,7 @@ Now start minio server on the ``/minio-example/compressed-objects``, change the
```sh
# chown -R minio-user:minio-user /minio-example/compressed-objects
chown -R minio-user:minio-user /minio-example/compressed-objects
```
@@ -106,9 +106,9 @@ Now login as ``minio-user`` and start minio server.
```sh
$ curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio
$ chmod 755 minio
$ ./minio server /minio-example/compressed-objects
curl https://dl.minio.io/server/minio/release/freebsd-amd64/minio > minio
chmod 755 minio
./minio server /minio-example/compressed-objects
```
@@ -126,7 +126,7 @@ It is possible to build the minio server from source on FreeBSD. To do this we
We will need to install golang and GNU make:
```sh
$ sudo pkg install go gmake
sudo pkg install go gmake
```
Now we can proceed with the normal build process of minio server as found [here](https://github.com/minio/minio/blob/master/CONTRIBUTING.md). The only caveat is we need to specify gmake (GNU make) when building minio server as the current Makefile is not BSD make compatible:

View File

@@ -41,9 +41,9 @@ Below examples will clarify further:
Example 1: Start distributed Minio instance with 1 drive each on 8 nodes, by running this command on all the 8 nodes.
```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
export MINIO_ACCESS_KEY=<ACCESS_KEY>
export MINIO_SECRET_KEY=<SECRET_KEY>
minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
http://192.168.1.13/export3 http://192.168.1.14/export4 \
http://192.168.1.15/export5 http://192.168.1.16/export6 \
http://192.168.1.17/export7 http://192.168.1.18/export8
@@ -54,9 +54,9 @@ $ minio server http://192.168.1.11/export1 http://192.168.1.12/export2 \
Example 2: Start distributed Minio instance with 4 drives each on 4 nodes, by running this command on all the 4 nodes.
```shell
$ export MINIO_ACCESS_KEY=<ACCESS_KEY>
$ export MINIO_SECRET_KEY=<SECRET_KEY>
$ minio server http://192.168.1.11/export1 http://192.168.1.11/export2 \
export MINIO_ACCESS_KEY=<ACCESS_KEY>
export MINIO_SECRET_KEY=<SECRET_KEY>
minio server http://192.168.1.11/export1 http://192.168.1.11/export2 \
http://192.168.1.11/export3 http://192.168.1.11/export4 \
http://192.168.1.12/export1 http://192.168.1.12/export2 \
http://192.168.1.12/export3 http://192.168.1.12/export4 \

View File

@@ -49,7 +49,7 @@ Example: Start Minio server in a 12 drives setup.
```sh
$ minio server /mnt/export1/backend /mnt/export2/backend /mnt/export3/backend /mnt/export4/backend /mnt/export5/backend /mnt/export6/backend /mnt/export7/backend /mnt/export8/backend /mnt/export9/backend /mnt/export10/backend /mnt/export11/backend /mnt/export12/backend
minio server /mnt/export1/backend /mnt/export2/backend /mnt/export3/backend /mnt/export4/backend /mnt/export5/backend /mnt/export6/backend /mnt/export7/backend /mnt/export8/backend /mnt/export9/backend /mnt/export10/backend /mnt/export11/backend /mnt/export12/backend
```