CN101551802B - File access method for a management system - Google Patents
File access method for a management system Download PDFInfo
- Publication number
- CN101551802B CN101551802B CN2008100905681A CN200810090568A CN101551802B CN 101551802 B CN101551802 B CN 101551802B CN 2008100905681 A CN2008100905681 A CN 2008100905681A CN 200810090568 A CN200810090568 A CN 200810090568A CN 101551802 B CN101551802 B CN 101551802B
- Authority
- CN
- China
- Prior art keywords
- file
- management
- storage device
- physical storage
- managed
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 230000009471 action Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 241000699666 Mus <mouse, genus> Species 0.000 description 1
- 241000699670 Mus sp. Species 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种用于一管理系统的文件存取方法,特别涉及一种可避免文件不同步、防止数据毁损、进而维护系统正常运作的文件存取方法。The invention relates to a file access method used in a management system, in particular to a file access method which can avoid file asynchrony, prevent data damage, and maintain normal operation of the system.
背景技术Background technique
为了有效提供远程管理服务,现有技术提供了一种使用系统管理装置(System Management Device)的服务器,使得管理人员可随时随地通过网络维护或监控机房内的服务器。一般而言,系统管理装置通常提供KVM-over-IP、虚拟存储(Virtual Storage,或称Drive Redirection、VirtualMedia)等功能。In order to effectively provide remote management services, the prior art provides a server using a system management device (System Management Device), so that managers can maintain or monitor servers in the computer room through the network anytime and anywhere. Generally speaking, the system management device usually provides KVM-over-IP, virtual storage (Virtual Storage, or Drive Redirection, VirtualMedia) and other functions.
在KVM-over-IP功能中,KVM是Keyboard、Video、Mouse三个前缀的缩写,表示用一组键盘、显示器、鼠标控制2至4032台计算机。一般的KVM必须靠管理人员在现场才能够操作,但若无法接触到KVM主机,则无法立即解决服务器的问题或改变服务器的设定。KVM-over-IP是一个全新的解决方案,其利用现有的网络环境,将KVM的操作信号通过网络传送至被管理端,因而不受距离、时间、门禁、个人因素等所限,使得系统管理人员可随时随地通过网络,管理、控制、监视被管理端的状态,以随时掌握状况,立即应变处理。In the KVM-over-IP function, KVM is the abbreviation of the three prefixes Keyboard, Video, and Mouse, which means that 2 to 4032 computers are controlled by a set of keyboards, monitors, and mice. General KVM can only be operated by administrators on site, but if the KVM host cannot be accessed, it is impossible to immediately solve server problems or change server settings. KVM-over-IP is a brand-new solution, which uses the existing network environment to transmit KVM operation signals to the managed end through the network, so it is not limited by distance, time, access control, personal factors, etc., making the system Managers can manage, control, and monitor the status of the managed terminal through the network anytime and anywhere, so as to grasp the situation at any time and deal with it immediately.
虚拟存储功能的概念类似于KVM-over-IP功能,相关说明请同时参考图1。在图1中,一系统管理装置104通过一系统管理芯片110,在一被管理端装置102仿真出一虚拟存储装置108,如软盘机、硬盘机、光驱等存储装置,并通过网络将一管理端装置100中一实体存储装置106的数据传输至被管理端装置102。被管理端装置102将虚拟存储装置108视为一实体存储装置,且其数据内容与实体存储装置106的数据完全相同。换句话说,被管理端装置102如同设置了一个与实体存储装置106相同的存储装置,使得被管理端装置102在不需要网络驱动程序的情形下,就可以与管理端装置100交换数据。对应地,管理端装置100中设有一管理程序112,用来通过一网络卡114与系统管理装置104做联系,以将实体存储装置106加载至被管理端装置102或由被管理端装置102移除。关于系统管理装置104的运作方式,请见以下说明。The concept of the virtual storage function is similar to the KVM-over-IP function, please refer to Figure 1 for related descriptions. In Fig. 1, a
首先,应用程序存取磁盘上的数据皆是以存取文件的方式来进行,而操作系统在提供文件存取服务时,都是以阶层式的架构来实作。亦即,先通过文件系统得知文件存于磁盘的位置,再通过磁盘驱动程序存取磁盘上的数据。操作系统开机时会将文件系统的相关数据存于内存中,若有更新会将数据写入磁盘上。因此,若有数据不是通过操作系统的文件系统写入磁盘,则文件系统无法得知文件已更新。First of all, applications access data on disks in the form of accessing files, while operating systems implement file access services in a hierarchical structure. That is, the location of the file stored on the disk is known through the file system first, and then the data on the disk is accessed through the disk driver. When the operating system is turned on, it will store the relevant data of the file system in the memory, and if there is an update, the data will be written to the disk. Therefore, if data is not written to the disk through the file system of the operating system, the file system cannot know that the file has been updated.
接着,请参考图2及图3,图2为图1中被管理端装置102由虚拟存储装置108读取文件时的示意图,而图3为图1中被管理端装置102写入文件至虚拟存储装置108时的示意图。在图2中,当被管理端装置102中的应用程序读取虚拟存储装置108的文件时,应用程序会经由一路径a 1输出一请求信号至系统管理装置104。亦即,应用程序先通过操作系统的系统呼叫功能读取虚拟存储装置108的文件,而操作系统则会通过文件系统得知需读取的文件在虚拟存储装置108的位置,进而通过驱动程序由虚拟存储装置108读取文件。接下来,系统管理装置104会经由一路径a2,将请求信号通过网络传送至管理端装置100中的管理程序112。然后,管理程序112经由一路径a3,由实体存储装置106读出需要的文件,并通过网络(即路径a2)传回系统管理装置104,以完成读取文件的动作。Next, please refer to FIG. 2 and FIG. 3. FIG. 2 is a schematic diagram of when the managed
另一方面,在图3中,当被管理端装置102写入文件至虚拟存储装置108时,应用程序会经由一路径b1输出一请求信号至系统管理装置104。亦即,应用程序先通过操作系统的系统呼叫功能写入文件至虚拟存储装置108,而操作系统则会通过文件系统决定将文件写入虚拟存储装置108的哪些位置,进而通过驱动程序写入文件至虚拟存储装置108。接下来,系统管理装置104会经由一路径b2,通过网络将请求信号及欲写入的文件传送至管理端装置100中的管理程序112。由于要求写入文件的请求信号是较为底层的指令,所包含的信息不足以让系统管理装置104或管理程序112通过操作系统的文件系统将文件写入实体存储装置106中。因此,当管理程序112收到写入请求信号及欲写入的文件后,管理程序112不会通过操作系统的文件系统,而是经由一路径b3直接将文件写入实体存储装置106中,以完成写入的动作。换句话说,当被管理端装置102写入文件至虚拟存储装置108时,管理端装置100的文件系统无法得知实体存储装置106的文件更新情形,造成管理端装置100与被管理端装置102间文件不同步的问题。在此情形下,当管理端装置100的其它应用程序经由一路径b4存取实体存储装置106的文件时,可能发生数据毁损的情形,而造成系统错误。On the other hand, in FIG. 3 , when the
因此,为了避免上述问题,现有技术通常会限制管理端装置100的使用者不得存取实体存储装置106的文件。换句话说,管理端装置100与被管理端装置102无法实现双向存取实体存储装置106的文件,因而造成其应用范围受限。Therefore, in order to avoid the above problems, the prior art usually restricts the user of the
发明内容Contents of the invention
因此,本发明的主要目的即在于提供一种用于一管理系统的文件存取方法。Therefore, the main purpose of the present invention is to provide a file access method for a management system.
本发明揭露一种用于一管理系统的文件存取方法,该管理系统包含一管理端装置、一被管理端装置及一系统管理装置,该系统管理装置介于该管理端装置与该被管理端装置之间,该文件存取方法包含有通过该系统管理装置,将该管理端装置的一实体存储装置仿真至该被管理端装置中,以在该被管理端装置中形成一虚拟存储装置;当该被管理端装置存取该虚拟存储装置的一文件时,通过该被管理端装置的一第一操作系统输出一请求指令至该系统管理装置,而不经由该被管理端装置的一第一文件系统输出该请求指令至该系统管理装置;以及根据该请求指令,由该管理端装置通过该管理端装置的一第二操作系统对该实体存储装置进行该文件的存取动作,而不经由该管理端装置的一第二文件系统对该实体存储装置进行该文件的存取动作。The invention discloses a file access method for a management system. The management system includes a management device, a managed device and a system management device. The system management device is between the management device and the managed device. Between end devices, the file access method includes emulating a physical storage device of the management end device into the managed end device through the system management device, so as to form a virtual storage device in the managed end device ; When the managed device accesses a file of the virtual storage device, a request command is output to the system management device through a first operating system of the managed device instead of via a first operating system of the managed device The first file system outputs the request command to the system management device; and according to the request command, the management device accesses the file to the physical storage device through a second operating system of the management device, and The file access operation is performed on the physical storage device without going through a second file system of the management terminal device.
附图说明Description of drawings
图1为现有一系统管理装置、一被管理端装置及一管理端装置的示意图。FIG. 1 is a schematic diagram of a conventional system management device, a managed device and a management device.
图2为图1中被管理端装置由一虚拟存储装置读取文件时的示意图。FIG. 2 is a schematic diagram of when the managed device in FIG. 1 reads a file from a virtual storage device.
图3为图1中被管理端装置写入文件至一虚拟存储装置时的示意图。FIG. 3 is a schematic diagram of when the managed device in FIG. 1 writes a file to a virtual storage device.
图4为本发明实施例一流程的示意图。FIG. 4 is a schematic diagram of a process in Embodiment 1 of the present invention.
图5为根据图4的流程,通过图1中被管理端装置写入文件至一虚拟存储装置时的示意图。FIG. 5 is a schematic diagram of writing a file to a virtual storage device through the managed device in FIG. 1 according to the flow in FIG. 4 .
附图符号说明Description of reference symbols
100 管理端装置100 management device
102 被管理端装置102 managed device
104 系统管理装置104 System management device
106 实体存储装置106 Physical storage device
108 虚拟存储装置108 virtual storage device
110 系统管理芯片110 System Management Chip
112 管理程序112 Management program
114 网络卡114 Network card
40 流程40 Process
400、402、404、406、408 步骤400, 402, 404, 406, 408 steps
a1、a2、a3、b1、b2、b3、b4、c1、c2、c3、c4 路径。a1, a2, a3, b1, b2, b3, b4, c1, c2, c3, c4 path.
具体实施方式Detailed ways
请参考图4,图4为本发明实施例一流程40的示意图。流程40用于一管理系统中存取文件,该管理系统较佳地为图1所示的系统。流程40包含以下步骤:Please refer to FIG. 4 , which is a schematic diagram of a
步骤400:开始。Step 400: start.
步骤402:通过该系统管理装置,将该管理端装置的一实体存储装置仿真至该被管理端装置中,以在该被管理端装置中形成一虚拟存储装置。Step 402: Using the system management device, emulate a physical storage device of the management device into the managed device to form a virtual storage device in the managed device.
步骤404:当该被管理端装置存取该虚拟存储装置的一文件时,通过该被管理端装置的一第一操作系统输出一请求指令至该系统管理装置,而不经由该被管理端装置的一第一文件系统输出该请求指令至该系统管理装置。Step 404: When the managed device accesses a file of the virtual storage device, a first operating system of the managed device outputs a request command to the system management device without going through the managed device A first file system of a system outputs the request command to the system management device.
步骤406:根据该请求指令,由该管理端装置通过该管理端装置的一第二操作系统对该实体存储装置进行该文件的存取动作,而不经由该管理端装置的一第二文件系统对该实体存储装置进行该文件的存取动作。Step 406: According to the request instruction, the management terminal device accesses the file to the physical storage device through a second operating system of the management terminal device, without going through a second file system of the management terminal device The file access operation is performed on the entity storage device.
步骤408:结束。Step 408: end.
根据流程40,当系统管理装置于被管理端装置中形成一虚拟存储装置后,若被管理端装置需存取该虚拟存储装置的一文件时,本发明通过被管理端装置的操作系统,直接输出一请求指令至系统管理装置,而不经由文件系统输出该请求指令。换句话说,被管理端装置的应用程序需存取虚拟存储装置的文件时,本发明是直接将存取指令输出至系统管理装置,而不经由文件系统输出存取指令。对应地,管理端装置亦直接通过操作系统对实体存储装置进行文件的存取动作,而不经由文件系统对实体存储装置进行文件的存取动作。According to the
在此情形下,当管理端装置的应用程序存取实体存储装置的文件时,应用程序是直接通过操作系统对实体存储装置进行文件的存取动作,而不经由文件系统对实体存储装置进行文件的存取动作。举例来说,请参考图5,图5为根据流程40通过图1中被管理端装置102写入文件至虚拟存储装置108时的示意图。在图5中,当被管理端装置102写入文件至虚拟存储装置108时,应用程序会经由一路径c1输出一请求信号至系统管理装置104。亦即,应用程序不通过文件系统而直接通过操作系统的系统呼叫功能及驱动程序写入文件至虚拟存储装置108。接下来,系统管理装置104会经由一路径c2,通过网络将请求信号及欲写入的文件传送至管理端装置100中的管理程序112。当管理程序112收到写入请求信号及欲写入的文件后,管理程序112不会通过操作系统的文件系统,而是经由一路径c3直接将文件写入实体存储装置106中,以完成写入的动作。同时,若管理端装置100的其它应用程序需存取实体存储装置106的文件时,应用程序会经由一路径c4存取实体存储装置106的文件时;亦即,不通过文件系统而直接通过操作系统进行文件的存取动作。In this case, when the application program of the management terminal device accesses the files of the physical storage device, the application program directly performs file access actions on the physical storage device through the operating system, instead of performing file access operations on the physical storage device through the file system. access action. For example, please refer to FIG. 5 , which is a schematic diagram of writing a file to the
简言之,通过本发明,在管理端装置100与被管理端装置102中文件的存取动作不会经由文件系统,因而可避免文件不同步的问题,防止数据毁损的情形,以维护系统正常运作。In short, through the present invention, the file access actions in the
综上所述,当管理端装置或被管理端装置进行文件存取动作时,本发明不会通过文件系统而是直接由操作系统进行相关处理,以避免文件不同步的问题,防止数据毁损,进而维护系统正常运作。In summary, when the management device or the managed device performs file access operations, the present invention does not pass through the file system but directly performs relevant processing by the operating system to avoid the problem of file asynchrony and prevent data damage. In order to maintain the normal operation of the system.
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100905681A CN101551802B (en) | 2008-04-03 | 2008-04-03 | File access method for a management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100905681A CN101551802B (en) | 2008-04-03 | 2008-04-03 | File access method for a management system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101551802A CN101551802A (en) | 2009-10-07 |
CN101551802B true CN101551802B (en) | 2011-09-21 |
Family
ID=41156050
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100905681A Expired - Fee Related CN101551802B (en) | 2008-04-03 | 2008-04-03 | File access method for a management system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101551802B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199791A (en) * | 2014-08-15 | 2014-12-10 | 深圳市中兴移动通信有限公司 | Mobile terminal and dual-system file transfer method and device thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5463772A (en) * | 1993-04-23 | 1995-10-31 | Hewlett-Packard Company | Transparent peripheral file systems with on-board compression, decompression, and space management |
CN1567245A (en) * | 2003-06-26 | 2005-01-19 | 宏碁股份有限公司 | Remote data access method and computer using the method |
CN1696914A (en) * | 2004-05-11 | 2005-11-16 | 深圳市朗科科技有限公司 | Method and device for remote storing data |
CN1771495A (en) * | 2003-05-07 | 2006-05-10 | 国际商业机器公司 | Distributed file serving architecture system |
-
2008
- 2008-04-03 CN CN2008100905681A patent/CN101551802B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5463772A (en) * | 1993-04-23 | 1995-10-31 | Hewlett-Packard Company | Transparent peripheral file systems with on-board compression, decompression, and space management |
CN1771495A (en) * | 2003-05-07 | 2006-05-10 | 国际商业机器公司 | Distributed file serving architecture system |
CN1567245A (en) * | 2003-06-26 | 2005-01-19 | 宏碁股份有限公司 | Remote data access method and computer using the method |
CN1696914A (en) * | 2004-05-11 | 2005-11-16 | 深圳市朗科科技有限公司 | Method and device for remote storing data |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104199791A (en) * | 2014-08-15 | 2014-12-10 | 深圳市中兴移动通信有限公司 | Mobile terminal and dual-system file transfer method and device thereof |
Also Published As
Publication number | Publication date |
---|---|
CN101551802A (en) | 2009-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8380922B1 (en) | Data storage device comprising host interface state machine blocking on target logical block address | |
JP4399021B1 (en) | Disk array control device and storage device | |
US8250283B1 (en) | Write-distribute command for RAID mirroring | |
US10936350B2 (en) | Active drive API | |
US20030009619A1 (en) | Automated on-line capacity expansion method for storage device | |
US8051300B2 (en) | System and method for reducing latency on remotely-booted information handling systems | |
US7370165B2 (en) | Apparatus and method for protecting data recording on a storage medium | |
US8069323B2 (en) | Storage system and remote copy control method | |
US8219714B2 (en) | Storage area network and method for provisioning therein | |
TWI387883B (en) | Method, medium and device for overcoming system administration blockage | |
US7996631B1 (en) | System and method for accessing storage devices attached to a stateless client | |
US20090019211A1 (en) | Establishing A Redundant Array Of Inexpensive Drives | |
CN101551802B (en) | File access method for a management system | |
JP2008071189A (en) | Disk array device, raid controller, and disk array construction method of disk array device | |
KR100594305B1 (en) | Apparatus and method for updating program code of optical disk driver using serial AT interface | |
TWI408552B (en) | File access method for a management system | |
CN115061958B (en) | Hard disk identification method, identification system, storage medium and computer equipment | |
US11544013B2 (en) | Array-based copy mechanism utilizing logical addresses pointing to same data block | |
JP4080629B2 (en) | Access control device and computer-readable storage medium storing program | |
Deming | The Essential Guide to Serial ATA and SATA Express | |
JPH11143646A (en) | Method of controlling external storage subsystem and external storage subsystem | |
TWI390399B (en) | External device having a virtual storage device | |
CN103716359A (en) | Storage device and related control method | |
CN119902711A (en) | A cross-storage online cloning system for distributed cloud hard disks | |
CN100378694C (en) | An independent hard disk controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Assignee: WISTRON (SHANGHAI) Co.,Ltd. Assignor: WISTRON Corp. Contract record no.: 2012990000277 Denomination of invention: File access method used for management system Granted publication date: 20110921 License type: Exclusive License Open date: 20091007 Record date: 20120426 |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110921 |