设为首页收藏本站language 语言切换
楼主: xuwang10086
收起左侧

百度云 许望老师(RHCA) RHEL7 红帽7 系统管理视频教程

  [复制链接]
发表于 2018-4-30 15:58:11 | 显示全部楼层
66666666666
1291# 2018-4-30 15:58:11 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-4-30 15:58:18 | 显示全部楼层
66666666666666
1292# 2018-4-30 15:58:18 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-1 21:56:35 | 显示全部楼层

SOLUTION UNVERIFIED - 已更新 2016年十二月6日23:49 - English
环境
Red Hat Enterprise Linux 7
问题
How to create raw devices in Red Hat Enterprise Linux 7?
How to create a disk partition without a filesystem, need it as raw device for database?
决议
RAW devices needs to be binded by /etc/udev/rules.d/60-raw.rules by following below procedure:

1. Create the raw devices using below udev rules:

Raw
# vi /etc/udev/rules.d/60-raw.rules
If you want to use device names, here is an example of the line that has to be written on the file above:
Raw
ACTION=="add", KERNEL=="<device name>", RUN+="/usr/bin/raw /dev/raw/rawX %N"
If you are using major / minor numbers of the device:
Raw
ACTION=="add", ENV{MAJOR}="A", ENV{MINOR}="B", RUN+="/usr/bin/raw /dev/raw/rawX %M %m"
For create persistent raw devices for single path LUNs, please do:
a) Check the LUN's WWID:

Raw
# /usr/lib/udev/scsi_id -g -u -d /dev/<device_name>
or,

Raw
# /usr/lib/udev/scsi_id --whitelisted --replace-whitespace /dev/<device_name>
b) Create persistent raw devices:

If using unpartitioned LUNs, to create a single raw device for the whole LUN use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[!0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw1 %N"
If using partitioned LUNs, where raw devices are created for each of the partitions on the LUN, use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw%n %N"
2. Setting ownership and permissions on the raw devices:

Raw
ACTION=="add", KERNEL=="raw*", OWNER="root", GROUP="disk", MODE="0660"
3. Trigger the new udev rules:

Raw
# udevadm trigger --action=add
4. Check if the raw device(s) have been created:

Raw
# raw -qa
/dev/raw/raw1:  bound to major 8, minor 17

# ls -l /dev/raw
total 0
crw-rw---- 1 root   disk 162,  1 Jan 29 02:47 raw1
根源
N/A

产品(第)  Red Hat Enterprise Linux 元件  udev 类别  Configure 标记  rhel_7
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
SOLUTION UNVERIFIED - 已更新 2016年十二月6日23:49 - English
环境
Red Hat Enterprise Linux 7
问题
How to create raw devices in Red Hat Enterprise Linux 7?
How to create a disk partition without a filesystem, need it as raw device for database?
决议
RAW devices needs to be binded by /etc/udev/rules.d/60-raw.rules by following below procedure:

1. Create the raw devices using below udev rules:

Raw
# vi /etc/udev/rules.d/60-raw.rules
If you want to use device names, here is an example of the line that has to be written on the file above:
Raw
ACTION=="add", KERNEL=="<device name>", RUN+="/usr/bin/raw /dev/raw/rawX %N"
If you are using major / minor numbers of the device:
Raw
ACTION=="add", ENV{MAJOR}="A", ENV{MINOR}="B", RUN+="/usr/bin/raw /dev/raw/rawX %M %m"
For create persistent raw devices for single path LUNs, please do:
a) Check the LUN's WWID:

Raw
# /usr/lib/udev/scsi_id -g -u -d /dev/<device_name>
or,

Raw
# /usr/lib/udev/scsi_id --whitelisted --replace-whitespace /dev/<device_name>
b) Create persistent raw devices:

If using unpartitioned LUNs, to create a single raw device for the whole LUN use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[!0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw1 %N"
If using partitioned LUNs, where raw devices are created for each of the partitions on the LUN, use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw%n %N"
2. Setting ownership and permissions on the raw devices:

Raw
ACTION=="add", KERNEL=="raw*", OWNER="root", GROUP="disk", MODE="0660"
3. Trigger the new udev rules:

Raw
# udevadm trigger --action=add
4. Check if the raw device(s) have been created:

Raw
# raw -qa
/dev/raw/raw1:  bound to major 8, minor 17

# ls -l /dev/raw
total 0
crw-rw---- 1 root   disk 162,  1 Jan 29 02:47 raw1
根源
N/A

产品(第)  Red Hat Enterprise Linux 元件  udev 类别  Configure 标记  rhel_7
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
SOLUTION UNVERIFIED - 已更新 2016年十二月6日23:49 - English
环境
Red Hat Enterprise Linux 7
问题
How to create raw devices in Red Hat Enterprise Linux 7?
How to create a disk partition without a filesystem, need it as raw device for database?
决议
RAW devices needs to be binded by /etc/udev/rules.d/60-raw.rules by following below procedure:

1. Create the raw devices using below udev rules:

Raw
# vi /etc/udev/rules.d/60-raw.rules
If you want to use device names, here is an example of the line that has to be written on the file above:
Raw
ACTION=="add", KERNEL=="<device name>", RUN+="/usr/bin/raw /dev/raw/rawX %N"
If you are using major / minor numbers of the device:
Raw
ACTION=="add", ENV{MAJOR}="A", ENV{MINOR}="B", RUN+="/usr/bin/raw /dev/raw/rawX %M %m"
For create persistent raw devices for single path LUNs, please do:
a) Check the LUN's WWID:

Raw
# /usr/lib/udev/scsi_id -g -u -d /dev/<device_name>
or,

Raw
# /usr/lib/udev/scsi_id --whitelisted --replace-whitespace /dev/<device_name>
b) Create persistent raw devices:

If using unpartitioned LUNs, to create a single raw device for the whole LUN use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[!0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw1 %N"
If using partitioned LUNs, where raw devices are created for each of the partitions on the LUN, use this rule format:

Raw
    ACTION=="add", KERNEL=="sd*[0-9]", PROGRAM=="scsi_id -g -u -d %N", RESULT=="1ATA_QEMU_HARDDISK_QM00002", RUN+="/usr/bin/raw /dev/raw/raw%n %N"
2. Setting ownership and permissions on the raw devices:

Raw
ACTION=="add", KERNEL=="raw*", OWNER="root", GROUP="disk", MODE="0660"
3. Trigger the new udev rules:

Raw
# udevadm trigger --action=add
4. Check if the raw device(s) have been created:

Raw
# raw -qa
/dev/raw/raw1:  bound to major 8, minor 17

# ls -l /dev/raw
total 0
crw-rw---- 1 root   disk 162,  1 Jan 29 02:47 raw1
根源
N/A

产品(第)  Red Hat Enterprise Linux 元件  udev 类别  Configure 标记  rhel_7
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
1293# 2018-5-1 21:56:35 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-2 11:31:47 | 显示全部楼层
好东西 一定支持,别沉了啊 !!!
1295# 2018-5-2 11:31:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-2 15:41:23 | 显示全部楼层
灌灌灌灌灌过过过过过过过过过过过过过过过过
1296# 2018-5-2 15:41:23 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-4 23:10:49 | 显示全部楼层
士大夫撒地方撒地方撒地方
1297# 2018-5-4 23:10:49 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-5 09:08:49 | 显示全部楼层
RE: 百度云 许望老师(RHCA) RHEL7 红帽7 系
1298# 2018-5-5 09:08:49 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-5 14:04:06 | 显示全部楼层
111111111111111111111111
1300# 2018-5-5 14:04:06 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-7 21:25:03 | 显示全部楼层
xiankankan
1303# 2018-5-7 21:25:03 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2018-5-8 12:06:14 | 显示全部楼层
杭州市西湖区文一西路98号
1304# 2018-5-8 12:06:14 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-25 16:12 , Processed in 0.064422 second(s), 18 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表