UDEV掛載EMC多路徑盤
我的儲存是EMC的,裝上多路徑軟體之後
[root@chnap-itd64 rules.d]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 3597.3 GB, 3597303545856 bytes
255 heads, 63 sectors/track, 437347 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 267350 2147483647+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 261084 2097151999+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 261084 2097151999+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdd: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 261084 2097151999+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sde: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sde1 1 261084 2097151999+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/emcpowera'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/emcpowera: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/emcpowera1 1 261084 2097151999+ ee GPT
如果用下面的這種方式編輯規則檔案,udev設定是可以出來的
more 99-oracle-asmdevices.rules
KERNEL=="sdb1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="36006016076f32e00745442a6f862e211", NAME="asm-disk1", OWNER="grid", GRO
UP="asmadmin", MODE="0660"
[root@chnap-itd64 rules.d]# /sbin/start_udev
正在啟動 udev:[確定]
[root@chnap-itd64 rules.d]# ls -l /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 17 1月 28 20:00 /dev/asm-disk1
目前我想用 /dev/emcpowera 這個裝置繫結
但是沒有成功,是不是我的99-oracle-asmdevices.rules
這個檔案的寫法不對。
多路徑軟體裝上之後一般/dev/emcpowera不會變,
雖然用/dev/sdb也可以繫結,也沒有影響,但是我想
用/dev/emcpowera裝置在多臺伺服器上繫結
[root@chnap-itd64 rules.d]# vi 99-oracle-asmdevices.rules
KERNEL=="emcpowera1", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent", RESULT=="36006016076f32e00745442a6f862e211", NAME="asm-disk1", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@chnap-itd64 rules.d]# /sbin/start_udev
正在啟動 udev:[確定]
[root@chnap-itd64 rules.d]# /sbin/start_udev
[root@chnap-itd64 rules.d]# ls -l /dev/as*
ls: 無法訪問/dev/as*: 沒有那個檔案或目錄
原來在linux6 裡面如果要用這種方法做ASM的話。
需要在/etc/udev/rules.d 目錄上新增了50-udev.rules 檔案,
redhat 5 下面就有這個檔案,到redhat 6下就沒了
並把下列資訊加入50-udev.rules,現在在oracle上已經可以正常安裝asm了
[root@chnap-itd65 rules.d]# cat 50-udev.rules
SUBSYSTEM=="block", KERNEL=="emcpowera1", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowera2", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowera3", GROUP="asmadmin", OWNER="grid", MODE="0660"
SUBSYSTEM=="block", KERNEL=="emcpowera4", GROUP="asmadmin", OWNER="grid", MODE="0660"
[root@chnap-itd65 rules.d]# start_udev
正在啟動 udev:[確定]
[root@chnap-itd65 rules.d]# ls -l /dev/emc*
crw-rw---- 1 root root 10, 58 1月 29 19:33 /dev/emcpower
brw-rw---- 1 root disk 120, 0 1月 29 19:33 /dev/emcpowera
brw-rw---- 1 grid asmadmin 120, 1 1月 29 19:33 /dev/emcpowera1
brw-rw---- 1 grid asmadmin 120, 2 1月 29 19:33 /dev/emcpowera2
brw-rw---- 1 grid asmadmin 120, 3 1月 29 19:33 /dev/emcpowera3
brw-rw---- 1 grid asmadmin 120, 4 1月 29 19:33 /dev/emcpowera4
重啟udev的時候許可權已經正常了
ASM可以正常配置使用了
該問題已經解決。
總結:已經有了emcpower,那直接在rc.local中修改許可權就好了,不用udev了。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28869493/viewspace-2151785/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Linux 7.8 多路徑(Multipath)+Udev繫結磁碟OracleLinuxdev
- Oracle 11g RAC安裝--基於openfiler儲存+多路徑+udev方式Oracledev
- Redhat 5.3掛載IBM DS4800儲存並安裝RDAC多路徑軟體RedhatIBM
- RAC之多路徑配置
- 【掛載新盤】
- EMC-年底神盤
- 華為多路徑配置RAC
- Linux上如何掛載EMC DataDomain BoostFS儲存到本地目錄LinuxAI
- 多系統盤掛載
- Linux掛載資料盤教程,Linux初始化系統盤後重新掛載資料盤方法Linux
- 使用OpenFiler來模擬儲存配置RAC中ASM共享盤及多路徑(multipath)的測試ASM
- windows 使用掛載盤提供FTP服務WindowsFTP
- Linux配置和管理裝置對映多路徑multipathLinux
- LINUX 多路徑對映Multipath與正規表示式Linux
- 批量修改vsphere共享儲存多路徑選擇策略
- 大盤分割槽格式化及掛載
- Linux平臺的多路徑軟體multipath的使用案例Linux
- 【OpenXml】Pptx的多路徑形狀轉為WPF的PathXML
- 開發進階:Dotnet Core多路徑非同步終止非同步
- 『學了就忘』Linux基礎命令 — 39、掛載U盤和掛載NTFS分割槽Linux
- udev如何除錯,如何看udev的輸出日誌?udev除錯的坑?dev除錯
- CloudMounter for Mac(雲盤掛載工具) 4.3啟用版CloudMac
- 小鳥雲資料盤如何進行掛載?
- 記錄下物理機bond配置及物理機多路徑配置
- 48.Linux-普通U盤以及多分割槽U盤自動掛載Linux
- 使用CloudDrive 將網盤掛載本地(網盤本地化,超簡單)Cloud
- linux如何系統掛載u盤複製檔案Linux
- LINUX下掛載U盤,中文亂碼的問題Linux
- Linux製作系統啟動盤以及掛載和解除安裝U盤Linux
- Linux上建立udevLinuxdev
- rhel7 udevdev
- CloudMounter for Mac(雲盤掛載工具) v4.3破解版CloudMac
- N1盒子掛載阿里雲盤-Alist工具阿里
- EMC 筆記筆記
- 【儲存】EMC
- Linux掛載--什麼是掛載Linux
- godadly海外雲伺服器資料盤如何進行掛載?Go伺服器
- 騰訊雲伺服器Centos7資料盤掛載伺服器CentOS