Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage #14

Open
gobomb opened this issue Feb 28, 2020 · 3 comments
Open

storage #14

gobomb opened this issue Feb 28, 2020 · 3 comments

Comments

@gobomb
Copy link
Owner

gobomb commented Feb 28, 2020

vi /etc/exports

/nfs 10.10.14.0/24(rw,async,no_subtree_check,no_root_squash)

exportfs -a

@gobomb
Copy link
Owner Author

gobomb commented Feb 28, 2020

@gobomb
Copy link
Owner Author

gobomb commented Mar 30, 2020

字符设备/原始设备:程序只能读写对齐的块而不能直接读单个字符
块设备:提供缓存,程序可以读任意大小的块(包括单个字符)

Linux下可以通过O_DIRECT flag打开块设备取得相当于打开字符设备的效果

ref:https://en.wikipedia.org/wiki/Device_file#Block_devices

块设备 也叫做块特殊文件,它的行为通常与普通文件相似:它们是字节数组,并且在给定位置读取的值是最后写入该位置的值。来自块设备的数据可以缓存在内存中,并从缓存中读取;写入可以被缓冲。块设备通常是可搜索的,块设备的概念是,相应的硬件可以一次读取或者写入整个块,例如磁盘上的一个扇区

字符设备 也称为字符特殊文件,它的行为类似于管道、串行端口。将字节写入字符设备可能会导致它在屏幕上显示,在串行端口上输出,转换为声音。

@gobomb
Copy link
Owner Author

gobomb commented May 8, 2020

https://zhuanlan.zhihu.com/p/69997558

ceph 块设备、文件系统、对象存储

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant