简体   繁体   English

aoe磁盘在/ proc / partitions中为/ dev / sda

[英]aoe disk as /dev/sda in /proc/partitions

Im using AoE disk for a particular Linux installation. 我使用AoE磁盘进行特定的Linux安装。

I need to tell to linux system to see /dev/etherd/e0.0 as a /dev/sda, im already create a hard link of /dev/etherd/e0.0 to /dev/sda an it works. 我需要告诉linux系统将/dev/etherd/e0.0视为/ dev / sda,即时通讯已经创建了/dev/etherd/e0.0到/ dev / sda的硬链接,并且可以工作。

But now i need to make system see the /dev/sda (/dev/etherd/e0.0) in /proc/partitions. 但是现在我需要使系统在/ proc / partitions中看到/ dev / sda(/dev/etherd/e0.0)。

There exists a command to do that ? 有执行此操作的命令吗?

thank you. 谢谢。

There is no way to do that. 没有办法做到这一点。 The /dev/sda node is reserved for devices which are accessible using the SCSI/SATA/IDE disk driver; /dev/sda节点保留给可使用SCSI / SATA / IDE磁盘驱动器访问的设备。 AoE devices do not use that mechanism, so they will always show up differently. AoE设备不使用该机制,因此它们的显示方式总是不同的。 Creating a hard link will just confuse matters; 创建硬链接只会使事情变得混乱。 doing so is inadvisable. 这样做是不可取的。

I'm not 100% certain whether it's even possible to boot a machine over AoE. 我不确定100%是否可以通过AoE引导计算机。 It might be possible to do directly if all the configuration is automatic, or can be performed by setting kernel command line parameters; 如果所有配置都是自动的,则可以直接执行,也可以通过设置内核命令行参数来执行; chances are that you will need to create a custom initrd to initialize the network and bring up the volume. 您可能需要创建一个自定义initrd来初始化网络并调高音量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM