技术标签: 存储
附下载地址
http://www.openfiler.com/community/download
https://192.168.149.129:446
openfiler
password
划分步骤:PV->VG-LV
1 选择块设备,如有多个块设备可分别操作
2 在其中一个块设备中创建PV
3 创建vg
输入一个名称用于创建vg,可选择多个pv创建vg
4 创建lv
选择vg名称,点击change,开始创建lv
如下创建两个lv,分别指定大小,类型选择“block”,用于Oracle共享磁盘
1、创建pv
2、创建raid
3、创建vg
4、创建lv
1、点击“ADD"创建存储的target,用于客户端发现存储
2、点击update更新target信息
1、在LUN Mapping中点击map,将lun映射到iscsi target中
lun已映射完毕
1、要使客户端可以连接iscsi存储,需要在网络访问配置,添加客户端ip地址
2、设置网段限制客户端访问lun
将客户端的access设置为allow,不然客户端无法发现存储
在客户端服务器需要安装iscsi initiator用于发现以及登录iscsi存储
1、检查是否有iscsi initiator
[root@rac1 tmp]# rpm -qa|grep iscsi
iscsi-initiator-utils-6.2.0.874-4.el7.x86_64
libvirt-daemon-driver-storage-iscsi-3.2.0-14.el7.x86_64
iscsi-initiator-utils-iscsiuio-6.2.0.874-4.el7.x86_64
libiscsi-1.9.0-7.el7.x86_64
2、启动iscsi并添加到系统服务
systemctl start iscsi
systemctl start iscsid
systemctl enable iscsid
systemctl enable iscsi
3、识别存储
[root@rhel6 iscsi]# iscsiadm -m discovery -t sendtargets -p 172.16.4.101:3260
4、一次性登录所有路径存储
[root@rac1 tmp]# iscsiadm -m node --loginall=all
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.104,3260] (multiple)
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.101,3260] (multiple)
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.102,3260] (multiple)
Logging in to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.103,3260] (multiple)
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.104,3260] successful.
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.101,3260] successful.
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.102,3260] successful.
Login to [iface: default, target: iqn.2006-01.com.openfiler:tsn.4986a47f3055, portal: 172.16.4.103,3260] successful.
逐个登录各个路径方式,根据openfiler 4个网卡ip地址登录:
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.d61a1fa41fa2 -p 172.16.4.101:3260 -l
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.d61a1fa41fa2 -p 172.16.4.102:3260 -l
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.d61a1fa41fa2 -p 172.16.4.103:3260 -l
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.d61a1fa41fa2 -p 172.16.4.104:3260 -l
5、检查客户端iscsi连接相关信息
[root@rac1 tmp]# iscsiadm -m session
tcp: [1] 172.16.4.101:3260,1 iqn.2006-01.com.openfiler:tsn.4986a47f3055 (non-flash)
tcp: [2] 172.16.4.104:3260,1 iqn.2006-01.com.openfiler:tsn.4986a47f3055 (non-flash)
tcp: [3] 172.16.4.102:3260,1 iqn.2006-01.com.openfiler:tsn.4986a47f3055 (non-flash)
tcp: [4] 172.16.4.103:3260,1 iqn.2006-01.com.openfiler:tsn.4986a47f3055 (non-flash)
6、设置开机自动扫链路
添加存储的target name,便于客户端开机自动扫描存储
vi /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2006-01.com.openfiler:tsn.4986a47f3055
7、检查多路径软件是否安装
客户端需要使用多路径软件将各个磁盘路径聚合,检查如下两个软件包是否安装
(1)device-mapper
(2)device-mapper-multipath
[root@rac2 ~]# rpm -qa |grep device-mapper
device-mapper-event-libs-1.02.140-8.el7.x86_64
device-mapper-persistent-data-0.7.0-0.1.rc6.el7.x86_64
device-mapper-1.02.140-8.el7.x86_64
device-mapper-multipath-libs-0.4.9-111.el7.x86_64
device-mapper-multipath-0.4.9-111.el7.x86_64
device-mapper-libs-1.02.140-8.el7.x86_64
device-mapper-event-1.02.140-8.el7.x86_64
如未安装multipath,使用yum安装
yum install device-mapper-multipath
启动多路径服务
systemctl start multipathd
8、开启multipath开机自启
systemctl enable multipathd
9、将多路径加载到系统内核
modprobe dm-multipath
modprobe dm-round-robin
10、生成multipath多路径配置文件
/sbin/mpathconf --enable
生成的文件在/etc/multipath.conf
11、重新加载multipath路径
[root@rac1 tmp]# multipath -F --------->删除路径
[root@rac1 tmp]# multipath -v2 --------->格式化
create: mpathc (14f504e46494c45524f444c7844412d717a557a2d6b7a6752) undef OPNFILER,VIRTUAL-DISK
size=35G features=‘0’ hwhandler=‘0’ wp=undef
|-± policy=‘service-time 0’ prio=1 status=undef
| - 34:0:0:0 sdb 8:16 undef ready running |-+- policy='service-time 0' prio=1 status=undef |
- 35:0:0:0 sdg 8:96 undef ready running
|-± policy=‘service-time 0’ prio=1 status=undef
| - 36:0:0:0 sde 8:64 undef ready running
-± policy=‘service-time 0’ prio=1 status=undef
- 37:0:0:0 sdd 8:48 undef ready running create: mpathd (14f504e46494c45526147693538302d577037452d39596459) undef OPNFILER,VIRTUAL-DISK size=30G features='0' hwhandler='0' wp=undef |-+- policy='service-time 0' prio=1 status=undef |
- 34:0:0:1 sdc 8:32 undef ready running
|-± policy=‘service-time 0’ prio=1 status=undef
| - 35:0:0:1 sdi 8:128 undef ready running |-+- policy='service-time 0' prio=1 status=undef |
- 36:0:0:1 sdh 8:112 undef ready running
-+- policy='service-time 0' prio=1 status=undef
- 37:0:0:1 sdf 8:80 undef ready running
12、再次查看多路径状态
[root@rac1 ~]# service multipathd start
[root@rac1 tmp]# multipath -ll
4路径存储识别成功
13、查看系统设备
[root@rac1 tmp]# ll /dev/mapper/
多路径软件设置完成后,会在如上路径创建对应设备名称
扩容
(a)如果存储空间不够了,要新增加存储 可执行iscsiadm -m session -R去发现
然后multipath -F以及multipath -v2
(b)刷过之后,看看有没有新增的卷
两种方式fdisk -l 或者cat /proc/scsi/scsi
删除/注销 target连接
iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.5293d7449ee6 -p 172.16.4.101:3260 -u
iscsiadm -m node --logout
如果直接在vg上扩展容量,可尝试在openfiler web界面中iSCSI Targets Target Configuration重新update LUN Mapping重新map
客户端上注销iscsi,重新登录iscsi解决,再multipath -ll
文章浏览阅读1k次。通过使用ajax方法跨域请求是浏览器所不允许的,浏览器出于安全考虑是禁止的。警告信息如下:不过jQuery对跨域问题也有解决方案,使用jsonp的方式解决,方法如下:$.ajax({ async:false, url: 'http://www.mysite.com/demo.do', // 跨域URL ty..._nginx不停的xhr
文章浏览阅读2k次。关于在 Oracle 中配置 extproc 以访问 ST_Geometry,也就是我们所说的 使用空间SQL 的方法,官方文档链接如下。http://desktop.arcgis.com/zh-cn/arcmap/latest/manage-data/gdbs-in-oracle/configure-oracle-extproc.htm其实简单总结一下,主要就分为以下几个步骤。..._extproc
文章浏览阅读1.5w次。linux下没有上面的两个函数,需要使用函数 mbstowcs和wcstombsmbstowcs将多字节编码转换为宽字节编码wcstombs将宽字节编码转换为多字节编码这两个函数,转换过程中受到系统编码类型的影响,需要通过设置来设定转换前和转换后的编码类型。通过函数setlocale进行系统编码的设置。linux下输入命名locale -a查看系统支持的编码_linux c++ gbk->utf8
文章浏览阅读750次。今天准备从生产库向测试库进行数据导入,结果在imp导入的时候遇到“ IMP-00009:导出文件异常结束” 错误,google一下,发现可能有如下原因导致imp的数据太大,没有写buffer和commit两个数据库字符集不同从低版本exp的dmp文件,向高版本imp导出的dmp文件出错传输dmp文件时,文件损坏解决办法:imp时指定..._imp-00009导出文件异常结束
文章浏览阅读143次。当下是一个大数据的时代,各个行业都离不开数据的支持。因此,网络爬虫就应运而生。网络爬虫当下最为火热的是Python,Python开发爬虫相对简单,而且功能库相当完善,力压众多开发语言。本次教程我们爬取前程无忧的招聘信息来分析Python程序员需要掌握那些编程技术。首先在谷歌浏览器打开前程无忧的首页,按F12打开浏览器的开发者工具。浏览器开发者工具是用于捕捉网站的请求信息,通过分析请求信息可以了解请..._初级python程序员能力要求
文章浏览阅读7.6k次,点赞2次,收藏6次。@Service标注的bean,类名:ABDemoService查看源码后发现,原来是经过一个特殊处理:当类的名字是以两个或以上的大写字母开头的话,bean的名字会与类名保持一致public class AnnotationBeanNameGenerator implements BeanNameGenerator { private static final String C..._@service beanname
文章浏览阅读6.9w次,点赞73次,收藏463次。1.前序创建#include<stdio.h>#include<string.h>#include<stdlib.h>#include<malloc.h>#include<iostream>#include<stack>#include<queue>using namespace std;typed_二叉树的建立
文章浏览阅读7.1k次。在Asp.net上使用Excel导出功能,如果文件名出现中文,便会以乱码视之。 解决方法: fileName = HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8);_asp.net utf8 导出中文字符乱码
文章浏览阅读2.1k次,点赞4次,收藏23次。第一次实验 词法分析实验报告设计思想词法分析的主要任务是根据文法的词汇表以及对应约定的编码进行一定的识别,找出文件中所有的合法的单词,并给出一定的信息作为最后的结果,用于后续语法分析程序的使用;本实验针对 PL/0 语言 的文法、词汇表编写一个词法分析程序,对于每个单词根据词汇表输出: (单词种类, 单词的值) 二元对。词汇表:种别编码单词符号助记符0beginb..._对pl/0作以下修改扩充。增加单词
文章浏览阅读773次。我在使用adb.exe时遇到了麻烦.我想使用与bash相同的adb.exe shell提示符,所以我决定更改默认的bash二进制文件(当然二进制文件是交叉编译的,一切都很完美)更改bash二进制文件遵循以下顺序> adb remount> adb push bash / system / bin /> adb shell> cd / system / bin> chm..._adb shell mv 权限
文章浏览阅读6.8k次,点赞12次,收藏125次。1. 单目相机标定引言相机标定已经研究多年,标定的算法可以分为基于摄影测量的标定和自标定。其中,应用最为广泛的还是张正友标定法。这是一种简单灵活、高鲁棒性、低成本的相机标定算法。仅需要一台相机和一块平面标定板构建相机标定系统,在标定过程中,相机拍摄多个角度下(至少两个角度,推荐10~20个角度)的标定板图像(相机和标定板都可以移动),即可对相机的内外参数进行标定。下面介绍张氏标定法(以下也这么称呼)的原理。原理相机模型和单应矩阵相机标定,就是对相机的内外参数进行计算的过程,从而得到物体到图像的投影_相机-投影仪标定
文章浏览阅读2.2k次。文章目录Wayland 架构Wayland 渲染Wayland的 硬件支持简 述: 翻译一篇关于和 wayland 有关的技术文章, 其英文标题为Wayland Architecture .Wayland 架构若是想要更好的理解 Wayland 架构及其与 X (X11 or X Window System) 结构;一种很好的方法是将事件从输入设备就开始跟踪, 查看期间所有的屏幕上出现的变化。这就是我们现在对 X 的理解。 内核是从一个输入设备中获取一个事件,并通过 evdev 输入_wayland