Please enter the number of file systems you want this area to be divided into, or press to get the default of 17 file system(s) 2 +------------------+------------+--------+---+-------------+------------+ | Name | Type | New FS | # | First Block | Last Block | +------------------+------------+--------+---+-------------+------------+ | dbspace01 | NON FS | no | 0 | 0| 1999999| | dbspace02 | NON FS | no | 1 | 2000000| 3999999| | dbspace03 | NON FS | no | 2 | 4000000| 5999999| | dbspace04 | NON FS | no | 3 | 6000000| 7999999| | dbspace05 | NON FS | no | 4 | 8000000| 9999999| | | NOT USED | no | 5 | -| -| | | NOT USED | no | 6 | -| -| | hd02 | WHOLE DISK | no | 7 | 0| 10239999| +------------------+------------+--------+---+-------------+------------+ 10238992 1K blocks for divisions, 1008 1K blocks reserved for the system [color=red:1438e14bf8]n[ame] Name or rename a division. c[reate] Create a new file system on this division. t[ype] Select or change filesystem type on new filesystems. p[revent] Prevent a new file system from being created on this division. s[tart] Start a division on a different block. e[nd] End a division on a different block. r[estore] Restore the original division table.[/color:1438e14bf8] Enter your choice or q to quit: ------------------------ n:命名filesystem s:开始block e:结束block t:更改类型 -------------------------
# divvy –m /dev/rhd03 +------------------+------------+--------+---+-------------+------------+ | Name | Type | New FS | # | First Block | Last Block | +------------------+------------+--------+---+-------------+------------+ | dbspace06 | NON FS | no | 0 | 0| 1999999| | dbspace07 | NON FS | no | 1 | 2000000| 3999999| | dbspace08 | NON FS | no | 2 | 4000000| 5999999| | dbspace09 | NON FS | no | 3 | 6000000| 7999999| | dbspace10 | NON FS | no | 4 | 8000000| 8972741| | | NOT USED | no | 5 | -| -| | | NOT USED | no | 6 | -| -| | hd03 | WHOLE DISK | no | 7 | 0| 8972742| +------------------+------------+--------+---+-------------+------------+ 备注: (1)、通常采用的方式是Raw Device,也称“裸设备”,就是在安装Unix磁盘时,用divvy命令在磁盘分区中建立一块Non FS分区,对此分区的大小预先要估算好(7chunk*2,000,000k=14,000,000k)。Online系统对“裸设备”的管理比Unix文件系统的管理效率高很多。 (2)、为系统准备磁盘空间时,必须首先设立正确的权限,并且建议为原始设备建立连接,并且每个chunk不得大于2G。在/dev目录下,自动产生dbspace01-dbspace10; rdbspace01-rdbspace10 的10个区。 (3)、dbspace**修改权限、属性 # chown –R informix:informix *dbspace* # chmod 660 *dbspace* 注:在/dev下 ,可以像文件一样操作dbspace,如rm dbspace02