一种热插拔处理方法和装置制造方法及图纸

技术编号:17796661 阅读:92 留言:0更新日期:2018-04-25 20:09
本申请公开了一种热插拔处理方法和装置,包括:预先对主机上的硬盘槽位直接进行内存资源预留分配;进入操作系统后硬盘驱动程序根据预留的内存资源进行相应分配;在主机上的硬盘槽位分配到内存资源后进行硬盘热插拔处理。本申请采取对主机上的硬盘槽位直接提前进行资源分配,可以保证操作系统下硬盘槽位无论是否在位都存在相应的内存资源分配,热插拔硬盘功能正常,当需要插入硬盘时空槽位可以随时连接硬盘且不会导致系统奔溃,当硬盘出现损坏时可以及时保障对大数据进行实时处理且不影响大数据丢失而产生的经济损失,极大地缩减了运维成本及时间,提高了运维人工的工作效率。

A hot plug treatment method and device

The application discloses a hot plug processing method and device, which includes pre memory allocation of memory resources directly on the hard disk slot on the host; after entering the operating system, the hard disk driver is allocated according to the reserved memory resources; the hard disk slot on the host is allocated to the memory resource to be hot plugged after the memory resource is allocated to the host. Handle\u3002 In this application, the hard disk location on the host can be allocated directly in advance. It can ensure that the hard disk location under the operating system has the corresponding memory resource allocation and the hard disk function is normal. When the hard disk space slot is inserted, the hard disk can be connected to the hard disk at any time and will not cause the system to run down. When the hard disk is used, the hard disk can be used as the hard disk. When the damage occurs, it can timely guarantee the real time processing of large data without affecting the loss of large data, greatly reducing the cost and time of operation and maintenance, and improving the efficiency of operation and maintenance.

【技术实现步骤摘要】
一种热插拔处理方法和装置
本专利技术涉及存储
,特别是涉及一种热插拔处理方法和装置。
技术介绍
随着互联网公司业务的快速增长,对关键数据业务的要求及处理、存储等要求越来越高,普通硬盘的容量及功耗与NVME(Non-VolatileMemoryexpress)硬盘对比都存在劣势,NVME硬盘的优势主要体现在更低的延时性、更高的数据传输性、更低的功耗控制、存储容量大等等,故被互联网公司极度青睐。一般地,主机直接可以通过NVME硬盘槽位连接一定数量的NVME硬盘,当互联网公司整机柜服务器在业务运行时出现了NVME硬盘存储空间不足或预先安装的NVME硬盘个数不够,这时需要更换或插入新的NVME硬盘且不能影响业务正常运营,故NVME热插拔功能便显得格外重要。但NVME硬盘热插拔功能的实现不仅需要Linux系统驱动的支持,SBIOS也同样需要支持NVME热插拔功能,通常在NVME硬盘连接时开机进入Linux系统后热插拔NVME硬盘功能正常,但NVME硬盘未连接时开机进Linux系统后热插拔会产生错误,此时所有NVME硬盘都会丢失。在这种场景下对互联网公司的业务运行会造成致命影响。因此,如何本文档来自技高网...
一种热插拔处理方法和装置

【技术保护点】
一种热插拔处理方法,其特征在于,包括:预先对主机上的硬盘槽位直接进行内存资源预留分配;进入操作系统后硬盘驱动程序根据预留的所述内存资源进行相应分配;在所述主机上的硬盘槽位分配到所述内存资源后进行硬盘热插拔处理。

【技术特征摘要】
1.一种热插拔处理方法,其特征在于,包括:预先对主机上的硬盘槽位直接进行内存资源预留分配;进入操作系统后硬盘驱动程序根据预留的所述内存资源进行相应分配;在所述主机上的硬盘槽位分配到所述内存资源后进行硬盘热插拔处理。2.根据权利要求1所述的热插拔处理方法,其特征在于,所述硬盘为NVME硬盘;所述硬盘槽位为NVME硬盘槽位。3.根据权利要求2所述的热插拔处理方法,其特征在于,所述操作系统为Linux操作系统。4.根据权利要求3所述的热插拔处理方法,其特征在于,进行硬盘热插拔处理,具体包括:硬盘直接插入在任一空置的所述硬盘槽位中。5.根据权利要求4所述的热插拔处理方法,其特征在于,在硬盘直接插入在任一空置的所述硬盘槽位中...

【专利技术属性】
技术研发人员:孙秀强
申请(专利权)人:郑州云海信息技术有限公司
类型:发明
国别省市:河南,41

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1