linux centos挂载 iscsi

Linux- 部署iSCSI -并使用win10挂载iSCSI盘 啥是iscsi?互联网小型计算机系统接口(iSCSI,Internet Small Computer System Interface)。这是一种将 SCSI 接口与以太网技术相结合的新型存储技术,可以用来在网络中传输 SCSI 接口的命令和数据。iSCSI 不仅克服了 传统 SCSI 接口设备的物理局限性,实现了跨区域的存储资源共享。 iSCSI 技术实现了... 阅读详情

安装依赖

# yum install binutils iscsi-initiator-utils

ISCSI启动并设置开机自启动

# systemctl start iscsi
# systemctl enable iscsi

查看ISCSI Target

# iscsiadm -m discovery -t sendtargets -p 172.17.150.213,3260

这里采取不验证登陆

# iscsiadm -d2 -m node -T  iqn.2023321.tnas:storage.yp4dmd -p 172.17.150.213:3260 --login

将连接脚本写入开机自动执行

# vi /etc/rc.local
# tail -1 /etc/rc.local
iscsiadm -d2 -m node -T  iqn.2023321.tnas:storage.yp4dmd -p 172.17.150.213:3260 --login

查看当前连接

# iscsiadm -m session
tcp: [1] 172.17.150.213:3260,1 iqn.2023321.tnas:storage.yp4dmd (non-flash)

查看设备

# fdisk -l
Disk /dev/sdb: 117 GiB, 125627793408 bytes, 245366784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 524288 bytes

分区

# parted /dev/sdb
(parted) mklabel gpt                                                      
(parted) mkpart primary 0% 100%                                           
(parted) print
(parted) quit

格式化

# mkfs.ext4 -T largefile  /dev/sdb1

挂载磁盘

# mkdir /mnt/backup
# mount /dev/sdb1 /mnt/backup/
# df -h |grep mnt
/dev/sdb1                     117G   24K  111G   1% /mnt/backup

开启自动挂载磁盘

# blkid /dev/sdb1
/dev/sdb1: UUID="5a005ecf-312e-4ee3-ac6d-5a64d8614111" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="primary" PARTUUID="08f16b0a-1387-4830-b761-4490b6f11728"
# vi /etc/fstab
# tail -1 /etc/fstab
UUID=5a005ecf-312e-4ee3-ac6d-5a64d8614111 /mnt/backup  ext4 defaults,_netdev 0 0

Linux下搭建iSCSI共享存储-Tgt 在Linux上使用tgt搭建iSCSI共享存储,可以实现多个客户端同时访问共享存储。 阅读详情

相关推荐

mcgs数据导出到U盘

mcgs触摸屏在工业中应用还是很多的,尤其他的脚本功能策略功能等将开放性放到了最大,让用户可以根据实际需求进行自由创作,正因为这样,对一些初学者就不是很友好,初学者想要简单操作就能实现功能,但是mcgs不可能两者兼备,在做工业设备,一些数据的采集保存就比较常见,但是mcgs没有相关按钮能够直接实现将数据导出到U盘的功能。这里我给大家讲解关于mcgs将报警历史记录、日志记录、历史数据记录导出到U盘的方法。

qq_24866535的博客 6233

linux挂载iscsi及nas网络磁盘

记录自己radhat配置iscsi及nas网络磁盘的过程,分享给朋友,也为了后续自己回顾知识。

杀神吴起的智脑 5830

从零搭建基于OpenSpec的现代化UI自动化测试框架实战指南

UI自动化测试是软件质量保障的关键环节,其核心在于通过脚本模拟用户操作,对Web应用界面进行功能验证。其原理在于利用浏览器驱动工具(如Selenium、Playwright)提供的API,实现对页面元素的定位、交互与断言。一个设计良好的自动化框架能显著提升测试脚本的可维护性、可读性和执行稳定性,从而在持续集成、回归测试等场景中发挥巨大价值。本文聚焦于如何构建一个现代化的UI测试框架,通过整合OpenSpec架构规范、Pytest测试引擎与Playwright浏览器自动化工具,形成清晰的页面对象模型(POM)

weixin_28836989的博客 286

Linux下ISCSI存储部署教程

这些是在Linux下部署iSCSI存储的基本步骤。根据您的需求和具体环境,可能还需要进行其他配置和调整。请确保在进行任何与网络连接和存储操作相关的操作之前,详细了解您的网络环境和存储需求,并采取适当的安全措施。

高性价比服务器就选:蓝易云 1834

深入解析以太网接口中的BOB Smith电路设计

本文深入解析以太网接口中的BOB Smith电路设计,详细介绍了其在共模噪声抑制、浪涌防护和EMI优化中的关键作用。通过实际案例和设计要点,帮助工程师正确选择75Ω电阻和高压电容等元件,优化PCB布局,解决电压型与电流型PHY的设计差异,以及千兆与百兆以太网的特殊考量。

weixin_28339967的博客 687

WindTerm 安装使用教程

WindTerm是一款Github上开源的 SSH 终端工具,它是完全可以比肩MobaXterm工具的。

m0_69576880的博客 4024

linux iscsi自动挂载,rhel6安装配置iscsi并实现自动挂载

在iscsi server上的操作步骤:a、安装iscsi server软件包。(1) 用RPM的方式安装。[root@server ~]# rpm -ivhscsi-target-utils-1.0.4-3.el6.x86_64.rpm[root@server ~]# rpm -ivhperl-Config-General-2.44-1.el6.noarch.rpm(2) 用yum命令安装。yu...

weixin_36221149的博客 653

大学生智能车竞赛初次尝试经验分享--1(硬件绘制电路,pcb部分)

本人机械电子专业大二暑假参加全国大学生智能车竞赛,之前参加过一些其他类型的比赛有一点基础,由于之前疫情影响所以做智能车比赛断代了,没有学长带也没有思路,从一开始的一头雾水逐渐摸索出我感觉比较实用的经验。 一.首先是硬件的准备工作: 1.硬件部分与要自己设计需要的电路制成pcb。推荐使用Altium Designer20,AD比较常用所以有多实用的教学视频,另外需要自己了解布线规则,包括信号线,电源线常用的宽度 一些电源电路,驱动电路建议用multisim仿真,没有问题再进行制版 单片机有关的需要仿真

weixin_52679034的博客 9834

linux7下面挂载iscsi,centos7挂载iscsi

centos7挂载iscsi:[root@localhost ~]# rpm -qa | grep iscsi //查看是否安装软件包[root@localhost ~]# yum install binutils iscsi-initiator-utils kmod-xfs xfsprogs // 安装软件包,需要联网[root@localhost ~]# service iscsi start...

weixin_32430941的博客 412

CATIA_DELMIA_V5R2019安装包下载及安装教程破解

CATIA_V5R2019/DELMIA_V5R2019安装包下载及安装教程破解

一只机械工装熊的博客 8350

【网络基础2】路由器的 “两扇门”:二层接口和三层接口到底有啥不一样?

家里的路由器背后总有几个网线接口,有的标着 “LAN”,有的标着 “WAN”;公司机房的路由器上,接口更是五花八门,有的插着网线,有的连着光纤,旁边还贴着 “GE0/0/1”“Eth-Trunk1” 这样的标签。你可能会想:不就是插网线的地方吗?有啥区别?其实,这些接口分 “二层接口” 和 “三层接口”,它们的作用差得远了 —— 就像你家的门,有的是 “小区内的单元门”(只通小区内部),有的是 “小区的大门”(能通往外面的世界)。接下来,咱们用大白话 + 生活例子,一点点把这两种接口讲透。

jundao1997的专栏 565

linux挂载iscsi存储大小,Centos挂载iscsi存储

Centos挂载iscsi存储1.安装iscsi-initiator#yum installiscsi-initiator2.查看安装的iscsi-initiator的iqn号#cat /etc/iscsi/initiatorname.iscsiInitiatorName=iqn.1994-05.com.redhat:5c44f016ad253.建议重启一下iscsi服务#service isc...

weixin_28837357的博客 130

【人工智能】拒绝焦虑,理性突围:AI 时代 Java 工程师的职业重构与进化指南

摘要:在AI技术快速发展的背景下,Java工程师面临职业转型挑战。本文通过MECE原则解构工作内容,划分高替代风险区(如CRUD开发)、高增效潜能区(如逻辑优化)和高核心壁垒区(如架构设计),指出AI对不同任务的影响程度。从劳动经济学视角分析行业将呈现K型分化,初级执行者被替代,而精通AI协作的全栈工程师需求增长。文章强调警惕过度依赖AI导致认知能力退化,并提出转型路径:掌握AI驱动开发(AIDD)、深耕领域驱动设计(DDD)、拓展全流程能力及AI原生应用开发。最终结论指出,未来的核心竞争力在于结合AI工具

奶爸的编程之路,也就一周冷个三天 135

linux 挂载iscsi,CentOS 6.4上挂载iSCSI配置

1.安装iscsi支持包并启动服务yuminstall binutils iscsi-initiator-utils kmod-xfs xfsprogsservice iscsi start2.登陆网络存储iscsiadm -m discovery --type sendtargets --portal192.168.1.100(存储地址)反馈结果: 192.168.1.100:3260,1iqn...

weixin_29710393的博客 323

怀旧版电脑GBC模拟器

再现原版GBC掌机的界面,电脑运行连游戏界面都一样大小,很怀旧,很真实,(英文版)强烈推荐,很小的文件,很难才找到的。

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

linux iscsi自动挂载,CentOS6.3安装配置iscsi并实现自动挂载

CentOS6.3安装配置iscsi并实现自动挂载1,ISCSI目标配置例子[root@openstack1 ~]#cat /etc/issueCentOS release 6.3 (Final)Kernel \r on an \m[root@openstack1 ~]#uname -aLinux openstack1 2.6.32-279.14.1.el6.x86_64 #1 SMP Tue N...

weixin_39876595的博客 358

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

linux7 挂载iscsi存储,CentOS-7挂载iscsi网络存储

// 安装相关软件,其中kmod-xfs、xfsprogs为xfs文件系统的组件。yum install binutils iscsi-initiator-utils kmod-xfs xfsprogs//启动iscsi服务service iscsi start//查看存储服务器的iscsi是否在线iscsiadm -m discovery --type sendtargets --portal ...

weixin_42651748的博客 514

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

linux centos7.9挂载iscsi存储盘

Linux系统 centos7.9挂载iscsi盘

XYQLinux的博客 1427

linux7自动挂载iscsi存储,CentOS-7挂载iscsi网络存储

// 安装相关软件,其中kmod-xfs、xfsprogs为xfs文件系统的组件。yum install binutils iscsi-initiator-utils kmod-xfs xfsprogs//启动iscsi服务service iscsi start//查看存储服务器的iscsi是否在线iscsiadm -m discovery --type sendtargets --portal ...

weixin_30999777的博客 683

linux挂载ipsan存储,centos系统ISCSI挂载IPSAN存储

先用一台电脑连接IPSAN管理端口进去配置阵列配置完成后把IPSAN的ISCSI接口连接到服务器网口,man iscsiadm 查看可以查看是否安装了 iscsiadmyum -y install*iscsi* 命令安装iscsiadm然后在服务器上输入:iscsiadm -m discovery -t sendtargets -p 169.254.194.201:3260 (169.254.19...

weixin_34892992的博客 1274

linux7.3启动iscsi服务,Centos7挂载iscsi磁盘

1.客户端安装iscsi的相关安装包,并启动#yum install binutils iscsi-initiator-utils kmod-xfs xfsprogs#service iscsi start其中kmod-xfs ,xfsprogs为xfs文件系统的组件,kmod-xfs无法安装,可下载rpm包离线安装。2.配置initiatiorname将initiatorname.iscsi 里...

weixin_42316079的博客 1150

linux设置ipsan_centos系统ISCSI挂载IPSAN存储

先用一台电脑连接IPSAN管理端口进去配置阵列配置完成后把IPSAN的ISCSI接口连接到服务器网口,man iscsiadm 查看可以查看是否安装了 iscsiadmyum -y install*iscsi* 命令安装iscsiadm然后在服务器上输入:iscsiadm -m discovery -t sendtargets -p 169.254.194.201:3260 (169.254.19...

weixin_31414801的博客 865

在linux挂载网络驱动器,利用centos 6.6 搭建iscsi服务器并在centos挂载iscsi网络驱动器...

##################################################################搭建iscsi服务器:参考自:http://www.linuxidc.com/Linux/2016-09/135655.htmyum install scsi-target-utils -yvi /etc/tgt/targets.conf在末尾添加backing-st...

weixin_31080559的博客 188

linux centos 5.2 nfs 挂载 区别 iscsi 挂载

Nfs 服务器配置文档 2013-2-7创建 服务器设置nfs 1.  准备工作 2.  Linux centos5.2 3.  安装包 libevent-1.1a-3.2.1.i386.rpm         nfs-utils-lib-devel-1.0.8-7.2.z2.i386.rpm libevent-devel-1.1a-3.2.1.i386.rpm   system-

yuanyueliang的专栏 596

磁盘柜支持linux,CentOS 5.3 使用iSCSI挂载存储磁盘柜

将CentOS 5.3 光盘下的iscsi-initiator-utils-6.2.0.868-0.18.el5.i386.rpm上传服务器执行rpm -ivh iscsi-initiator-utils-6.2.0.868-0.18.el5.i386.rpm修改initiatorname[root@standby ~]# more /etc/iscsi/initiatorname.iscsiIn...

weixin_35748508的博客 269

linux自动挂载fcoe存储,CentOS5.8 iSCSI协议实现共享存储

大纲一、存储设备类型二、什么是SCSI和iSCSI三、iSCSI安装与配置一、存储设备类型DAS:Direct Attached Storage直连主机的总线上的设备NAS:network Attached Storage文件共享服务器,共享级别fileSAN:Storage Area Network把SCSI协议借助于其他网络协议实现传送tcp/ip iscsiFC(光纤):FCoENAS与SA...

weixin_29876887的博客 813
上一篇: dg延迟状态查询
下一篇: oracle 11g 移动 datafile 文件
1412702161
博客等级 码龄19年 32粉丝 48原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值