百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rawfile-localpv

> 云原生
开源

为从 RAW 设备文件循环挂载到本地主机路径存储区中配置的 Kubernetes 动态部署状态持久节点本地卷和文件系统

99 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

为从 RAW 设备文件循环挂载到本地主机路径存储区中配置的 Kubernetes 动态部署状态持久节点本地卷和文件系统

OpenEBS Local PV RawFile

Overview

There are a few reasons to consider using node-based (rather than network-based) storage architecture:

  • Performance: Almost no network-based storage solution can keep up with baremetal disk performance in terms of IOPS/latency/throughput combined. And you’d like to get the best out of the SSD you’ve got!
  • On-premise Environment: You might not be able to afford the cost of upgrading all your networking infrastructure, to get the best out of your network-based storage solution.
  • Complexity: Network-based solutions are distributed systems. And distributed systems are not easy! You might want to have a system that is easier to understand and to reason about. Also, with less complexity, you can fix unpredicted issues more easily.

[!WARNING] We're still pre-v1, meaning our helm api or storage class parameters might have breaking changes

RawFile vs HostPath

Another OpenEBS provisioner, the LocalPV-HostPath makes it pretty easy to automatically provision HostPath PVs and use them in your workloads. That being said, it has the following known limitations:

  • You can’t monitor volume usage: There are hacky workarounds to run “du” regularly, but that could prove to be a performance killer, since it could put a lot of burden on your CPU and cause your filesystem cache to fill up. Not really good for a production workload.
  • You can’t enforce hard limits on your volume’s size: Again, you can hack your way around it, with the same caveats.
  • You are stuck with whatever filesystem your kubelet node is offering.
  • You can’t customize your filesystem.

[!IMPORTANT] All the above issues stem from the same root cause: HostPath/LocalPVs are simple bind-mounts from the host filesystem into the pod.

The idea behind RawFile-LocalPV

To use a Filesystem based extent file as the emulated block device (i.e. a soft-LUN block device), and leverage LINUX loop devices to associate that soft-LUN file as a complete flexible block device (i.e. an emulated soft disk device).

At this point you can create a PV with a filesystem on it, which adds the following benefits:

  • You can monitor volume usage by running df -hT in O(1) since each soft-LUN block device is mounted separately on the local node (displaying utilization status/metrics or each mount point).
  • The size limit is enforced by the operating system, based on the backing file system capacity and soft-lun device file size.
  • Since volumes are backed by different files, each soft-lun device file can be formatted using different filesystems, and/or customized with different filesystem options.

How to Use

Please follow the instructions from the Install Guide.

Documentation

Full documentation lives in the docs directory:

  • Quickstart & User Guide — prerequisites, deployment, first volume
  • User guides: Volumes · Snapshots & Restore · Cloning · Resize · Storage Pools
  • Examples — PVCs, block mode, snapshots, clones, expansion
  • StorageClass Configuration — all storage class parameters
  • Features — capability matrix and deep dives
  • Monitoring & Metrics — Prometheus metrics reference
  • Architecture — components and volume lifecycle
  • Helm Chart Values

Features

  • Direct I/O: Near-zero disk performance overhead
  • Dynamic provisioning
  • Enforced volume size limit
  • Access Modes
    • ReadWriteOnce
    • ReadWriteOncePod
    • ReadOnlyMany
    • ReadWriteMany
  • Volume modes
    • Filesystem mode
    • Block mode
      • The readOnly attribute in the PVC template is not currently handled properly
  • Volume metrics
  • Supports fsTypes: ext4, btrfs, xfs
  • Online expansion: If fs supports it (e.g. ext4, btrfs, xfs)
  • Online shrinking: If fs supports it (e.g. btrfs)
  • Offline expansion/shrinking
  • Volume Cloning
    • Same node cloning
    • Cross node cloning (in progress)
  • Volume Snapshots
    • [x] Filesystem-level snapshots: btrfs supported
    • Block Level snapshots

Project Activity

License compliance

OpenEBS is a CNCF Sandbox Project

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Pythoncsicsi-driverexperimentalhacktoberfest

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类云原生
定价开源

> 相关工具

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,