In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Linux how to use udev to create ASM DISK, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
1. View the system environment
Kernel version:
[root@rh74 rules.d] # uname-a
Linux rh74 2.6.32-358.el6.x86_64 # 1 SMP Tue Jan 29 11:47:41 EST 2013 x86 "64 GNU/Linux
System users:
[root@rh74 rules.d] # id grid
Uid=400 (grid) gid=400 (asmadmin) groups=400 (asmadmin)
Second, create a shared disk (you can use partitions or separate disks)
[root@rh74 ~] # fdisk-l
Disk / dev/sdc: 24.3 GB, 24323964928 bytes
255 heads, 63 sectors/track, 2957 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
View disk UUID:
[root@rh74] # / sbin/scsi_id-g-u-d / dev/sdc
1ATA_VBOX_HARDDISK_VB3d5ccb5e-9c197b67
Scsi_id-gud / dev/sdc
Disk Partition:
[root@rh74 ~] # fdisk-l
Disk / dev/sdc: 24.3 GB, 24323964928 bytes
255 heads, 63 sectors/track, 2957 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xeb09f8d3
Device Boot Start End Blocks Id System
/ dev/sdc1 1 915 7349706 83 Linux
/ dev/sdc2 916 1830 7349737 + 83 Linux
/ dev/sdc3 1831 2957 9052627 + 83 Linux
Third, establish UDEV rule documents
[root@rh74 ~] # cd / etc/udev/rules.d/
[root@rh74 rules.d] # ls
60-fprint-autosuspend.rules 60-raw.rules 80-kvm.rules 97-bluetooth-serial.rules
60-openct.rules 70-persistent-cd.rules 90-alsa.rules 98-kexec.rules
60-pcmcia.rules 70-persistent-net.rules 90-hal.rules 99-fuse.rules
[root@rh74 rules.d] # cat 99-oracle-asmdisk.rules
KERNEL== "sdc1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "1ATA_VBOX_HARDDISK_VB3d5ccb5e-9c197b67", NAME= "asm_disk1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sdc2", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "1ATA_VBOX_HARDDISK_VB3d5ccb5e-9c197b67", NAME= "asm_disk2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sdc3", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "1ATA_VBOX_HARDDISK_VB3d5ccb5e-9c197b67", NAME= "asm_disk3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
4. Start udev service
Load the configuration file:
[root@rh74 rules.d] # udevadm control-- reload-rules
Start udev service:
[root@rh74 rules.d] # start_udev
Starting udev:
View asm disks:
[root@rh74 rules.d] # ls-l / dev/asm*
Brw-rw---- 1 grid asmadmin 8, 33 Jan 13 16:52 / dev/asm_disk1
Brw-rw---- 1 grid asmadmin 8, 34 Jan 13 16:52 / dev/asm_disk2
Brw-rw---- 1 grid asmadmin 8, 35 Jan 13 16:52 / dev/asm_disk3
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.