虚拟存储服务器搭建,基于Linux平台Openfiler 搭建虚拟存储并配置服务端

二. 存储端(target)配置

Openfiler 的配置,可以参考Oracle 的这遍文档:

2.1 启动iscsi target 服务

在Service 里面启动iscsi target。 启动之后,下次重启会自动启该服务。

606321217777d320186e689a8b64f618.gif

2.2配置iscsi initiator访问IP

只有配置了IP才有权限访问openfiler存储。在system选项的最下面有配置选项,把IP写上即可。 注意这里的子网掩码,写的是255.255.255.255

9e0fd2b72f594d22555bc7d75857f592.gif

2.3创建卷设备

现在我们来配置共享设备。 先对我们没有格式的分区格式化成扩展分区,一定要扩展分区:

[root@san ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 5221.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n

Command action

eextended

pprimary partition (1-4)

e

Partition number (1-4): 3

First cylinder (383-5221, default 383):

Using default value 383

Last cylinder or +size or +sizeM or +sizeK (383-5221, default 5221):

Using default value 5221

Command (m for help): w

The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.

The kernel still uses the old table.

The new table will be used at the next reboot.

Syncing disks.

[root@san ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes

255 heads, 63 sectors/track, 5221 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device BootStartEndBlocksIdSystem

/dev/sda1*1255204825683Linux

/dev/sda22563821020127+82Linux swap / Solaris

/dev/sda3383522138869267+5Extended

格式化之后,我们在openfiler的网页中就能看到这个磁盘信息,如果不格式化,或者格式化错误,是无法编辑的。

06e51a86ddf2eaf7742dfc2c0ec5dcea.gif

页面网下拉,我们能看到创建分区:

d1f809e9c0be2081f68bbf13720d0c18.gif

把所有空间全部创建成一个分区,这个就是一个卷。 之后窗口会显示:

a36afcb937970212296ae3de1928526c.gif

创建完成后, 选择volume Groups。

d535999132bb7afd99055fd81c509d45.gif

然后输入vg名称和对应的设备,确定即可。

872c10ca8cbe7efbc79eb5d9655b00fe.gif0b1331709591d260c1c78e86d0c51c18.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值