KR0171290B1 - Shared file system - Google Patents

Shared file system Download PDF

Info

Publication number
KR0171290B1
KR0171290B1 KR1019950067160A KR19950067160A KR0171290B1 KR 0171290 B1 KR0171290 B1 KR 0171290B1 KR 1019950067160 A KR1019950067160 A KR 1019950067160A KR 19950067160 A KR19950067160 A KR 19950067160A KR 0171290 B1 KR0171290 B1 KR 0171290B1
Authority
KR
South Korea
Prior art keywords
file system
shared file
shared
ethernet
lock
Prior art date
Application number
KR1019950067160A
Other languages
Korean (ko)
Other versions
KR970049721A (en
Inventor
김태룡
Original Assignee
구자홍
엘지전자주식회사
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 구자홍, 엘지전자주식회사 filed Critical 구자홍
Priority to KR1019950067160A priority Critical patent/KR0171290B1/en
Publication of KR970049721A publication Critical patent/KR970049721A/en
Application granted granted Critical
Publication of KR0171290B1 publication Critical patent/KR0171290B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/167Interprocessor communication using a common memory, e.g. mailbox

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

본 발명은 유닉스 시스템에서 동시에 여러 시스템이 같은 파일 시스템에 접근할 수 있도록 한 공유 파일 시스템에 관한 것이다.The present invention relates to a shared file system that allows multiple systems to access the same file system at the same time in a Unix system.

이러한 본 발명은 라이트 시에는 록신호를 발생하고 기록을 한 후 타 시스템에 이를 알리고 리드시에는 공유 디스크에서 직접 리드하거나 네트워크를 통해 다른 시스템에서 데이터를 리드하는 공유 파일 시스템과, 공유 파일 시스템에서 발생된 리드/라이트에 따른 신호를 타 시스템으로 전송하기 위한 프리미트부로 부터 얻어진 신호를 네트워크를 통해 타 시스템에 전송하는 이더넷과, 이더넷으로부터 전송된 데이터를 상기 공유 파일 시스템으로 전송하기 이한 리모트 프로시저 콜부를 구비한다.The present invention generates a lock signal at the time of writing, records it, informs other systems, and at the time of reading, a shared file system which directly reads from a shared disk or reads data from another system through a network, and a shared file system. Ethernet which transmits the signal obtained from the preliminary part for transmitting the signal according to the read / write to another system through the network to the other system, and the remote procedure call to transmit the data transmitted from the Ethernet to the shared file system. A part is provided.

Description

공유 파일 시스템Shared file system

제1도는 종래 파일 시스템 구성도.1 is a conventional file system configuration diagram.

제2도는 본 발명에 의한 공유 파일 시스템 개념도.2 is a conceptual diagram of a shared file system according to the present invention.

제3도는 본 발명에 의한 공유 파일 시스템 구성도.3 is a configuration diagram of a shared file system according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

100 : 공유 디스크 101 : 공유 파일 시스템100: shared disk 101: shared file system

102 : 프리미티브 및 분산록 인터페이스부102: primitive and distribution lock interface unit

103 : 이더넷103: Ethernet

본 발명은 공유 파일 시스템에 관한 것으로, 특히 유닉스 시스템에서 동시에 여러 시스템이 같은 파일 시스템에 접근할 수 있도록 한 공유 파일 시스템에 관한 것이다.The present invention relates to a shared file system, and more particularly, to a shared file system that allows multiple systems to access the same file system at the same time.

제1도는 종래 파일 시스템 구성도이다.1 is a conventional file system configuration diagram.

도시된 바와 같이, 일반적인 파일시스템에 대한 인터페이스를 제공하는 파일 시스템(11)과 파일 시스템(11)의 성능을 높이기 의한 메모리상의 캐시인 버퍼 및 디렉토리 캐시(12)로 하나의 시스템(10)이 구성되고, 다른 시스템(20)도 파일 시스템(11)과 버퍼 및 디렉토리 캐시(22)로 구성되며, 두 시스템(10)(20)은 공유 디스크(30)를 공유하는 구성이다.As shown, one system 10 is comprised of a file system 11 that provides an interface to a common file system and a buffer and directory cache 12 that is a cache on memory that enhances the performance of the file system 11. The other system 20 is also composed of a file system 11, a buffer and a directory cache 22, and the two systems 10 and 20 share a shared disk 30.

이러한 구성을 갖는 종래 파일 시스템의 동작을 설명하면 다음과 같다.The operation of the conventional file system having such a configuration will be described below.

먼저, 사용자가 파일 시스템에 대한 요구를 하면 시스템(20)내의 파일 시스템(21)에서 인터페이스를 하여 버퍼 및 디렉토리 캐시(22)에서 처리와 inode, 그리고 해당되는 커널 구조를 변경한다.First, when a user makes a request for a file system, the user interfaces with the file system 21 in the system 20 to change processing, inodes, and corresponding kernel structures in the buffer and directory cache 22.

이러한 처리가 완료되면 실제 데이터의 이동이 공유 디스크(30)를 통해서 발생된다.When this processing is completed, the movement of the actual data occurs through the shared disk 30.

이때 시스템(10)은 대기상태이다. 마찬가지로 시스템(10)이 사용되는 경우에는 시스템(20)은 대기 상태에 있게된다.At this time, the system 10 is in a standby state. Likewise, if system 10 is used, system 20 is in a standby state.

그러나 이러한 종래의 파일 시스템은 각각의 시스템이 서로다른 버퍼 및 디렉토리 캐시를 가지고 있으므로 동시에 같은 캐시 시스템에 접근할 수 없는 단점이 있었다.However, this conventional file system has a disadvantage in that each system has different buffers and directory caches and thus cannot access the same cache system at the same time.

즉, 한쪽 시스템이 모두 사용후 공유 디스크를 통해 데이터의 이동이 이루어질때까지 다른 시스템은 대기해야 하는 단점이 있었다.In other words, the other system had to wait for data movement through the shared disk after one system was used.

또한, 파일 시스템에 대한 록킹이 로칼하게 발생하므로 다른 시스템에서 같은 파일 시스템을 접근할 수 없는 단점도 있었다.In addition, since locking to the file system occurs locally, there is a disadvantage that the same file system cannot be accessed from another system.

따라서 본 발명은 상기와 같은 종래 파일 시스템의 제반 문제점을 해결하기 의한 것으로, 본 발명의 목적을 유닉스 시스템에서 동시에 여러 시스템이 같은 파일 시스템에 접근할 수 있도록 한 공유 파일 시스템을 제공하는데 있다.Accordingly, the present invention solves the problems of the conventional file system as described above, and an object of the present invention is to provide a shared file system that allows multiple systems to access the same file system at the same time.

이러한 본 발명의 목적을 달성하기 위한 기술적 수단은 라이트 시에는 록신호를 발생하고 기록을 한후 타 시스템에 이를 알리고 리드시에는 공유 디스트에서 직접 리드하거나 네트워크를 통해 다른 시스템에서 데이터를 리드하는 공유 파일 시스템과,The technical means for achieving the object of the present invention is a shared file system that generates a lock signal at the time of writing and writes it to another system, and at the time of reading, reads directly from the shared disk or from another system through the network. and,

상기 공유 파일 시스템에서 발생된 리드/라이트에 따른 신호를 타 시스템으로 전송하기 위한 프리미트부로 부터 얻어진 신호를 네트워크를 통해 타 시스템에 전송하는 이더넷과,Ethernet for transmitting the signal obtained from the premise unit for transmitting the signal according to the read / write generated in the shared file system to the other system through the network,

상기 이더넷으로부터 전송된 데이터를 상기 공유 파일 시스템으로 전송하기 위한 리모트 프로시저 콜부로 이루어진다.Remote procedure call unit for transmitting the data transmitted from the Ethernet to the shared file system.

이하, 본 발명의 바람직한 실시예를 첨부한 도면 제2도 및 제3도를 참조하여 상세히 설명하면 다음과 같다.Hereinafter, with reference to Figures 2 and 3 attached to a preferred embodiment of the present invention will be described in detail.

제2도는 본 발명에 의한 파일 공유 시스템 개념도이다.2 is a conceptual diagram of a file sharing system according to the present invention.

도시된 바와 같이, 파일 시스템(41)과 버퍼 및 디렉토리 캐시(42) 및 프리미트브 및 분산록 인터페이스부(43)로 하나의 시스템(40)이 구성되고, 다른 시스템(50)도 파일 시스템(51)과 버퍼 및 디렉토리 캐시(52) 및 프리미티브 및 분산록 인터페이스부(53)로 구성되며, 두 시스템(40)(50)은 공유 디스크(60)를 공유하는 구성이다.As shown, one system 40 is composed of a file system 41, a buffer and directory cache 42, and a primitive and distribution lock interface portion 43, and the other system 50 also includes a file system ( 51, a buffer and directory cache 52, and a primitive and distribution lock interface unit 53, the two systems 40 and 50 share a shared disk 60.

제3도는 본 발명에 의한 파일 공유 시스템 구성도이다.3 is a block diagram of a file sharing system according to the present invention.

도시된 바와 같이 라이트 시에는 록신호를 발생하고 기록을 한 후 타 시스템에 이를 알리고 리드시에는 공유 디스크(100)에서 직접 리드하거나 네트워크를 통해 다른 시스템에서 데이터를 리드하는 공유 파일 시스템(101)과, 상기 공유 파일 시스템(101)에서 발생된 리드/라이트에 따른 신호를 타 시스템으로 전송하기 의한 프리미트부(102)로부터 얻어진 신호를 네트워크를 통해 타 시스템에 전송하는 이더넷과, 상기 이더넷(103)으로부터 전송된 데이터를 상기 공유 파일 시스템(104)으로 전송하기 위한 리모트 프로시저 콜부(104)로 구성되었다.As shown in the figure, a lock signal is generated and recorded and then notified to another system, and at the time of reading, a shared file system 101 for reading data directly from the shared disk 100 or from another system through a network. Ethernet for transmitting a signal obtained from the premise unit 102 by transmitting a signal according to the read / write generated in the shared file system 101 to another system through a network to the other system, and the Ethernet 103 Remote procedure call section 104 for transmitting the data transmitted from the shared file system 104 to the shared file system 104.

먼저, 한 시스템(40)을 이용 기록을 할 경우 프리미트부 및 분산록 인터베이스부(102)를 통해 록을 하고, 기록을 한 후 타 시스템(50)에 이 사실을 알린다.First, when using one system 40 to record, the lock is performed through the premium unit and the distributed lock interbase unit 102, and the other system 50 is notified of the fact after the recording.

다음으로, 판독(read)할 경우 인벨리드(invalid) 상태인지를 판단하여, 인벨리드 상태가 아닌 경우에는 다른 시스템에 의해 기록된 경우가 아니므로 공유 디스크(100)에서 직접 판독하고, 이와는 달리 인벨리드 상태이면 다른 시스템에 의해 기록된 경우이므로 네트워크(103)를 통해 다른 시스템에서 데이터를 판독하게 된다.Next, when it is read, it is determined whether it is in an invalid state, and when it is not in an embedded state, since it is not written by another system, it is directly read from the shared disk 100, and Otherwise, if the envelope state is recorded by another system, data is read from another system through the network 103.

즉, 기록시에는 dwrite( )에 의해 drelse( )가 수행되며 인수로 주어진 해당 버퍼에 대한 분석록을 가지기 위한 dtb-write-ldck( )을 수용한다.In other words, when writing, drelse () is executed by dwrite () and accepts dtb-write-ldck () to have the analysis log for the corresponding buffer given as an argument.

그 dtd-write-iock( )에 의해 d-dtb-request( )가 호출되면 r-dtb-request( )에 의해 상대방에게 록을 요구하고, 이 록 요구를 패킷으로 만들어 이더넷(103)을 통해 다른 시스템으로 요구 패킷을 전송한다.When d-dtb-request () is called by dtd-write-iock (), it requests the other party's lock by r-dtb-request (), and makes this lock request into a packet to make another request through Ethernet 103. Send the request packet to the system.

이후, 다른 시스템에서 요구 패킷을 받으면 이를 분석하여 무슨 요구인지를 판단하게되고, 이 경우 록에 대한 서비스 이므로 r-dtb-lock-srv( )를 호출하게 되며, 그 r-dtb-lock-srv( )에 의해 set-ldck-info가 호출된다.After that, when a request packet is received from another system, it is analyzed to determine what the request is. In this case, since it is a service for the lock, r-dtb-lock-srv () is called, and r-dtb-lock-srv ( Set-ldck-info is called.

상기한 set-ldck-info에서 lock info를 세트하게되고 lock을 기다리고 있던 시스템을 깨우기 위한 패킷을 전송하기 위해 ci-pwrite( )를 호출한다.In the above-mentioned set-ldck-info, the lock info is set, and ci-pwrite () is called to transmit a packet to wake up the system waiting for the lock.

그리고, wake-for-reply 패킷을 만들어 록을 요구한 시스템으로 전송하므로써 상기 시스템은 록을 전송받게 된다.The system then receives the lock by creating a wake-for-reply packet and sending it to the system that requested the lock.

다음으로, 판독(read)시에는 원하는 버퍼를 요구한 후 dtb-read-lock에서 해당 버퍼의 인벨리드 상태를 확인한다.Next, when reading, request the desired buffer and check the envelope status of the corresponding buffer in dtb-read-lock.

이때, 인벨리드 상태이면 다른 시스템에서 데이터를 가져오기 위한 get-data( )를 호출하고, 리모트 프로시저 콜부(104)를 데이터를 이동시켜 상대방의 버퍼 데이터를 찾아 리턴하게 해준다.At this time, if it is in the envelope state, get-data () is called to get data from another system, and the remote procedure call unit 104 moves the data to find and return the buffer data of the counterpart.

이상에서와 같이 본 발명은 같은 파일 시스템을 서로 다른 시스템이 공유하므로써 한 시스템이 다운되 있을 경우에도 다른 시스템을 이용하여 파일 시스템에 접근할 수 있는 효과가 있다As described above, the present invention has the effect of accessing a file system using another system even when one system is down by sharing the same file system with different systems.

또한, 로드를 여러 시스템에 분산 시킴으로써 시스템 성능 향상을 도모할 수도 있다.You can also improve system performance by distributing the load across multiple systems.

Claims (1)

라이트 시에는 록신호를 발생하고 기록을 한 후 타 시스템에 이를 알리고 리드시에는 공유 디스크에서 직접 리드하거나 네트워크를 통해 다른 시스템에서 데이터를 리드하는 공유 파일 시스템과, 상기 공유 파일 시스템에서 발생된 리스/라이트에 따른 신호를 타 시스템으로 전송하기 위한 프리미트부로 부터 얻어진 신호를 네트워크를 통해 타 시스템에 전송하는 이더넷과, 상기 이더넷으로부터 전송된 데이터를 상기 공유 파일 시스템으로 전송하기 위한 리모트 프로시저 콜부로 구성된 것을 특징으로 하는 공유 파일 시스템.A shared file system that generates a lock signal when writing, writes it to another system, and then reads the file directly from a shared disk or reads data from another system through a network, and a lease / Ethernet for transmitting the signal obtained from the premise unit for transmitting the signal according to the light to another system through the network, and a remote procedure call unit for transmitting the data transmitted from the Ethernet to the shared file system. Shared file system, characterized in that.
KR1019950067160A 1995-12-29 1995-12-29 Shared file system KR0171290B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019950067160A KR0171290B1 (en) 1995-12-29 1995-12-29 Shared file system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019950067160A KR0171290B1 (en) 1995-12-29 1995-12-29 Shared file system

Publications (2)

Publication Number Publication Date
KR970049721A KR970049721A (en) 1997-07-29
KR0171290B1 true KR0171290B1 (en) 1999-03-30

Family

ID=19447565

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019950067160A KR0171290B1 (en) 1995-12-29 1995-12-29 Shared file system

Country Status (1)

Country Link
KR (1) KR0171290B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100388065B1 (en) * 1999-06-18 2003-06-18 주식회사 케이티 Method and apparatus for providing shared library on distributed system using UNIX
US20050131960A1 (en) * 2003-12-15 2005-06-16 Reed Benjamin C. Method and system of accessing at least one target file in a computer system with an operating system with file locking implemented at file-open time

Also Published As

Publication number Publication date
KR970049721A (en) 1997-07-29

Similar Documents

Publication Publication Date Title
US6058400A (en) Highly available cluster coherent filesystem
US4603380A (en) DASD cache block staging
US6389420B1 (en) File manager providing distributed locking and metadata management for shared data access by clients relinquishing locks after time period expiration
US7624207B2 (en) Method, system and program products for reducing data movement within a computing environment
US7930278B2 (en) Methods to perform disk writes in a distributed shared disk system needing consistency across failures
US7200623B2 (en) Methods to perform disk writes in a distributed shared disk system needing consistency across failures
KR100825721B1 (en) System and method of time-based cache coherency maintenance in user file manager of object-based storage system
US5893097A (en) Database management system and method utilizing a shared memory
US5822763A (en) Cache coherence protocol for reducing the effects of false sharing in non-bus-based shared-memory multiprocessors
US5845147A (en) Single lock command for an I/O storage system that performs both locking and I/O data operation
KR0163231B1 (en) Coherency and synchronization mechanisms for i/o channel controller in a data processing system
US6049851A (en) Method and apparatus for checking cache coherency in a computer architecture
EP1315074A2 (en) Storage system and control method
US20050240628A1 (en) Delegation of metadata management in a storage system by leasing of free file system blocks from a file system owner
US6931496B2 (en) Data-maintenance method of distributed shared memory system
KR930008606A (en) Devices to Prevent Processor Deadlocks in Multiprocessor Systems
JPH02288927A (en) Shared memory management system
US6795900B1 (en) Method and system for storing data at input/output (I/O) interfaces for a multiprocessor system
US5701422A (en) Method for ensuring cycle ordering requirements within a hierarchical bus system including split-transaction buses
KR0171290B1 (en) Shared file system
US6633904B1 (en) Fast data exchange system between different type computer and medium storing program of extent information and transformation
US7069306B1 (en) Providing shared and non-shared access to memory in a system with plural processor coherence domains
JPH07239808A (en) Distributed data managing system
JP4150854B2 (en) Access system and client for shared disk device on storage area network
US20030189944A1 (en) Distributed shared memory system and data-maintenance method of same

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20041005

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee