<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Satbir Singh on Medium]]></title>
        <description><![CDATA[Stories by Satbir Singh on Medium]]></description>
        <link>https://medium.com/@satbir_chhikara?source=rss-e4b8b76ebadc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nr1aiUyNu-x8WFDWexY_eA.jpeg</url>
            <title>Stories by Satbir Singh on Medium</title>
            <link>https://medium.com/@satbir_chhikara?source=rss-e4b8b76ebadc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 18:55:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@satbir_chhikara/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Disk discovery and Disk CR creation]]></title>
            <link>https://medium.com/@satbir_chhikara/disk-discovery-and-disk-cr-creation-dc6dc18596d8?source=rss-e4b8b76ebadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc6dc18596d8</guid>
            <category><![CDATA[openebs]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Satbir Singh]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 11:19:30 GMT</pubDate>
            <atom:updated>2018-12-10T11:19:30.406Z</atom:updated>
            <content:encoded><![CDATA[<p>On Linux systems, hardware devices are accessed through special files (device files) located in the /dev directory. These device files are read from and written to just like normal files, but instead of writing and reading data on<br>a disk, they communicate directly with a kernel driver which then communicates with the hardware. Linux systems use Udev to manage these /dev files at runtime i.e. kernel can add or remove (almost) any device in a running system using udev.</p><p><em>Working of Udev:-<br></em>Udev depends on the sysfs file system, it is sysfs which makes devices visible in user space. When a device is added or removed, kernel events are produced which will notify Udev in user space. The Udev daemon listens to the netlink socket that the kernel uses for communicating with user space applications.<br>The kernel will send a bunch of data through the netlink socket when a device is added to, or removed from a system. The Udev daemon catches all this data and will do the rest, i.e., device node creation, module loading etc. This way, Udev keep /dev directory upto date i.e. /dev directory contains entries only for devices which actually exist on the system at the current time.<br> In summary, Udev is responsible for :-<br>a) Kernel Device Event Management<br>b) Rule Processing and Device Node Creation<br>c) Device Driver Loading For Devices<br>d) Udev Utilities</p><p><em>Creating Disk Custom Resource and pushing to etcd:-</em></p><p>Once disks are detected and device created under /dev directory, with the help of API provided by libudev, we extract disk info like Vendor ID (VID), Product ID (PID), serial number, and device strings. Further, libudev will tell us exactly where inside /dev the device’s node is located. Using this information we create disk object which is pushed in to etcd by K8’s master. K8’s master have one endpoint for etcd so at the end of Udev event handling<br>we post this object to k8’s maaster and master update etcd with this Disk Coustom Resources using DISK-ID as key and rest of info as payload.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc6dc18596d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node Disk Manager]]></title>
            <link>https://medium.com/@satbir_chhikara/node-disk-manager-47aaffa3c436?source=rss-e4b8b76ebadc------2</link>
            <guid isPermaLink="false">https://medium.com/p/47aaffa3c436</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <dc:creator><![CDATA[Satbir Singh]]></dc:creator>
            <pubDate>Fri, 07 Dec 2018 09:42:33 GMT</pubDate>
            <atom:updated>2018-12-10T05:21:12.645Z</atom:updated>
            <content:encoded><![CDATA[<h3>Node Disk Manager!! What ? Why ?</h3><p>Over last decade, container adoption in IT industry is increased many folds. Almost all the data centers and enterprises using container technology to perfrom day to day task. This right shift is mainly because of a) <em>decomposition of Monolithic Architecture of application into microservice achitecture where large monolithic application is broken into small-small discrete functions or process which run independently without sharing data with each other b) availability of open source production level Orchestration software package kubernetes which make creation, deployment and management of containers much easy. Infact most of the tasks in k8’s achieved via event be it creation, depeloyment and schedulign decisions.</em></p><p>Since inception of k8’s, unaccountable efforts has been gone in to improving creation of application pods, scheduling of pod, deployment of pods and various tool to manage cluster as a whole. Lots of add-ons have been developed to monitor and auto-heal K8’s cluster. One area which being neglected is storage/disks, almost all the workflows are automated but adding storage by picking right choice of disks and monitoring disks health yet to be automated.</p><p>We, Mayadata.io organization, developing an add-on of K8’s which will address unresolved issues around storage in K8’s cluster. We name this add-on as <em>Node Disk Manager </em>which intended to:-</p><p>1. be extensible in terms of adding support for different kinds of Disk CRs.</p><p>2. act as a bridge to augment the functionality already provided by the kubelet or other infrastructure containers running on the node. For example, <em>ndm </em>will have to interface with node-problem-detector or heapster etc.</p><p>3. be considered as a Infrastructure Pod (or a daemonset) that runs on each of the Kubernetes node or the functionality could be embedded into other Infrastructure Pods, similar to node-problem-detector.</p><p>4. discover attached disk resource and push them to etcd as Disk Custom Resources.</p><p>5. access disk properties in a generic way by abstracting the vendor specific implementations.</p><p>6. select disk for particular workload based on performance SLAs that need info like types of disk (SSDs, NVMe devices, etc.,) available in kubernetes Node/Cluster.</p><p>7. allow building predictive error handling capabilities by hooking into management interfaces that publish disk events.</p><p>8. mark disk claimed if it is used by one of node/app in kubernetes cluster.</p><p>9. dynamic provisioning of disks from external storage in response to DiskClaim custom resource from user.</p><p>10. support for notifying events to an API endpoint.</p><p>11. smart decisions to choose replication target disk/node if disk location is known upfront. Here location refer to physical location of the disks in the cluster in terms of Node, Rack, Data Center/Zone.</p><p>12. provide NUMA details of NVMe devices for better scheduling of Apps which need high performance.</p><p>13. disk partitioning and disk formatting support.</p><p>In broader vision, <em>Node Disk Manager</em> should able to do each and everything that is required for a workflow be it provisioning disk, be it facilitating constructing and exporting pool, replacing bad disk with new disk if disk goes bad in a storage pool, be it reporting diagnostic stats or be it managing disk inventory and accounting of disks being used by whom. This is our vision as well as roadmap for NDM. Here is detailed list of features/functionality that NDM either supporting or going to support in future:-</p><p><strong>Disk Custom Resource:</strong> <em>Node Disk Manager</em> support creating a Disk resoruce and pushing it to etcd so that K8’s can use this info in pool creation. In Disk Custom Resources, we are putting info like which node this belong, type of disk, Sector size and many more.</p><p><em>Node Disk Manager </em>integrated with OpenSeaChest library (developed by Seagate) to extract the info for a device/disk. Since OpenSeaChest library support most of protocols and media type, so we are getting much detailed info for disks.</p><p><strong>NorthBound Provisioning: </strong><em>Node Disk Manager</em> help in north bound pool and storage provision. Application ask for disks to create a pool using NorthBound provision (in our case OpenEBS), <em>Node Disk Manager</em> provide free disks which are available in inventory and which match request criteria like SSD or HDD, should be from which zone (for high availability) etc. <em>Node Disk Manager</em> track disks used by which node, under which storage pool by which application. This kind of information gives a clear picture to storage admin or persona who is using K8’s cluster with CAS.</p><p><strong>SouthBound Provisioning</strong>: <em>Node Disk Manager</em> on behalf of storage control plane, can actually go and create a disk and attach it a particular node in K8’s cluster. Eventually <em>Node Disk Manager</em> rezise storage based on demand. SouthBound provision should pick create disk from request specified zone and rack for high availability and maximum throughput. We will be putting some intelligence in Node Disk Manager to create a disk based on locality. Node Disk Manager pick SSD or HDD based on latency requirement.</p><p><strong>Health Monitoring &amp; Auto-healing: </strong>Intelligence will be developed in <em>Node Disk Manager</em> to monitor health of disks like temperature, media errors and bad sectors and based on these numbers, <em>Node Disk Manager</em> should be able to send a warning to control plane and if configured to auto-heal then it should replace this disk with other disk in a pool.</p><p><strong>Topology support for NUMA</strong>: <em>Node Disk Manager</em> should be able to extract topology info of a disk like to which core this disk is attached to. For perfromance reasons, this information can be used by SPDK deployment where SPDK can be deployed smartly on core where NVMe device is conntected.</p><p><strong>Disk Formatting: </strong>As of today we do not have any plan to support is but if need arise, we can support disk formating for a specified file system.</p><h4>Sample Disk CR</h4><p>Name: disk-9b119518ce695e6858a8a49d7db1edd4<br>Namespace: <br>Labels: kubernetes.io/hostname=kubecon1<br> ndm.io/disk-type=disk<br>Annotations: &lt;none&gt;<br>API Version: openebs.io/v1alpha1<br>Kind: Disk<br>Metadata:<br> Cluster Name: <br> Creation Timestamp: 2018–12–10T04:22:45Z<br> Generation: 1<br> Resource Version: 541383<br> Self Link: /apis/openebs.io/v1alpha1/disks/disk-9b119518ce695e6858a8a49d7db1edd4<br> UID: 3e9ae310-fc33–11e8–8052–005056ba71c3<br>Spec:<br> Capacity:<br> Physical Sector Size: 4096<br> Logical Sector Size: 512<br> Storage: 400088457216<br> Details:<br> Drive Type: SSD<br> Rotation Rate: 0<br> Compliance: SPC-4<br> Firmware Revision: F820<br> Model: SDLKODDR400G5CA1<br> Serial: 500117310089d1f0<br> Vendor: SmrtStor<br> Devlinks:<br> Kind: by-id<br> Links:<br> /dev/disk/by-id/scsi-3500117310089d1f0<br> /dev/disk/by-id/wwn-0x500117310089d1f0<br> Kind: by-path<br> Links:<br> /dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:1:0<br> Path: /dev/sdb<br>Stats:<br> Device Utilization Rate: 0<br> Disk Temperature:<br> Current Temperature: 40<br> Highest Temperature: 0<br> Lowest Temperature: 0<br> Percent Endurance Used: 8<br> Total Bytes Read: 3643479758336<br> Total Bytes Written: 454166890964992<br>Status:<br> State: Active<br>Events: &lt;none&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=47aaffa3c436" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>