发布时间:2014-09-05 13:31:24作者:知识屋
vzwc1:~ # uname -aLinux vzwc1 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linuxvzwc1:~ # cat /etc/issueWelcome to SUSE Linux Enterprise Server 11 SP3 (x86_64) - Kernel /r (/l).
添加编辑/etc/scsi_id.config 文件
options=--whitelisted --replace-whitespace添加编辑/etc/udev/rules.d/99-oracle-asmdevices.rules
for i in b c d e f g h idoecho "KERNEL==/"sd*/", SUBSYSTEM==/"block/", PROGRAM==/"/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev//$name/", RESULT==/"`/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`/", NAME=/"asm-disk$i/", OWNER=/"grid/", GROUP=/"asmadmin/", MODE=/"0660/""done
vzwc1:~ # cat /etc/udev/rules.d/99-oracle-asmdevices.rulesKERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB0221f2e9-f408ff4f", NAME="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB49eb0a29-3c952001", NAME="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB4aa82271-74ee0a90", NAME="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB2f97c868-e1906340", NAME="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBf82d24e5-0f7a2eaf", NAME="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB6a27197b-c6c40e34", NAME="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB9b039565-b8786d7f", NAME="asm-diskh", OWNER="grid", GROUP="asmadmin", MODE="0660"KERNEL=="sd*", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB06b0cef7-cc3e6c40", NAME="asm-diski", OWNER="grid", GROUP="asmadmin", MODE="0660"启动udev
vzwc1:~ # /etc/init.d/boot.udev statusChecking for udevd: runningvzwc1:~ # /etc/init.d/boot.udev restartRestarting udevd:SUSE和RedHat系列不同,需要使用udevadm test测试,例如 udevadm test /sys/block/sdb
建议配置完成后重启
vzwc1:~ # fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002a75e
Device Boot Start End Blocks Id System
/dev/sda1 2048 8386559 4192256 82 Linux swap / Solaris
/dev/sda2 * 8386560 8787967 200704 83 Linux
/dev/sda3 8787968 83886079 37549056 83 Linux
vzwc1:~ # ll /dev/sd*
brw-rw---- 1 root disk 8, 0 Dec 30 13:56 /dev/sda
brw-rw---- 1 root disk 8, 1 Dec 30 13:56 /dev/sda1
brw-rw---- 1 root disk 8, 2 Dec 30 13:56 /dev/sda2
brw-rw---- 1 root disk 8, 3 Dec 30 13:56 /dev/sda3
vzwc1:~ #
vzwc1:~ # l /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 16 Dec 30 13:56 /dev/asm-diskb
brw-rw---- 1 grid asmadmin 8, 32 Dec 30 13:56 /dev/asm-diskc
brw-rw---- 1 grid asmadmin 8, 48 Dec 30 13:56 /dev/asm-diskd
brw-rw---- 1 grid asmadmin 8, 64 Dec 30 13:56 /dev/asm-diske
brw-rw---- 1 grid asmadmin 8, 80 Dec 30 13:56 /dev/asm-diskf
brw-rw---- 1 grid asmadmin 8, 96 Dec 30 13:56 /dev/asm-diskg
brw-rw---- 1 grid asmadmin 8, 112 Dec 30 13:56 /dev/asm-diskh
brw-rw---- 1 grid asmadmin 8, 128 Dec 30 13:56 /dev/asm-diski
linux一键安装web环境全攻略 在linux系统中怎么一键安装web环境方法
Linux网络基本网络配置方法介绍 如何配置Linux系统的网络方法
Linux下DNS服务器搭建详解 Linux下搭建DNS服务器和配置文件
对Linux进行详细的性能监控的方法 Linux 系统性能监控命令详解
linux系统root密码忘了怎么办 linux忘记root密码后找回密码的方法
Linux基本命令有哪些 Linux系统常用操作命令有哪些
Linux必学的网络操作命令 linux网络操作相关命令汇总
linux系统从入侵到提权的详细过程 linux入侵提权服务器方法技巧
linux系统怎么用命令切换用户登录 Linux切换用户的命令是什么
在linux中添加普通新用户登录 如何在Linux中添加一个新的用户
2012-07-10
CentOS 6.3安装(详细图解教程)
Linux怎么查看网卡驱动?Linux下查看网卡的驱动程序
centos修改主机名命令
Ubuntu或UbuntuKyKin14.04Unity桌面风格与Gnome桌面风格的切换
FEDORA 17中设置TIGERVNC远程访问
StartOS 5.0相关介绍,新型的Linux系统!
解决vSphere Client登录linux版vCenter失败
LINUX最新提权 Exploits Linux Kernel <= 2.6.37
nginx在网站中的7层转发功能