linux 下挂载磁盘阵列

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


[root@database1 ~]# 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   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        2053    16386300   82  Linux swap / Solaris
/dev/sda3            2054       17714   125796982+  83  Linux
/dev/sda4           17715       17871     1261102+   5  Extended
/dev/sda5           17715       17871     1261071   8e  Linux 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文件系统进行加载
[root@localhost ~]# mkfs.ext3 /dev/sda      如图8
5)建立一个文件夹
mkdir /pz
    6)把文件系统挂接到linux上去
    mount /dev/sdb  /pz
    7)确认挂载成功
    [root@database1 /]# df -m
文件系统               1M-块        已用     可用 已用% 挂载点
/dev/sda3               119001      3184    109675   3% /
/dev/sda1                   99        12        83  13% /boot
tmpfs                     3988         0      3988   0% /dev/shm
/dev/sdb               2052141       199   1947700   1% /pz

 

你可能感兴趣的:(STORAGE,LINUX)