Please do not refer to (1) LVS (2) gfs (3) iscsi part iptables-Fiptables-Xserviceiptablessaveip6tables-Fip6tables-Xserviceip6tablessavesetenforce0 installation server yuminstallscsi-targ...
The article has not been completed. please do not refer
(1) LVS
(2) gfs
(3) iscsi
Iptables-F
Iptables-X
Service iptables save
Ip6tables-F
Ip6tables-X
Service ip6tables save
Setenforce 0
Install server
Yum install scsi-target-utils iscsi-initiator-utils-y
Scsi-target-utils-1.0.18-1.fc15.x86_64
Iscsi-initiator-utils-6.2.0.872-12.fc15.x86_64
Service tgtd start
Chkconfig tgtd on
1. add the target device command as follows:
# Tgtadm -- lld iscsi -- op new -- mode target -- tid 1-T rhcs-storage
View target device
# Tgtadm -- lld iscsi -- op show -- mode target
2. add the newly created partition to the target device.
# Tgtadm -- lld iscsi -- op new -- mode logicalunit -- tid 1 -- lun 1-B/dev/sda6
3. view the output after adding the target device:
# Tgtadm -- lld iscsi -- op show -- mode target
4. set the initiator node that can access the target device. The local machine allows access to gfs1 gfs2 gfs3. The settings are as follows:
# Tgtadm -- lld iscsi -- op bind -- mode target -- tid 1-I 192.168.0.92
# Tgtadm -- lld iscsi -- op bind -- mode target -- tid 1-I 192.168.0.93
Iscsiadm-m node-T rhcs-storage-p 192.168.0.91: 3260-l
Client
Check whether the server is properly identified
[Root @ client01 ~] # Iscsiadm-m discovery-t sendtargets-p 192.168.0.93: 3260
Log on to the server
[Root @ client01 ~] # Iscsiadm-m node-T rhcs-storage-p 192.168.0.93: 3260-l
Log out of the iscsiadm-m node-T rhcs-storage-p 192.168.0.91: 3260-u
Create physical volume
[Root @ gfs-node-01 ~] # Pvcreate-ff/dev/sdc
Physical volume "/dev/sdc" successfully created
Create a volume Group
[Root @ gfs-node-01 ~] # Vgcreate gfsvg/dev/sdc
Clustered volume group "gfsvg" successfully created
Create logical volume
[Root @ gfs-node-01 ~] # Lvcreate-L 4G-n vg01 gfsvg
Mkfs. gfs2-p lock_dlm-t cluster-gfs: data1-j 2/dev/gfsvg/vg01
Disk/dev/mapper/share-share10 doesn't contain a valid partition table
[Root @ gfs-node-01/] # lvcreate-L 10G-n limit 10 share ^ C
[Root @ gfs-node-01/] # lvre
Lvreduce lvremove lvrename lvresize
[Root @ gfs-node-01/] # lvremove limit 10
Volume group "limit 10" not found
Skipping volume group limit 10
[Root @ gfs-node-01/] # lvremove/dev/
Display all 186 possibilities? (Y or n)
[Root @ gfs-node-01/] # lvremove/dev/mapper/share-share10
Do you really want to remove active logical volume limit 10? [Y/n]: y
Logical volume "000010" successfully removed
[Root @ gfs-node-01/] # vgremove share
Volume group "share" successfully removed
[Root @ gfs-node-01/] # pvremove/dev/sda6
Labels on physical volume "/dev/sda6" succ
This article is from the blog "steven is dedicated to diligence and diligence ."