jayli426 发表于 2010-03-17 17:48

The chunk name = the dev name?

To create a raw device, configure a block device (hard disk) with a raw
interface. The storage space that the device provides is called raw disk space.
A chunk of raw disk space is physically contiguous.
The name of the chunk is the name of the character-special file in the /dev
directory. In many operating systems, you can distinguish the characterspecial
file from the block-special file by the first letter in the filename
(typically r). For example, /dev/rsd0f is the character-special device that
corresponds to the /dev/sd0f block-special device.

今天在IDS admin guid看到这么一句话,为了避免断章取义
我将全文摘录下来

这句话感觉是错的
“The name of the chunk is the name of the character-special file in the /dev directory”

从网上弄来一个经典的的onspace命令
onspace -c -d workdbs -p /dev/rdsk/0s2 -o 100000 -s 100000
onspace -c -d tmpdbs -p/dev/rdsk/0s2 -o 200000 -s 100000
onspace -a    workdbs -p /dev/rdsk/0s2 -o 100000 -s 100000

同样一个设备名称
/dev/rdsk/0s2

请问对应哪个chunk呢?

liaosnet 发表于 2010-03-17 18:10

加上 offset ~:sleepy::sleepy:

jayli426 发表于 2010-03-19 09:42

请问,那这样理解是否正确
pathname ,size,offset 唯一标示一个 chunk?

liaosnet 发表于 2010-03-19 11:54

请问,那这样理解是否正确
pathname ,size,offset 唯一标示一个 chunk?
jayli426 发表于 2010-03-19 09:42 http://bbs3.chinaunix.net/images/common/back.gif


    是的~要是3个数值间存在交叉,那么CHUNK中的数据将会错乱..

jayli426 发表于 2010-03-19 15:14

呵呵,但是容小弟抬杠一把

"The name of the chunk is the name of the character-special file in the /dev directory"

这个话明显还是不对啊
因为一个character file 上明显可以对应多个chunk啊
至少让我这个初学者产生误解
但是感谢 大虾为我这个初学者澄清概念:em51:

liaosnet 发表于 2010-03-19 15:25

呵呵,但是容小弟抬杠一把

"The name of the chunk is the name of the character-special file in th ...
jayli426 发表于 2010-03-19 15:14 http://bbs2.chinaunix.net/images/common/back.gif


    IBM的文档又不是100%没问题~能看到有问题,那就说明你明白了呗~:emn10:

你权当这里说的是个例子而已,而你说的就是特例了..

jayli426 发表于 2010-03-19 15:32

大虾就是大侠
孟子曰“尽信书不如无书”
大概就是说的 大虾这样的 prophet吧
页: [1]
查看完整版本: The chunk name = the dev name?