cnjunzi 发表于 2012-7-8 09:18:04

linux 下挂载磁盘阵列


linux 下挂载磁盘阵列

3.把磁盘阵列挂到linux 系统上来

# fdisk -l

Disk /dev/sda: 146.9 GB, 146999869440 bytes
255 heads, 63 sectors/track, 17871 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   IdSystem
/dev/sda1   *         1          13      104391   83Linux
/dev/sda2            14      2053    16386300   82Linux swap / Solaris
/dev/sda3            2054       17714   125796982+83Linux
/dev/sda4         17715       17871   1261102+   5Extended
/dev/sda5         17715       17871   1261071   8eLinux LVM

Disk /dev/sdb: 2186.1 GB, 2186127343616 bytes
255 heads, 63 sectors/track, 265781 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 20 MB, 20971520 bytes
1 heads, 40 sectors/track, 1024 cylinders
Units = cylinders of 40 * 512 = 20480 bytes

Disk /dev/sdc doesn't contain a valid partition table

Disk /dev/sde: 20 MB, 20971520 bytes
1 heads, 40 sectors/track, 1024 cylinders
Units = cylinders of 40 * 512 = 20480 bytes

Disk /dev/sde doesn't contain a valid partition table

上面的 Disk /dev/sdb: 2186.1 GB, 2186127343616 bytes
就是我们分配给linux的磁盘阵列的 2T 的空间
我们做如下的操作:
1)fdisk /dev/sdb   
输入m
    Command (m for help): m   
    写分区表
    2)Command (m for help): p      如图5、6
    3)添加一个新的分区,分区号为1
    Command (m for help): w      如图7
    4)下面要加载文件系统,选择ext3文件系统进行加载
# mkfs.ext3 /dev/sda      如图8
5)建立一个文件夹
mkdir /pz
    6)把文件系统挂接到linux上去
    mount /dev/sdb/pz
    7)确认挂载成功
    # df -m
文件系统               1M-块      已用   可用 已用% 挂载点
/dev/sda3               119001      3184    109675   3% /
/dev/sda1                   99      12      8313% /boot
tmpfs                     3988         0      3988   0% /dev/shm
/dev/sdb               2052141       199   1947700   1% /pz
页: [1] 2
查看完整版本: linux 下挂载磁盘阵列