Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Udpate regarding exclude filter
Browse files Browse the repository at this point in the history
Updated a note for creation of bd cr for partitioned diks and use of disk mount path as basepath for hostpath SC

Signed-off-by: ranjithwingrider <ranjith.raveendran@mayadata.io>
  • Loading branch information
ranjithwingrider committed Jun 19, 2019
1 parent 3a86848 commit a124334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/uglocalpv.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ Verify if the StorageClass is having the updated hostpath using the following co
kubectl describe sc openebs-hostpath
```


**Note**: If you are using a mount path of an external device as `Basepath` for the default hostpath Storage Class, then you must add the corresponding block device path in the exclude filter so that NDM will not select this disk for BD creation. For example, `/dev/sdb` is mounted as `/mnt/ext_device`, and if you are using `/mnt/ext_device` as Basepath in default StorageClass `openebs-hostpath`, then you must add `/dev/sdb` in the exclude filter of NDM configuration. See [here](/1.0.0-RC2/docs/next/ugndm.html#Exclude-filters) for customizing the exclude filter in NDM configuration.

<br>

Expand Down
4 changes: 2 additions & 2 deletions docs/ugndm.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ filterconfigs:
exclude: "loop,/dev/fd0,/dev/sr0,/dev/ram,/dev/dm-,/dev/md"
```



<h3><a class="anchor" aria-hidden="true" id="create-blockdevice-CRs-for-partitioned-disks"></a>Create blockdevice CRs for partitioned disks</h3>

Currently, NDM is not selecting partitioned disks for creating device resource. But, you can create block device resource for the partitioned disks manually. The following are the steps for the creation of block device resource.
Expand Down Expand Up @@ -142,6 +140,8 @@ Currently, NDM is not selecting partitioned disks for creating device resource.

5. Verify if the blockdevice is created by running the following `kubectl get blockdevice -n openebs` command.

**Note:** If you are creating a block device CR for a partitioned device path, then you must add the corresponding disk in the exclude filter so that NDM will not select this disk for BD creation. For example, `/dev/sdb` have 2 partition, say `/dev/sdb1` and `/dev/sdb2`. If block device CR is creating for `/dev/sdb1` by manually, then you must add `/dev/sdb` in the exclude filter of NDM configuration. See [here](#Exclude-filters) for customizing the exclude filter in NDM configuration.

<br>

## See Also:
Expand Down

0 comments on commit a124334

Please sign in to comment.