栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ubuntu iscsi rdma

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ubuntu iscsi rdma

SCSI的逻辑拓扑 

ISCSI系统模型

前置:

192.168.10.20 Target

192.168.10.12 Initiator

配置iSCSI Target 
#安装包 
apt -y install open-iscsi

#查看状态
systemctl status tgt

 

# 查看挂载的磁盘
lsblk

哪些类型的磁盘装置可以分享?backing-store (虚拟的装置), direct-store (实际的装置)

使用 dd 指令所建立的大型档案可供仿真为磁盘 (无须预先格式化);使用单一分割槽 (partition) 分享为磁盘;使用单一完整的磁盘 (无须预先分割);使用磁盘阵列分享 (其实与单一磁盘相同方式);使用软件磁盘阵列 (software raid) 分享成单一磁盘;使用 LVM 的 LV 装置分享为磁盘。

# 修改配置文件
# https://linux.die.net/man/5/targets.conf

vim /etc/tgt/conf.d/iscsi.conf

# create new
# naming rule : [ iqn.(year)-(month).(reverse of domain name):(any name you like) ]

     # Provided device as an iSCSI target
     backing-store /dev/nvme0n1p1
     # 允许所有机器访问
     initiator-address ALL




#进阶版本

    # provided devicce as a iSCSI target
    backing-store /dev/nvme0n1p1
    # 允许initiator-name为如下的机器连接
    initiator-name iqn.2018-05.world.srv:www.initiator01
    # 需要initator登录
    incominguser username password
 


#重启服务
systemctl restart tgt

注意在backing-store里的逻辑磁盘,不能先mount到系统里,否则会出现tgtadm --mode target --op show看不到Backing store path内容

#查看状态
tgtadm --mode target --op show

配置iSCSI initiator
apt-get install open-iscsi -y

#查看详细的配置文件

sudo iscsiadm -m discovery -t st -p 192.168.10.20

# 登陆
sudo iscsiadm -m node --login

# 退出登陆
sudo iscsiadm -m node --logout

#target 查看挂载状态,注意是在target机器上执行
tgtadm --mode target --op show

#查看磁盘
cat /proc/partitions

 

红框的就是新增的磁盘,可以mount上 

RDMA
iscsiadm -m discovery -t st -I iser -p 192.168.10.20

参考: 参数手册

tgtadm(8): SCSI Target Administration Utility - Linux man page

Ubuntu Manpage: iscsiadm - open-iscsi administration utility

Ubuntu Manpage: iser — iSCSI Extensions for RDMA (iSER) driver 

SCSI

鸟哥的 Linux 私房菜 -- 网络驱动器装置:iSCSI服务器

Service - iSCSI | Ubuntu

https://www.server-world.info/en/note?os=Ubuntu_18.04&p=iscsi&f=3

How to Setup iSCSI Storage Server on Ubuntu 18.04 LTS

Configure an iSCSI initiator in Ubuntu 18.04

Ubuntu组建iscsi - 简书

NFS vs iSCSI Performance - Part 3

SCSI/ISCSI协议_嚴 帅的博客-CSDN博客_scsi协议

iSCSI的基本架构及操作简介 - 知乎

RDMA

hpc - Set up simple Infiniband Block Storage (SRP or iSER) - Server Fault

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/740633.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号