CN1395246A - Method for implementing virtual image optical disk and and its system hardware structure - Google Patents
Method for implementing virtual image optical disk and and its system hardware structure Download PDFInfo
- Publication number
- CN1395246A CN1395246A CN 02121319 CN02121319A CN1395246A CN 1395246 A CN1395246 A CN 1395246A CN 02121319 CN02121319 CN 02121319 CN 02121319 A CN02121319 A CN 02121319A CN 1395246 A CN1395246 A CN 1395246A
- Authority
- CN
- China
- Prior art keywords
- disk
- disc
- file
- directory
- virtual image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明属于光盘网络共享存储技术领域。涉及虚拟镜像光盘盘片的实现方法及其系统硬件结构,包括构造单设备,单级目录,连续分配的虚拟镜像光盘文件系统;虚拟镜像光盘盘片文件的目录提取;标记存储槽、按连续逻辑块寻址方式镜像物理光盘盘片;加载回送设备实现操作系统对虚拟镜像光盘盘片文件的管理。本发明的硬件结构可以大大提高系统的响应速度。
The invention belongs to the technical field of optical disc network shared storage. It involves the realization method of the virtual image CD and its system hardware structure, including the construction of a single-device, single-level directory, and continuous distribution of the virtual image CD file system; the directory extraction of the virtual mirror CD file; marking the storage slot, according to the continuous logic The block addressing mode mirrors the physical CD disk; loads the loopback device to realize the management of the virtual mirror CD disk file by the operating system. The hardware structure of the invention can greatly improve the response speed of the system.
Description
技术领域technical field
本发明属于光盘网络共享存储技术领域,特别涉及虚拟镜像光盘盘片的实现方法及其系统硬件结构设计。The invention belongs to the technical field of optical disc network shared storage, and in particular relates to a method for realizing a virtual image optical disc and a system hardware structure design thereof.
背景技术Background technique
在众多光盘网络共享存储系统的实现方案中,镜像光盘服务器系统以其超大的存储容量、廉价的单位存储成本而日益成为众多应用场合所采纳的储存系统,所谓镜像光盘服务器系统就是一个通过内置的网络协议和文件系统把多张光盘盘片的存储内容镜像到服务器数据硬盘中的系统,它能够统一管理多张光盘盘片,为用户提供光盘网络共享的服务Among the implementation schemes of many optical disk network shared storage systems, the mirrored optical disk server system is increasingly becoming the storage system adopted by many applications due to its large storage capacity and low unit storage cost. The so-called mirrored optical disk server system is a The network protocol and file system mirror the storage content of multiple optical discs to the server data hard disk system, which can manage multiple optical discs in a unified manner and provide users with optical disc network sharing services
当前的镜像光盘服务器系统大多以硬拷贝的方式镜像光盘数据,硬拷贝的方式又称为直接拷贝,直接拷贝是指通过直接读取光盘数据,按服务器系统内置文件系统格式直接将光盘内容保存在数据硬盘上的方式。光盘数据在硬盘驱动器中的存储格式取决于内置的文件系统,而一般的镜像光盘服务器采用Linux操作系统,目前在该操作系统上最通用的文件格式是Ext2文件格式。像很多文件系统一样,Ext2建立在数据被保存在数据块中的文件内这个前提下。用户在使用硬盘驱动器存储数据之前,对硬盘驱动器要先执行分区格式化的过程,格式化是一个创建超级块和写文件节点的过程,在这个过程中会占用一部分硬盘驱动器上的存储空间。使用镜像光盘服务器的时候,镜像光盘的内容也只能保存在经过分区格式化的硬盘驱动器上,其存储格式也是经过操作系统按照已经格式化的文件格式重新组织存放在硬盘驱动器上的。因为一般的镜像光盘服务器上存储的镜像光盘不是标准的光盘文件格式,因此存在一系列问题。Most of the current mirror disc server systems mirror disc data in the form of hard copy. The hard copy method is also called direct copy. Direct copy refers to directly saving the disc content in the data hard disk according to the built-in file system format of the server system by directly reading the disc data. on the way. The storage format of CD data in the hard disk drive depends on the built-in file system, and the general image CD server adopts the Linux operating system, and the most common file format on this operating system is the Ext2 file format at present. Like many filesystems, Ext2 is built on the premise that data is stored within files in blocks. Before using the hard drive to store data, the user must perform partition formatting on the hard drive. Formatting is a process of creating superblocks and writing file nodes. During this process, a part of the storage space on the hard drive will be occupied. When using the mirror disc server, the contents of the mirror disc can only be stored on the partitioned and formatted hard disk drive, and its storage format is also reorganized and stored on the hard drive according to the formatted file format through the operating system. Because the image CD stored on the general mirror CD server is not a standard CD file format, there are a series of problems.
1、安全性难得到保证。虽然Ext2文件系统在Linux的发行版中得到了最广泛的应用,但是,由于Ext2的设计者主要考虑的是文件系统性能方面的问题,Ext2在写入文件内容的同时并没有同时写入和文件有关的信息,例如:权限、所有者以及创建和访问时间,换句话说,Linux先写入文件的内容,然后等到有空的时候才写入文件的相关信息。这样若出现写入文件内容之后但在写入文件的相关信息之前系统突然断电,就可能造成在文件系统就会处于不一致的状态。在一个有大量文件操作的系统中出现这种情况会导致很严重的后果。1. It is difficult to guarantee safety. Although the Ext2 file system is the most widely used in Linux distributions, because the designers of Ext2 mainly consider the performance of the file system, Ext2 does not write the content of the file and the file at the same time. Relevant information, such as: permissions, owners, and creation and access times, in other words, Linux first writes the contents of the file, and then waits until it is free to write the relevant information of the file. In this way, if the system suddenly loses power after writing the file content but before writing the relevant information of the file, it may cause the file system to be in an inconsistent state. This can have serious consequences on a system with a lot of file operations.
2、硬盘驱动器的利用效率较低。由于镜像光盘服务器采用直接拷贝的方式镜像光盘内容,而操作系统采用的文件系统又不是专门为镜像光盘服务器设计的文件格式,不仅要耗费格式化硬盘空间时创建超级块和写文件节点表的磁盘空间,而且每拷贝光盘上的一个目录或一个文件时都要记录其相应的文件信息,造成了大量不必要的磁盘空间浪费现象,而且增加了系统的寻址次数和寻址时间。2. The utilization efficiency of the hard disk drive is low. Since the mirror disc server adopts direct copy method to mirror disc content, and the file system adopted by the operating system is not a file format specially designed for the mirror disc server, it not only consumes disks for creating super blocks and writing file node tables when formatting hard disk space Space, and every time a directory or a file on the optical disc is copied, its corresponding file information must be recorded, resulting in a large amount of unnecessary waste of disk space, and increasing the number of addressing times and addressing time of the system.
3、非正常关机后系统启动慢。在非正常当机后(停电、系统崩溃),下一次启动时Ext2文件系统只有在通过磁盘校验程序e2fsck进行一致性校验后,Ext2文件系统才能被装载使用。运行e2fsck的时间主要取决于Ext2文件系统的大小。校验稍大一些的文件系统(几十GB)需要很长时间。如果文件系统上的文件数量多,校验的时间则更长。校验几百个GB的文件系统可能需要一个小时或更长。通常镜像光盘服务器需要配置几十GB到几百个GB甚至更多的硬盘空间,这极大地限制了镜像光盘服务器的可用性。3. The system starts slowly after an abnormal shutdown. After an abnormal shutdown (power outage, system crash), the Ext2 file system can only be loaded and used when the Ext2 file system is checked for consistency by the disk verification program e2fsck at the next startup. The time to run e2fsck depends mainly on the size of the Ext2 filesystem. It takes a long time to verify a slightly larger file system (tens of GB). If the number of files on the file system is large, the verification time will be longer. Verifying a file system of several hundred gigabytes can take an hour or more. Usually, the mirror image CD server needs to configure dozens of GB to hundreds of GB or even more hard disk space, which greatly limits the availability of the mirror CD server.
4、数据流输出不连续。镜像光盘服务器只是将光盘中的文件和目录简单拷贝到硬盘中,光盘内容在硬盘上的存放不是符合光盘文件系统结构标准的文件系统。这种方式带来的缺点是用户访问服务器上的镜像光盘时,系统输出的并非是连续的、稳定的光盘格式数据流,而是经过操作系统重新组织、随机存放在硬盘上的数据流。这对VCD/DVD等这类实时访问时要求输出连续稳定数据流的影音文件来说,用户访问它们的时候必然存在着缺陷,结果是造成数据输出不连续,视频、音频信号时断时续,大大影响观看效果。4. The data stream output is discontinuous. The mirror disc server simply copies the files and directories in the disc to the hard disk, and the storage of the contents of the disc on the hard drive is not a file system that conforms to the structure standard of the disc file system. The disadvantage of this method is that when the user accesses the mirrored disc on the server, the output of the system is not a continuous and stable disc format data stream, but a data stream that is reorganized by the operating system and randomly stored on the hard disk. For audio and video files such as VCD/DVD that require continuous and stable data stream output during real-time access, there must be defects when users access them, resulting in discontinuous data output, intermittent video and audio signals, Greatly affect the viewing effect.
发明内容Contents of the invention
本发明的目的在于提出了一个行之有效的构造虚拟镜像光盘盘片的方法及其系统硬件结构,可以方便快捷的将每一张物理光盘盘片上存储的内容完全按该盘片上的光盘文件系统结构标准存储在镜像光盘服务器系统的数据硬盘上,缩短系统的寻址时间,加快系统的响应速度,实现真正的光盘数据流输出。The purpose of the present invention is to propose an effective method for constructing a virtual image optical disk and its system hardware structure, which can conveniently and quickly store the content on each physical optical disk according to the optical disk file system on the disk The structure standard is stored on the data hard disk of the mirrored CD server system, which shortens the system's addressing time, speeds up the system's response speed, and realizes the real CD data stream output.
本发明提出的一种构造虚拟镜像光盘盘片的方法,其特征在于:包括A method for constructing a virtual mirror image disc according to the present invention is characterized in that it includes:
1)在数据盘上构造单设备,单级目录,连续分配的虚拟镜像光盘文件系统;1) Construct a single-device, single-level directory, and continuously allocated virtual image disc file system on the data disk;
2)对该虚拟镜像光盘文件系统的虚拟镜像光盘盘片文件进行目录提取;2) directory extraction is performed on the virtual mirror image disc file of the virtual mirror disc file system;
3)在数据盘的存储空间上标记存储槽,以此建立一个新的虚拟镜像光盘盘片记录,按连续逻辑块寻址方式镜像物理光盘盘片;3) mark the storage slot on the storage space of the data disk, so as to set up a new virtual image disc record, and mirror the physical disc disc according to the continuous logical block addressing mode;
4)对该虚拟镜像光盘盘片加载回送设备,实现操作系统对该虚拟镜像光盘盘片的管理。4) Loading a loopback device on the virtual image optical disk to realize the management of the virtual image optical disk by the operating system.
本发明所述方法具体包括以下步骤:The method of the present invention specifically comprises the following steps:
一、首先要构造单设备,单级目录,连续分配的虚拟镜像光盘文件系统,所构造的文件系统数据结构如图1所示,包括:1. First, construct a single-device, single-level directory, and continuously allocated virtual image disc file system. The data structure of the constructed file system is shown in Figure 1, including:
1).构造数据盘的磁盘总信息数据结构,包括磁盘标识的盘卷总信息,包含了该磁盘大小信息,目录区长度,磁盘空闲空间等信息的数据结构。1). Construct the data structure of the total disk information of the data disk, including the total information of the volume identified by the disk, and the data structure including the size information of the disk, the length of the directory area, and the free space of the disk.
2).构造目录区的数据结构,设定每个数据盘以单设备的形式被操作系统控制,安装在操作系统的一个安装点上,每个数据盘上设立一个目录区,该目录区保存了镜像在该数据盘上的所有虚拟镜像光盘盘片的文件名,起始扇区号,文件长度,存取权限,操作时间记录;2).Construct the data structure of the directory area, set each data disk to be controlled by the operating system in the form of a single device, install it on an installation point of the operating system, set up a directory area on each data disk, and save the directory area The file names, starting sector numbers, file lengths, access rights, and operation time records of all virtual image discs mirrored on the data disk;
3).构造所说的虚拟镜像光盘文件系统的文件区的数据结构;文件区在数据盘上顺序存放一个一个文件,一个文件就是一张虚拟镜像光盘盘片,一个文件保存一张被镜像的物理光盘盘片的内容;3). Construct the data structure of the file area of the said virtual image CD file system; the file area stores files one by one on the data disk in sequence, one file is a virtual image CD disk, and one file saves a mirrored the contents of the physical disc;
4).以分组计数的方式构造所说的每个数据盘的磁盘空闲空间信息的数据结构,同时分配或回收一组连续的磁盘盘块,该磁盘空闲空间信息的数据结构是一个二维的空闲空间表,每个记录项记录每组空闲盘块的首块地址和该组空闲盘块的块数,一个记录项对应空闲空间表的一行,空闲空间表的每一行由一个盘块地址项和一个块数这两项组成。4). Construct the data structure of the disk free space information of each data disk in a group counting manner, and allocate or reclaim a group of continuous disk disk blocks at the same time. The data structure of the disk free space information is a two-dimensional Free space table, each record item records the first block address of each group of free disk blocks and the number of free disk blocks in this group, one record item corresponds to a row of the free space table, and each row of the free space table consists of a disk block address item and a block number.
虚拟镜像光盘文件系统构造完成后,按操作系统提供的文件系统接口,将虚拟镜像光盘文件系统加入到操作系统的内核中。After the virtual image disc file system is constructed, the virtual image disc file system is added to the kernel of the operating system according to the file system interface provided by the operating system.
二、为了实现单设备,单级目录,连续存放的虚拟镜像光盘文件系统,需要对虚拟镜像光盘盘片文件预先进行目录提取。2. In order to realize a single-device, single-level directory, and continuously stored virtual image CD file system, it is necessary to extract the directory of the virtual mirror CD file in advance.
1)设第M张虚拟镜像光盘文件的目录名为dir1/dir2/…/dirN,文件名为mirrorcdm;1) Set the directory name of the Mth virtual image disc file as dir1/dir2/.../dirN, and the file name as mirrorcdm;
2)记系统盘目录为tower,安装程序截获服务器系统管理员发送来的镜像命令和目录数据后,在系统盘的目录下按照虚拟镜像光盘盘片的镜像顺序创建第M张虚拟镜像光盘盘片的序号目录,虚拟镜像光盘盘片的序号从0开始编号,该虚拟镜像光盘盘片的序号目录记为cd(M-1),同时在虚拟镜像光盘服务器的虚拟镜像盘总目录cdromtower下依次按照1级目录dir1,2级目录dir2,……,N级目录dirN的顺序创建虚拟镜像光盘文件的存放目录;2) Record the system disk directory as tower. After the installation program intercepts the mirroring command and directory data sent by the server system administrator, it creates the Mth virtual mirroring CD in the system disk directory according to the mirroring order of the virtual mirroring CD. The serial number directory of the virtual image disc, the serial number of the virtual image disc is numbered from 0, and the serial number directory of the virtual image disc is recorded as cd(M-1). 1st-level directory dir1, 2nd-level directory dir2, ..., N-level directory dirN order to create the storage directory of the virtual image CD file;
3)虚拟镜像光盘盘片文件名的提取:安装程序获得虚拟镜像光盘盘片文件名mirrorcdm后,在所说的建立的目录下,创建和虚拟镜像光盘盘片文件名mirrorcdm相同的安装点目录mirrorcdm/,并且建立从序号目录/tower/cd(M-1)/到cdromtower/dir1/dir2/…/dirN/mirrorcdm/目录的软链接;3) Extraction of the file name of the virtual mirror CD: after the installation program obtains the file name mirrorcdm of the virtual mirror CD, in the directory created, create the same installation point directory mirrorcdm as the file name mirrorcdm of the virtual mirror CD /, and establish a soft link from the serial number directory /tower/cd(M-1)/ to the cdromtower/dir1/dir2/.../dirN/mirrorcdm/ directory;
4)查找数据盘的磁盘镜像空间:查找具有足够连续的存储空间可以存储被镜像的物理光盘盘片内容的数据盘,并在找到第一个具有足够连续存储空间的数据盘的安装目录下查找隐藏的虚拟镜像光盘盘片所在的目录,记为.iso/;找到后在该目录下创建可以标识光盘文件系统格式的虚拟镜像光盘盘片文件的后缀名,记标识为iso,该虚拟镜像光盘盘片文件名记为mirrorcdm.iso。4) Find the disk mirroring space of the data disk: Find the data disk with enough continuous storage space to store the content of the mirrored physical CD, and search under the installation directory of the first data disk with sufficient continuous storage space The directory where the hidden virtual image disc is located is recorded as .iso/; after finding it, create the suffix name of the virtual image disc file that can identify the format of the disc file system in this directory, mark it as iso, and the virtual image disc The disc file name is recorded as mirrorcdm.iso.
三、标记存储槽,按连续逻辑块寻址方式镜像物理光盘盘片,在存储槽内构造符合实际物理光盘盘片文件系统标准的虚拟镜像光盘盘片。3. Marking the storage slot, mirroring the physical optical disc according to the continuous logic block addressing mode, and constructing a virtual image optical disc conforming to the actual physical optical disc file system standard in the storage slot.
1)在获得了一段足够容纳此虚拟镜像光盘盘片内容的连续的磁盘空间后,在该建立的数据结构中添加该段磁盘空间被占用的信息,记录起始块号和占用的块总数,完成对该存储槽的标记;1) After obtaining a section of continuous disk space enough to accommodate the content of the virtual image disc, add the occupied information of this section of disk space in the established data structure, record the starting block number and the total number of blocks occupied, Finish marking the storage slot;
2)在所说的目录区中添加新的虚拟镜像光盘盘片的文件信息,包括虚拟镜像光盘盘片文件名,起始扇区号,文件长度,存取权限,操作时间记录;2) Add the file information of the new virtual image CD in said directory area, including the file name of the virtual image CD, the initial sector number, the file length, the access authority, and the operation time record;
3)按照连续逻辑块寻址方式读取系统光驱中物理光盘记录的数据,从物理光盘上第0块扇区开始计数,依次顺序读取扇区中的内容,并按照连续逻辑块寻址方式写入所分配的存储槽空间中,从分配的第一块扇区开始写,一边读一边写,一直到物理光盘记录数据的最后一个扇区,写入所分配的存储空间的最后一个扇区;使物理光盘里记录的全部数据完全按照光盘存储的数据格式写入了所分配的存储空间连续的存储槽内,在这段连续的存储空间上,保存了实际物理光盘盘片的主卷描述幅、终止卷描述幅、目录表、目录文件以及所有的文件信息和文件数据。3) Read the data recorded on the physical disc in the system optical drive according to the continuous logical block addressing mode, start counting from the 0th sector on the physical disc, read the contents of the sectors sequentially, and follow the continuous logical block addressing mode Write to the allocated storage slot space, start writing from the first allocated sector, read and write at the same time, until the last sector of the physical disc recording data, write to the last sector of the allocated storage space ; Make all the data recorded in the physical disc be written into the continuous storage slots of the allocated storage space according to the data format stored in the disc. In this continuous storage space, the main volume description of the actual physical disc is saved. frame, ending volume description frame, directory table, directory file, and all file information and file data.
四、对所说的虚拟镜像光盘盘片加载回送设备,实现操作系统对该虚拟镜像光盘盘片的管理,回送设备是拿文件来模拟块设备的一种机制,在这里,就是拿虚拟镜像光盘盘片文件模拟块设备。具体包括以下步骤:4. Load the loopback device on the said virtual image disc to realize the management of the virtual image disc by the operating system. The loopback device is a mechanism to use files to simulate block devices. Here, it is to use the virtual image disc A disk file emulates a block device. Specifically include the following steps:
1)通过虚拟镜像光盘盘片文件名读取虚拟镜像光盘盘片文件的起始扇区号,文件长度,存取权限,操作时间记录等信息;1) Read information such as the initial sector number, file length, access rights, and operation time records of the virtual image CD file through the file name of the virtual image CD file;
2)根据虚拟镜像光盘盘片文件的后缀名判断此文件内所存储的数据格式符合哪种光盘文件系统结构标准,按其对应的光盘文件系统结构标准格式输出文件数据流。自此,完成了虚拟光盘文件系统的构造及虚拟光盘盘片文件的目录提取,存储槽的建立和实际物理光盘盘片的镜像,并实现操作系统对虚拟镜像光盘盘片的管理,完整地实现了虚拟镜像光盘盘片。2) Judging which optical disc file system structure standard the data format stored in the file conforms to according to the suffix name of the virtual image optical disc disc file, and outputting the file data stream according to the corresponding optical disc file system structure standard format. Since then, the construction of the virtual CD file system, the directory extraction of the virtual CD file, the establishment of the storage slot and the mirror image of the actual physical CD disk have been completed, and the management of the virtual mirror CD disk by the operating system has been realized. A virtual image disc is created.
本发明的实现原理说明如下:Implementation principle of the present invention is described as follows:
要实现一个高性能的镜像光盘服务器,一个非常重要的技术就是如何根据磁盘空间提供的存储容量,实现每个镜像光盘文件在服务器的存储空间上以连续而且符合原物理光盘文件系统结构标准的方式存储。To realize a high-performance image disc server, a very important technology is how to realize each image disc file in the storage space of the server in a continuous and consistent manner with the original physical disc file system structure standard according to the storage capacity provided by the disk space. storage.
通过研究发现,采用存储槽镜像物理光盘的方法具有很好的可行性。基于存储槽镜像物理光盘的思想是这样的:把磁盘驱动器即硬盘驱动器或者磁盘阵列提供的存储空间连续分割成许多部分,每一部分是一个独立的连续的存储槽;分割后的每个存储槽与一张具体的物理光盘盘片的存储容量相对应,不同的存储槽对应不同的实际物理光盘盘片;所说的物理光盘里存储的符合光盘文件系统结构标准的数据同样按照符合光盘文件系统结构标准的方式存储在每一个对应的存储槽里;通过给每一张存储在对应存储槽中的虚拟镜像光盘加载虚拟设备驱动程序,实现用户对虚拟镜像光盘盘片的访问和管理。Through the research, it is found that the method of mirroring the physical disc with the storage slot has good feasibility. The idea of mirroring a physical optical disc based on a storage slot is as follows: the storage space provided by a disk drive, that is, a hard drive or a disk array, is continuously divided into many parts, and each part is an independent continuous storage slot; The storage capacity of a specific physical optical disc corresponds to the storage capacity, and different storage slots correspond to different actual physical optical discs; the data stored in the physical optical disc that conforms to the optical disc file system structure standard also conforms to the optical disc file system structure It is stored in each corresponding storage slot in a standard way; by loading the virtual device driver program for each virtual image CD stored in the corresponding storage slot, the user can access and manage the virtual mirror CD.
目前的磁盘接口协议和光驱接口协议均支持连续逻辑块寻址方式(Logical BlockAddress:LBA)进行数据读写操作,这就为存储槽镜像物理光盘思想的实现提供了技术基础。Both the current disk interface protocol and optical drive interface protocol support continuous logical block addressing mode (Logical BlockAddress: LBA) for data read and write operations, which provides a technical basis for the realization of the idea of storage slot mirroring physical optical discs.
本发明提出的一种采用如上述方法实现虚拟镜像光盘盘片的虚拟镜像光盘服务器的硬件实现结构。其特征在于:包括带有CPU和内存的PC主板,插入PC主板的PCI插槽中的网卡,一个系统硬盘,一个系统光驱,多个IDE硬盘驱动器,多个SCSI硬盘驱动器,多个IDE接口的磁盘阵列,多个SCSI接口的磁盘阵列,SCSI接口卡,以及连接各模块的IDE总线和SCSI总线;所说的系统硬盘和系统光驱与PC主板的IDE1口总线相连,所说的IDE扩展卡和SCSI接口卡和PC主板的PCI插槽相连,所说的多个IDE硬盘驱动器和多个IDE接口的磁盘阵列与PC主板的IDE2口总线或IDE扩展卡相连,所说的多个SCSI硬盘驱动器和多个SCSI接口的磁盘阵列通过SCSI接口卡与PC主板相连。The present invention proposes a hardware implementation structure of a virtual mirror image CD server that adopts the above-mentioned method to realize a virtual mirror image CD disk. It is characterized in that: it comprises a PC motherboard with CPU and memory, a network card inserted into the PCI slot of the PC motherboard, a system hard disk, a system optical drive, multiple IDE hard drives, multiple SCSI hard drives, and multiple IDE interfaces. disk array, a disk array with multiple SCSI interfaces, SCSI interface cards, and the IDE bus and SCSI bus connecting each module; said system hard disk and system optical drive are connected to the IDE1 port bus of the PC motherboard, and said IDE expansion card and The SCSI interface card is connected with the PCI slot of the PC motherboard, and the disk arrays of said multiple IDE hard drives and multiple IDE interfaces are connected with the IDE2 port bus or the IDE expansion card of the PC motherboard, and the said multiple SCSI hard drives and Disk arrays with multiple SCSI interfaces are connected to the PC motherboard through SCSI interface cards.
本发明具备如下以下优点:The present invention has the following advantages:
1、数据响应速度快。因为本发明采用了存储槽镜像物理光盘盘片内容的方式,每镜像一张物理光盘盘片只需要一次记录该盘片的相关信息,无需多次记录盘片上每个文件和目录相关的文件信息,用户访问同一虚拟镜像光盘文件的时候大大缩短了系统的寻道次数和寻址时间,从而在整体上大大提高了服务器的数据响应和数据流输出。1. Fast data response. Because the present invention adopts the method of mirroring the content of the physical optical disc in the storage slot, each time a physical optical disc is mirrored, it only needs to record the relevant information of the disc once, and there is no need to record the file information related to each file and directory on the disc multiple times , when the user accesses the same virtual image disc file, the number of seeks and the seek time of the system are greatly shortened, thereby greatly improving the data response and data stream output of the server as a whole.
2、服务器掉电恢复快、安全性能提高。由于采用了存储槽管理镜像光盘,非正常关机后系统重新启动快,无需经过冗长的磁盘校验后才能启动;由于磁盘空间上存放的是光盘格式的数据,有效防止了黑客和病毒的入侵。2. The server recovers quickly after a power failure, and the security performance is improved. Due to the use of storage slots to manage mirrored discs, the system restarts quickly after an abnormal shutdown and does not need to go through a lengthy disk verification before it can be started; because the data stored in the disk space is in the format of a disc, it effectively prevents hackers and viruses from invading.
3、输出数据流连续、稳定。由于存储槽上的虚拟镜像光盘盘片是连续存放,并且存储格式符合相应的CD-ROM光盘文件系统标准,在单用户或多用户访问该虚拟光盘盘片的时候,服务器输出的是连续稳定的符合光盘文件系统结构标准的数据流,这也就意味着在没有网络故障的时候,用户获得的是如同直接访问光驱一样光滑平整的数据流,消除了用户访问VCD/DVD等这类实时访问时要求输出连续稳定数据流的影音文件存在的缺陷。3. The output data flow is continuous and stable. Since the virtual image disc on the storage slot is continuously stored, and the storage format conforms to the corresponding CD-ROM disc file system standard, when a single user or multiple users access the virtual disc, the output of the server is continuous and stable. The data stream conforms to the optical disc file system structure standard, which means that when there is no network failure, the user obtains a smooth and flat data stream as if directly accessing the optical drive, eliminating the need for real-time access such as VCD/DVD. Defects in audio and video files that require output of continuous and stable data streams.
4、系统的存储容量扩充余地大。由于系统支持SCSI接口的硬盘,每个SCSI卡可以外接8个SCSI硬盘,在2个IDE接口硬盘的存储空间上,可以再增加8个SCSI硬盘的存储空间。4. The storage capacity of the system has a large room for expansion. Since the system supports hard disks with SCSI interface, each SCSI card can be connected with 8 SCSI hard disks, and the storage space of 2 IDE interface hard disks can be added to the storage space of 8 SCSI hard disks.
5、系统设计经济性好。本系统设计方案采用的硬件包括网络设备均是通用的PC部件,无需购买特殊硬件或专用的网络设施,因此,系统实现方案的经济性非常好。5. The system design is economical. The hardware used in this system design scheme, including network equipment, is a common PC component, and there is no need to purchase special hardware or dedicated network facilities. Therefore, the system implementation scheme is very economical.
附图说明Description of drawings
图1是本发明的虚拟光盘文件系统的数据结构示意图。FIG. 1 is a schematic diagram of the data structure of the virtual optical disc file system of the present invention.
图2是本发明的虚拟光盘文件系统中磁盘空闲空间信息数据结构示意图。Fig. 2 is a schematic diagram of the data structure of disk free space information in the virtual disk file system of the present invention.
图3是本发明的存储槽、虚拟镜像光盘文件和虚拟镜像光盘盘片的对应关系示意图。Fig. 3 is a schematic diagram of the corresponding relationship between the storage slot, the virtual image optical disk file and the virtual image optical disk according to the present invention.
图4是本发明构造虚拟镜像光盘盘片的总体结构关系图。Fig. 4 is a relational diagram of the overall structure of the virtual image optical disc constructed in the present invention.
图5是本实施例实现虚拟镜像光盘盘片的虚拟镜像光盘服务器的硬件结构图。FIG. 5 is a hardware structural diagram of a virtual mirrored optical disc server for implementing a virtual mirrored optical disc in this embodiment.
图6是本实施例的虚拟镜像光盘文件系统的数据结构图。FIG. 6 is a data structure diagram of the virtual image optical disc file system in this embodiment.
具体实施方式Detailed ways
下面结合附图详细说明本发明虚拟镜像光盘盘片的实施例,其硬件结构如图5所示。包括:带CPU和内存的PC主板,插入PC主板的PCI插槽中的网卡,一个系统硬盘,一个系统光驱,两个容量为30.6Gb的IDE接口硬盘,一个容量为80Gb的SCSI硬盘,一个SCSI接口卡,以及连接各模块的IDE总线和SCSI总线构成;所说的系统硬盘和系统光驱与PC主板的IDE1口总线相连,所说的SCSI接口卡和PC主板的PCI插槽相连,所说的IDE硬盘与PC主板的IDE2口总线卡相连,所说的SCSI硬盘通过SCSI接口卡与PC主板相连。注:1Gb=109byte,1Mb=106byte,byte:字节。The embodiment of the virtual image optical disc of the present invention will be described in detail below in conjunction with the accompanying drawings, and its hardware structure is shown in FIG. 5 . Including: PC motherboard with CPU and memory, network card inserted into the PCI slot of the PC motherboard, a system hard disk, a system optical drive, two IDE interface hard disks with a capacity of 30.6Gb, a SCSI hard disk with a capacity of 80Gb, and a SCSI Interface card, and the IDE bus and SCSI bus that connect each module are formed; said system hard disk and system optical drive are connected with the IDE1 port bus of PC main board, and said SCSI interface card is connected with the PCI slot of PC main board, and said The IDE hard disk is connected with the IDE2 port bus card of the PC mainboard, and the said SCSI hard disk is connected with the PC mainboard through the SCSI interface card. Note: 1Gb=10 9 byte, 1Mb=10 6 byte, byte: byte.
本实施例的PC主板是系统运行的硬件平台,服务器内嵌的操作系统和网络协议以及安装管理程序等所有的软件部分运行在与PC主板的IDE1口总线相连的系统硬盘上,插入PC主板的PCI插槽中的网卡是服务器上网所需的网络设备,系统通过读取光驱中的光盘数据,将其镜像到与PC主板的IDE2口总线相连的IDE硬盘驱动器中或是镜像到通过SCSI卡和主板相连的SCSI硬盘驱动器中存储。The PC motherboard of the present embodiment is the hardware platform of system operation, and all software parts such as the operating system embedded in the server and the network protocol and the installation management program run on the system hard disk connected to the IDE1 port bus of the PC motherboard, insert the PC motherboard The network card in the PCI slot is the network device required by the server to access the Internet. The system reads the CD-ROM data in the CD-ROM drive and mirrors it to the IDE hard drive connected to the IDE2 port bus of the PC motherboard or to the SCSI card and stored on a SCSI hard drive attached to the motherboard.
在本实施例中,服务器内嵌操作系统采用Linux操作系统,系统开机后,先启动操作系统内核,包括加载虚拟镜像光盘文件系统,然后启动服务器提供的各项服务进程,接着读取虚拟镜像光盘文件,如果有,则依次给每张虚拟镜像光盘文件加载回送设备驱动程序,如果没有,则跳过加载回送设备驱动程序这一步,最后等待用户访问或系统管理员的命令。本实施例中,用来镜像的物理光盘都是容量为680Mb的符合ISO9660光盘文件系统国际标准的盘片,因此,每个存储槽的大小为680Mb,占2656250个扇区,每个磁盘扇区包含256字节,加载回送设备驱动程序按照符合ISO 9660光盘文件系统国际标准的格式输出数据流。In this embodiment, the embedded operating system of the server adopts the Linux operating system. After the system is turned on, the operating system kernel is first started, including loading the virtual image disc file system, and then starting various service processes provided by the server, and then reading the virtual image disc. file, if there is, then load the loopback device driver to each virtual image CD file in turn, if not, then skip the step of loading the loopback device driver, and finally wait for user access or the order of the system administrator. In this embodiment, the physical optical discs used for mirroring are all discs with a capacity of 680Mb conforming to the ISO9660 optical disc file system international standard. Therefore, the size of each storage slot is 680Mb, accounting for 2656250 sectors, and each disk sector Contains 256 bytes, loads the loopback device driver and outputs the data stream in a format conforming to the ISO 9660 optical disc file system international standard.
每个容量为30.6Gb(共有119531250个磁盘扇区)的IDE硬盘可以存储44张680Mb大小的虚拟镜像光盘盘片,容量为80Gb的SCSI硬盘,可以存储117张680Mb大小的虚拟镜像光盘盘片,所以,本实施例一共可以存储205张680Mb大小的虚拟镜像光盘盘片。Each IDE hard disk with a capacity of 30.6Gb (a total of 119531250 disk sectors) can store 44 pieces of 680Mb virtual image disks, and a SCSI hard disk with a capacity of 80Gb can store 117 pieces of 680Mb virtual image disks. Therefore, in this embodiment, a total of 205 virtual image disks with a size of 680 Mb can be stored.
一、以IDE2口的主硬盘为例,虚拟镜像光盘文件系统的数据结构如图6所示(所示的n值为本实施例单张虚拟镜像光盘盘片所占扇区数2656250,N值为硬盘总容量的最大扇区数119531250),包括磁盘盘卷总信息,目录区(文件描述信息区),文件区3个部分,每部分包含的内容如下:1. Taking the main hard disk of the IDE2 port as an example, the data structure of the virtual image disc file system is shown in Figure 6 (the n value shown is 2656250 sectors occupied by a single virtual image disc in this embodiment, and the N value It is the maximum number of sectors of the total hard disk capacity (119531250), including the total information of the disk volume, the directory area (file description information area), and the file area. The contents of each part are as follows:
1.IDE硬盘的磁盘总信息的数据结构,包括硬盘标识的盘卷总信息,包含了该磁盘大小信息30.6Gb(119531250个磁盘扇区),目录区长度(设定为44个磁盘扇区),磁盘空闲空间信息(磁盘空闲空间信息表占4个磁盘扇区),等数据结构,盘卷总信息总共占10个磁盘扇区。1. The data structure of the total disk information of the IDE hard disk, including the total volume information of the hard disk identification, including the disk size information of 30.6Gb (119531250 disk sectors), the length of the directory area (set to 44 disk sectors) , disk free space information (the disk free space information table takes up 4 disk sectors), and other data structures, and the total disk volume information takes up 10 disk sectors in total.
2.目录区的数据结构。IDE2口的主硬盘在操作系统上的安装点是/tower/cdromtower/.ftp/hda/,在该安装点的下面设立一个目录.iso,目录区长度占44个磁盘扇区,保存了镜像在该硬盘上每张虚拟镜像光盘的文件名,起始扇区号,文件长度,存取权限,操作时间记录等其他属性。2. The data structure of the directory area. The installation point of the main hard disk of the IDE2 port on the operating system is /tower/cdromtower/.ftp/hda/, and a directory .iso is set up under the installation point. The length of the directory area occupies 44 disk sectors, and the image is saved in The file name, starting sector number, file length, access authority, operation time record and other attributes of each virtual image disc on the hard disk.
3.文件区的数据结构。文件区顺序存放一个一个文件,一个文件就是一张虚拟镜像光盘盘片,保存一张被镜像的物理光盘盘片的内容。3. The data structure of the file area. The file area stores files one by one in sequence, and a file is a virtual mirrored optical disc, which stores the content of a mirrored physical optical disc.
4.以分组计数的方式构造每个数据盘的磁盘空闲空间信息的数据结构,同时分配或回收一组连续的磁盘盘块。磁盘空闲空间信息表占4个磁盘扇区,如图2所示,磁盘空闲空间信息的数据结构是一个二维的空闲空间表,每个记录项记录每组空闲盘块的首块地址和该组空闲盘块的块数,一个记录项对应空闲空间表的一行,空闲空间表的每一行由一个盘块地址项和一个块数这两项组成。4. Construct the data structure of the disk free space information of each data disk in a group counting manner, and allocate or reclaim a group of continuous disk blocks at the same time. The disk free space information table occupies 4 disk sectors, as shown in Figure 2, the data structure of the disk free space information is a two-dimensional free space table, and each entry records the address of the first block of each group of free disk blocks and the The number of free disk blocks in the group, one record item corresponds to a row of the free space table, and each row of the free space table is composed of a disk block address item and a block number.
虚拟镜像光盘文件系统构造完成后,按Linux操作系统提供的文件系统接口VFS,将虚拟镜像光盘文件系统加入到Linux操作系统的内核中。After the construction of the virtual image disc file system is completed, the virtual image disc file system is added to the kernel of the Linux operating system according to the file system interface VFS provided by the Linux operating system.
本实施例中,构造虚拟镜像光盘盘片的具体步骤如下:In this embodiment, the specific steps for constructing a virtual image disc are as follows:
一、首先构造一个能够整合到服务器内嵌操作系统内核中的单设备,单级目录,连续分配的虚拟镜像光盘文件系统:1. First, construct a virtual image disc file system that can be integrated into the kernel of the server's embedded operating system, with single-device, single-level directory, and continuous allocation:
1.构造数据盘的磁盘总信息的数据结构,包括磁盘标识的盘卷总信息,包含了该磁盘大小信息,目录区长度,磁盘空闲空间等信息的数据结构。1. Construct the data structure of the total disk information of the data disk, including the total volume information of the disk identification, and the data structure including the size information of the disk, the length of the directory area, and the free space of the disk.
2.构造目录区的数据结构。设定每个数据盘以单设备的形式被操作系统控制,安装在操作系统的一个安装点上,每个数据盘上设立一个目录区,该目录区保存了镜像在该数据盘上的所有虚拟镜像光盘盘片的文件名,起始扇区号,文件长度,存取权限,操作时间记录。2. Construct the data structure of the directory area. It is set that each data disk is controlled by the operating system in the form of a single device, installed on an installation point of the operating system, and a directory area is set up on each data disk, and the directory area stores all the virtual devices mirrored on the data disk. The file name, starting sector number, file length, access authority, and operation time record of the mirror image disc.
3.构造所说的虚拟镜像光盘文件系统的文件区的数据结构。文件区顺序存放一个一个文件,一个文件就是一张虚拟镜像光盘盘片,一个文件保存一张被镜像的物理光盘盘片的内容。3. Construct the data structure of the file area of the said virtual image disc file system. The file area stores files one by one sequentially, one file is a virtual image CD, and one file stores the content of a mirrored physical CD.
4.以分组计数的方式构造每个数据盘的磁盘空闲空间信息的数据结构,同时分配或回收一组连续的磁盘盘块。如图2所示,磁盘空闲空间信息的数据结构是一个二维的空闲空间表,每个记录项记录每组空闲盘块的首块地址和该组空闲盘块的块数,一个记录项对应空闲空间表的一行,空闲空间表的每一行由一个盘块地址项和一个块数这两项组成。4. Construct the data structure of the disk free space information of each data disk in a group counting manner, and allocate or reclaim a group of continuous disk blocks at the same time. As shown in Figure 2, the data structure of disk free space information is a two-dimensional free space table. Each record item records the address of the first block of each group of free disk blocks and the number of blocks in this group of free disk blocks. One record item corresponds to A row of the free space table, each row of the free space table is composed of a disk block address item and a block number.
虚拟镜像光盘文件系统构造完成后,按操作系统提供的文件系统接口,将虚拟镜像光盘文件系统加入到操作系统的内核中。After the virtual image disc file system is constructed, the virtual image disc file system is added to the kernel of the operating system according to the file system interface provided by the operating system.
二、为了实现单设备,单级目录的虚拟镜像光盘文件系统,需要对虚拟镜像光盘盘片文件预先进行目录提取:2. In order to realize the single-device, single-level directory virtual image disc file system, it is necessary to extract the directory of the virtual image disc file in advance:
1.设第M张被镜像物理光盘的镜像目录名为dir1/dir2/…/dirN,虚拟镜像光盘盘片文件名为mirrorcdm;1. Set the mirror directory name of the Mth mirrored physical disc as dir1/dir2/.../dirN, and the virtual mirror disc file name as mirrorcdm;
2.按下述方法进行虚拟镜像光盘文件目录名的提取:在系统盘的目录下(记系统盘目录为tower)按照虚拟镜像光盘盘片的存放顺序创建第M张虚拟镜像光盘盘片的序号目录(记为cd(M-1)),(注:虚拟镜像光盘盘片的序号从0开始编号),同时在虚拟镜像光盘服务器的虚拟镜像盘总目录(记为cdromtower)下依次按照1级目录dir1,2级目录dir2,…,N级目录dirN的顺序创建虚拟镜像光盘文件的存放目录。2. Extract the directory name of the virtual image CD file according to the following method: create the serial number of the Mth virtual image CD disk according to the storage order of the virtual image CD disk under the system disk directory (record the system disk directory as tower) directory (recorded as cd(M-1)), (note: the serial number of the virtual mirror disc disc starts from 0), and at the same time, it is in order according to level 1 under the general directory of the virtual mirror disk of the virtual mirror disc server (marked as cdromtower) Directory dir1, level 2 directory dir2, ..., N level directory dirN create storage directories for virtual image disc files in sequence.
3.虚拟镜像光盘盘片文件名的提取。安装程序获得虚拟镜像光盘盘片文件名mirrorcdm后,在上述步骤中建立的目录cdromtower/dir1/dir2/…/dirN下,创建和虚拟镜像光盘盘片文件名mirrorcdm相同的安装点目录mirrorcdm/,并且建立从根目录/tower/cd(M-1)/到cdromtower/dir1/dir2/…/dirN/mirrorcdm/目录的软链接。3. Extraction of the file name of the virtual image disc. After the installer obtains the file name mirrorcdm of the virtual image CD, create the installation point directory mirrorcdm/ that is the same as the file name mirrorcdm of the virtual mirror CD under the directory cdromtower/dir1/dir2/.../dirN established in the above steps, and Create a soft link from the root directory /tower/cd(M-1)/ to the cdromtower/dir1/dir2/…/dirN/mirrorcdm/ directory.
4.查找数据盘的磁盘镜像空间。查找具有足够的连续的存储空间容纳此虚拟镜像光盘内容的物理磁盘,并在找到第一个具有足够连续存储空间的磁盘安装目录下查找隐藏的虚拟镜像光盘盘片所在的目录(记为.iso/)。找到后在该目录下创建后缀名可以标识光盘文件系统格式的虚拟镜像光盘文件(记标识为iso,虚拟镜像光盘盘片文件名为mirrorcdm.iso)。4. Find the disk image space of the data disk. Find the physical disk with enough continuous storage space to accommodate the content of this virtual image disc, and find the directory where the hidden virtual mirror disc is located under the installation directory of the first disk with sufficient continuous storage space (denoted as .iso /). After finding it, create a virtual image disc file with a suffix name that can identify the format of the optical disc file system (the mark is iso, and the virtual image disc file name is mirrorcdm.iso) in this directory.
三、完成目录提取后,进行存储槽的标记和在存储槽内构造符合实际物理光盘盘片文件系统标准的镜像光盘盘片:3. After the directory extraction is completed, mark the storage slot and construct a mirror image disc in the storage slot that conforms to the actual physical disc file system standard:
1.标记存储槽。所谓存储槽就是一段连续的存储空间,标记存储槽就是对这段连续空间在虚拟镜像光盘文件系统的数据结构中加上使用或者空闲的标记,一个存储槽对应虚拟镜像光盘文件系统文件区中的一个文件,在这个存储槽里可以保存一张虚拟镜像光盘盘片,它们之间是一一对应的,对应关系如图3所示。根据上面的步骤,在上一步骤中获得了一段足够容纳此虚拟镜像光盘盘片内容的连续的磁盘空间,此时在该数据盘的磁盘总信息中添加该段磁盘空间被占用的信息,记录起始块号和占用的块总数,完成对该存储槽的标记。1. Mark the storage slot. The so-called storage slot is a continuous storage space, and marking the storage slot is to add a use or free mark to this continuous space in the data structure of the virtual image optical disc file system. A storage slot corresponds to the file area in the virtual image optical disc file system. A file, a virtual image disc can be stored in this storage slot, and there is a one-to-one correspondence between them, as shown in FIG. 3 . According to the above steps, in the previous step, a section of continuous disk space enough to accommodate the contents of the virtual image disc was obtained. At this time, the information about the occupied disk space of this section is added to the total disk information of the data disk, and recorded The starting block number and the total number of blocks occupied complete the marking of the storage slot.
2.在该数据盘的目录区中添加新的虚拟镜像光盘盘片的文件信息,包括虚拟镜像光盘盘片文件名,起始扇区号,文件长度,存取权限,操作时间记录等。2. Add the file information of the new virtual image CD in the directory area of the data disk, including the file name of the virtual image CD, the starting sector number, the file length, access rights, operation time records, etc.
3.按照连续逻辑块寻址方式(Logical Block Address:LBA)进行读取系统光驱中物理光盘记录的数据,从第0块扇区开始(注:物理光盘上的扇区计数从0开始),依次顺序读取扇区中的内容,并按照连续逻辑块寻址方式写入所分配的存储槽空间中,从分配的第一块扇区开始写,一边读一边写,一直到物理光盘记录数据的最后一个扇区,写入所分配的存储空间的最后一个扇区。这样物理光盘里记录的全部数据就完全按照光盘存储的数据格式写入了所分配的存储空间连续的存储槽内,在这段连续的存储空间上,保存了实际物理光盘盘片的主卷描述幅(Primary Volume Description)、终止卷描述幅(Terminal Volume Description)、目录表(Path Table)、目录文件(DirectoryFile)以及所有的文件信息和文件数据。3. Read the data recorded on the physical disc in the system optical drive according to the continuous logical block addressing mode (Logical Block Address: LBA), starting from the 0th sector (note: the sector count on the physical disc starts from 0), Read the contents of the sectors sequentially, and write them into the allocated storage slot space according to the continuous logical block addressing mode, start writing from the allocated first sector, write while reading, until the data is recorded on the physical disc Write to the last sector of the allocated storage space. In this way, all the data recorded in the physical disc is completely written into the continuous storage slots of the allocated storage space according to the data format stored in the disc. In this continuous storage space, the main volume description of the actual physical disc is saved. Primary Volume Description, Terminal Volume Description, Path Table, DirectoryFile, and all file information and file data.
到这里,已经实现了虚拟镜像光盘盘片在服务器的存储空间上以连续而且符合原物理光盘上的ISO 9660光盘文件系统格式的方式存储。So far, the virtual image disc has been stored in the storage space of the server in a continuous manner that conforms to the ISO 9660 disc file system format on the original physical disc.
四、下面对虚拟镜像光盘盘片构造回送设备,实现操作系统对虚拟镜像光盘盘片文件的管理。在这里,回送设备是拿ISO 9660文件来模拟块设备,就是拿虚拟镜像光盘盘片文件模拟块设备。4. Next, construct a loopback device for the virtual image CD, so as to realize the management of the virtual image CD files by the operating system. Here, the loopback device uses the ISO 9660 file to simulate the block device, that is, uses the virtual image disc file to simulate the block device.
1.通过虚拟镜像光盘盘片文件名读取虚拟镜像光盘文件的起始扇区号,文件长度,存取权限,操作时间记录等信息。1. Read the starting sector number, file length, access authority, operation time record and other information of the virtual image CD file through the file name of the virtual image CD.
2.根据虚拟镜像光盘盘片文件的后缀名.iso判断此文件内所存储的数据格式符合ISO 9660光盘文件系统结构标准,按ISO 9660光盘文件系统结构标准格式输出文件数据流。2. According to the suffix .iso of the virtual image disc file, it is judged that the data format stored in this file conforms to the ISO 9660 optical disc file system structure standard, and the file data stream is output according to the ISO 9660 optical disc file system structure standard format.
至此在虚拟光盘镜像服务器中完整地添加了一张新的虚拟镜像光盘盘片。系统进入等待管理员下一次操作命令的状态。So far, a new virtual image CD has been completely added to the virtual CD image server. The system enters the state of waiting for the next operation command from the administrator.
以上各部分之间的关系可以用图4所示的虚拟镜像光盘盘片的总体结构关系图来表示,可以看出,存储槽也就是虚拟镜像光盘盘片是建立在虚拟光盘文件系统之上的,操作系统通过虚拟镜像光盘文件系统接口实现对数据盘上存储数据的管理,而且通过加载回送设备驱动程序实现对虚拟镜像光盘盘片的访问。The relationship between the above parts can be represented by the overall structural relationship diagram of the virtual image disc as shown in Figure 4. It can be seen that the storage slot, that is, the virtual image disc, is built on the virtual disc file system , the operating system manages the data stored on the data disk through the interface of the virtual image optical disk file system, and realizes the access to the virtual image optical disk by loading the loopback device driver.
在新的虚拟镜像光盘盘片的生成过程中,不影响用户对服务器系统上其他虚拟镜像光盘盘片的访问。During the generation process of the new virtual image CD, it does not affect the user's access to other virtual image CDs on the server system.
本实施例其他数据硬盘上的虚拟镜像光盘文件系统的数据结构和虚拟镜像光盘盘片的生成过程和上述类似,有两点不同,一是硬盘在操作系统上的安装点不同,IDE2口从硬盘的安装点是/tower/cdromtower/.ftp/hdb/,SCSI硬盘的安装点是/tower/cdromtower/.ftp/sda/,另一个是虚拟镜像光盘文件系统的数据结构内的具体数值有所不同,只要用新的硬盘数据的值替换掉相应IDE2口主硬盘的值就可以。The data structure of the virtual image CD file system on other data hard disks in this embodiment and the generation process of the virtual mirror CD disk are similar to the above, with two differences. The installation point is /tower/cdromtower/.ftp/hdb/, the installation point of the SCSI hard disk is /tower/cdromtower/.ftp/sda/, and the other is the specific value in the data structure of the virtual image disc file system. , as long as the value of the corresponding IDE2 port main hard disk is replaced with the new hard disk data value.
本实施例使用的物理光盘是符合ISO 9660国际标准的光盘盘片,如果使用其他格式(如:UDF,Joliet,Romeo等)的光盘盘片,亦可以按照同样的方法实现虚拟镜像光盘盘片,也就是采用存储槽镜像物理光盘盘片并加载回送设备驱动程序实现符合原物理光盘文件系统结构标准输出文件数据流。The physical CD used in this embodiment is a CD that meets the ISO 9660 international standard. If you use CDs in other formats (such as: UDF, Joliet, Romeo, etc.), you can also implement a virtual image CD in the same way. That is, the storage slot is used to mirror the physical optical disk and the loopback device driver is loaded to realize the output file data stream conforming to the structure standard of the original physical optical disk file system.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 02121319 CN1395246A (en) | 2002-06-14 | 2002-06-14 | Method for implementing virtual image optical disk and and its system hardware structure |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 02121319 CN1395246A (en) | 2002-06-14 | 2002-06-14 | Method for implementing virtual image optical disk and and its system hardware structure |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN1395246A true CN1395246A (en) | 2003-02-05 |
Family
ID=4744924
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 02121319 Pending CN1395246A (en) | 2002-06-14 | 2002-06-14 | Method for implementing virtual image optical disk and and its system hardware structure |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1395246A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102163449A (en) * | 2010-12-31 | 2011-08-24 | 华为终端有限公司 | Method and system for testing burning tool, and embedded equipment |
| CN104094225A (en) * | 2011-11-28 | 2014-10-08 | 韦斯技术有限公司 | Creation or installation of disk image for target device having one of a plurality of hardware platforms |
| CN104298466A (en) * | 2013-07-17 | 2015-01-21 | 北大方正集团有限公司 | Optical disc reading method and optical disc reading device |
| CN109326307A (en) * | 2018-09-07 | 2019-02-12 | 江苏菲利斯通信息科技有限公司 | Disc streaming method |
| CN112256650A (en) * | 2020-10-20 | 2021-01-22 | 广州市百果园网络科技有限公司 | Storage space management method, device, equipment and storage medium |
| CN119166606A (en) * | 2024-09-13 | 2024-12-20 | 山东山大电力技术股份有限公司 | A virtual file system and a virtual file system operation method |
-
2002
- 2002-06-14 CN CN 02121319 patent/CN1395246A/en active Pending
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102163449A (en) * | 2010-12-31 | 2011-08-24 | 华为终端有限公司 | Method and system for testing burning tool, and embedded equipment |
| CN102163449B (en) * | 2010-12-31 | 2013-11-06 | 华为终端有限公司 | Method and system for testing burning tool, and embedded equipment |
| CN104094225A (en) * | 2011-11-28 | 2014-10-08 | 韦斯技术有限公司 | Creation or installation of disk image for target device having one of a plurality of hardware platforms |
| CN104298466A (en) * | 2013-07-17 | 2015-01-21 | 北大方正集团有限公司 | Optical disc reading method and optical disc reading device |
| CN104298466B (en) * | 2013-07-17 | 2017-10-20 | 北大方正集团有限公司 | Disc reading method and device |
| CN109326307A (en) * | 2018-09-07 | 2019-02-12 | 江苏菲利斯通信息科技有限公司 | Disc streaming method |
| CN109326307B (en) * | 2018-09-07 | 2020-12-11 | 江苏菲利斯通信息科技有限公司 | Disc streaming method |
| CN112256650A (en) * | 2020-10-20 | 2021-01-22 | 广州市百果园网络科技有限公司 | Storage space management method, device, equipment and storage medium |
| CN112256650B (en) * | 2020-10-20 | 2024-05-31 | 广州市百果园网络科技有限公司 | Storage space management method, device, equipment and storage medium |
| CN119166606A (en) * | 2024-09-13 | 2024-12-20 | 山东山大电力技术股份有限公司 | A virtual file system and a virtual file system operation method |
| CN119166606B (en) * | 2024-09-13 | 2025-03-25 | 山东山大电力技术股份有限公司 | A virtual file system and a virtual file system operation method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8725946B2 (en) | Mass storage system and method of using hard disk, solid-state media, PCIe edge connector, and raid controller | |
| CN104350477B (en) | Optimized context removal for solid-state drives (SSDs) | |
| US7788460B2 (en) | Defragmenting objects in a storage medium | |
| CN1774761B (en) | Drive device and method for reading from or writing in the recording carrier | |
| CN101681253B (en) | Secure and scalable solid state disk system | |
| CN1934530A (en) | Dynamic loading of virtual volume data in a virtual tape server | |
| CN102227729A (en) | Storage device presenting to hosts only files compatible with defined host capability | |
| KR20110097609A (en) | Method of pre-adapting data and computer readable media | |
| CN105808163A (en) | Method and server for accessing shingled magnetic recording SMR hard disk | |
| CN1945537A (en) | Method for realizing high speed solid storage device based on storage region network | |
| US20120158804A1 (en) | Method for converting data in optical disc drive | |
| CN1862476A (en) | Super large capacity virtual magnetic disk storage system | |
| US8055835B2 (en) | Apparatus, system, and method for migrating wear spots | |
| CN1711606A (en) | Record carrier having a main file system area and a virtual file system area | |
| CN1955939A (en) | Backup and recovery method based on virtual flash disk | |
| CN1395246A (en) | Method for implementing virtual image optical disk and and its system hardware structure | |
| US20080250189A1 (en) | Circuit and Method for Improving Operation Life of Memory | |
| CN1641610A (en) | Hard disk replacement control management method for network storage system | |
| CN1808365A (en) | Automatic Reconstruction Method of Disk Redundant Array Device | |
| CN101078972A (en) | Data storing device and data access method | |
| CN1588300A (en) | Device and related method for hard disk array parity operation | |
| CN1848280A (en) | recording device | |
| CN1820244A (en) | Storage Devices and Storage Systems | |
| CN1387124A (en) | Method for directly linking very large virtual mirror optical disk server to network | |
| JP5807942B2 (en) | Disk array device and control method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
| WD01 | Invention patent application deemed withdrawn after publication |