客戶端設定
initiatorname=iqn.2021-11.com.zzg:client1
一定注意initiatorname的大小寫 不然識別不了
multipath.con 格式,不要把所有的blkid都寫在乙個中括號 不然會提示重複的multiapths
defaults
multipaths
multipath
multipath
multipath
multipath
}udev掛載的兩種方式,他們指向都是 dm-* 如果dm許可權對了 owner="grid",group="asmadmin",mode="0660" 那就對了
第一:kernel=="dm-*",env=="mpath-14f504e46494c45526c4b3238447a2d385737532d62497a70",symlink+="asmdisk1",owner="grid",group="asmadmin",mode="0660"
kernel=="dm-*",env=="mpath-14f504e46494c45527065327354512d6f4945332d4c495679",symlink+="asmdisk2",owner="grid",group="asmadmin",mode="0660"
第二:kernel=="dm-*",env=="mpath-14f504e46494c45526c4b3238447a2d385737532d62497a70",run+="/bin/sh -c 'mknod /dev/asmdisk1 b $major $minor; chown grid:asmadmin /dev/asmdisk1; chmod 0660 /dev/asmdisk1'"
kernel=="dm-*",env=="mpath-14f504e46494c45527065327354512d6f4945332d4c495679",run+="/bin/sh -c 'mknod /dev/asmdisk2 b $major $minor; chown grid:asmadmin /dev/asmdisk2; chmod 0660 /dev/asmdisk2'"
重啟udev:
systemctl restart systemd-udevd.service
udevadm control --reload-rules
udevadm trigger
systemctl start multipathd.service
systemctl reload multipathd.service
systemctl status multipathd.service
systemctl enable multipathd.service
systemctl disable multipathd.service
如果grid安裝找不到asm磁碟 需要清理一下磁頭
清理 asm 磁碟頭部資訊
dd if=/dev/zero of=/dev/sdb1 bs=1024 count=100 dd if=/dev/zero of=/dev/sdc1 bs=1024 count=100
Linux 下配置 iSCSI 客戶端
redhat centos yum install y iscsi initiator utils debian ubuntu apt get install open iscsi 編輯 etc iscsi initiatorname.iscsi,加入 initiatorname。如果你在配置目標時...
Python 簡易TCP客戶端
usr bin python coding utf 8 socket 程式設計 學習自 black hat python python programming for hackers and pentesters 簡單的tcp客戶端 target port 80 http協議預設埠 build a ...
ORACLE 簡易客戶端配置
2 將該路徑增加到系統環境變數 path 中,然後將下面的登錄檔檔案匯入到登錄檔中 windows registry editor version 5.00 hkey local machine software wow6432node oracle nls lang simplified chin...