存储 频道

UnixWare7.1.x操作系统下的硬盘管理(6)

 
 2.3.2第二个例子
增加磁盘阵列柜第二个逻辑分区/dev/rdsk/c2b0t5d1。准备将该逻辑分区分成2fdisk分区,并将该逻辑分区的活动fdiskUNIX系统分区(第一个fdisk分区)再分成三个子分区(slice)
1. diskadd –F s5dm c2b0t5d1命令。
2. 在第一个例子的第11行处输入“n,进入fdisk程序对该逻辑分区进行分区。
3. 分成两个fdisk分区,整个过程如下所示:
# fdisk /dev/rdsk/c2b0t5d1s0
The recommended default partitioning for your disk is:
 
 a 100% "UNIX System" partition.
 
To select this, please type "y". To partition your disk
differently, type "n" and the "fdisk" program will let you
select other partitions.y
 
                                      Cylinders                Approx
Partition   Status       Type       Start   End   Length    %      MB
====== ====== ==========   =====   ===   ======   ===   ======
1      Active   UNIX System      0   15299    15300     45    15300.0
2               UNIX System 15300  33998    18699    55    18699.0
 
4. diskadd调用fdisk将硬盘分区完成以后调用disksetup –I /dev/rdsk/c2b0t5d1s0命令对该硬盘进行子分区(slice)。这个过程与第一个例子类似,我们可以证明划分子分区只是针对了active分区,通过下面的操作可以看出来。
1           You will now specify the size in cylinders of each slice.
2           (One megabyte of disk space is approximately 1 cylinders.)
3           There are now 15299 cylinders available on your disk.
4           The filesystem type you have chosen is limited to 1048576 cylinders.
5           How many cylinders would you like for /home/s21 (0 - 15299)?
5行中的0-15299说明该UNIX系统分区的空间是15300cylinder长度,这与用fdisk命令所划分的第1分区(当前活动的UNIX系统分区)的长度完全一样。从而印证了我们关于slice只能对硬盘的当前活动UNIX系统分区继续进行子分区的观点。
2.2.3 第三个例子
这个例子就是一个系统主机的本地IDE硬盘的第二个分区的使用情况。
我们这个例子的环境是一个IDE硬盘被分成两个fdisk分区,其中分区1安装了UnixWare7.1.x操作系统,是当前的活动的UNIX系统分区,容量为3702.4MB472cylinder,第二个分区是UNIX系统分区,容量为2470.9MB315cylinder
我们无法象OpenServer一样将第二个分区在进行细分成很多子分区,然后使用它们,只能利用mkfs命令将第二个fdisk分区作为一个整体进行使用,不能够在继续划分子分区。
                                       Cylinders                Approx
Partition   Status       Type       Start   End   Length    %      MB
=====   ====== =========== =====   ===   ======   ===   ======
    1     Active   UNIX System      0    471     472     60    3702.4
    2             UNIX System    472    786     315     40    2470.9
 
1. mkfs –F vxfs /dev/rdsk/c0b0t0d0p2 5060475
1-F vxfs是指明要创建的文件系统。
2/dev/rdsk/c0b0t0d0p2是第二个分区对应的设备文件。
35060475是以512字节进行计算的sector数量。
4)这个命令的作用就是将第二个分区创建成一个vxfs类型的文件系统。
2. mount –F vxfs /dev/dsk/c0b0t0d0p2 /home/p2
这个命令将第二个分区mount到目录/home/p2上,我们可以象一般的文件系统一样进行使用。
0
相关文章