A system and method for mounting a remote folder based on NFS
By utilizing an NFS-based remote folder mounting system and the collaborative work of the BMC subsystem and the server operation subsystem, efficient remote folder mounting was achieved, solving the problems of system resource consumption and size limitations, and improving the user experience.
Patent Information
- Application Number
- CN202410420899.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-09
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-04-09
AI Technical Summary
In existing technologies, remote folder mounting consumes system memory resources, and the size of the mounted folder is limited, making it impossible to support write operations.
An NFS-based remote folder mounting system is adopted. The BMC subsystem provides domain name/IP address and operation page, generates and sends mounting commands, and the server operation subsystem receives and executes the mounting commands. Data is transmitted via USB connection, and NFS service is deployed in the management computer subsystem and the server operation subsystem for data stream transmission.
The performance of remote folder mounting has been optimized, folder size limitations have been avoided, and the user experience has been improved.
Smart Images

Figure CN118260249B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically, to an NFS-based remote folder mounting system and method. Background Technology
[0002] Remote folder mounting refers to connecting a file system (usually a directory or folder) on a remote computer to the file system of a local computer via a network, making the remote folder accessible as a local folder on the local computer. This mounting operation allows users to directly access and manipulate files on the remote computer, facilitating access to and management of files and data on the remote computer and improving the efficiency of file sharing and collaboration.
[0003] With the continuous development of big data, artificial intelligence, and other technologies, servers, as the hardware support for these technologies, play a fundamental and indispensable role. The increasing number of servers presents a challenge for administrators in ensuring their normal operation. The Baseboard Management Controller (BMC) serves as the core management software in server management and maintenance, solving many server management problems, reducing maintenance costs, and improving management and maintenance efficiency. When operating servers, administrators often need to transfer files between the BMC system and the server system. Since the BMC system is a small embedded operating system, some common functions are not as convenient as on a desktop system. Fortunately, the BMC system provides a virtual media mounting function, supporting the mounting of devices or files such as USB drives, ISO images, hard drives, and CD-ROMs from the administrator's client system to the server system for file transfer. Some manufacturers have developed folder mounting functions, which are implemented by packaging folders into ISO images and storing them in memory, then mounting them as ISO images. However, this method consumes system memory resources and is limited by folder size; very large folders cannot be mounted. Summary of the Invention
[0004] To overcome the shortcomings of existing technologies, this invention provides an NFS-based remote folder mounting system and method, which solves the problems of current folder mounting methods occupying system resources, limiting the size of mounted folders, and not supporting writing. This optimizes both the performance of remote folder mounting and the user experience.
[0005] The technical solution adopted by this invention to solve its technical problem is: an NFS-based remote folder mounting system, the improvement of which is that the NFS-based remote folder mounting system includes:
[0006] The BMC subsystem is used to provide domain name / IP address, login page and operation page for remote folder mounting, and to generate and send remote folder mounting instructions in response to remote folder mounting operations on the operation page.
[0007] The server operation subsystem is used to receive and execute remote folder mount commands to enable remote folder mounting within the server operation subsystem.
[0008] The computer management subsystem includes:
[0009] The web management page access module is used to access the login page by entering the domain name / IP address in a web browser, and to access the operation page by entering the correct username and password on the login page;
[0010] The remote folder mounting module is used to mount remote folders from the operation page.
[0011] The BMC subsystem and the server operation subsystem are connected via USB, which is used to transmit instructions for mounting remote folders. Both the server operation subsystem and the computer management subsystem are equipped with NFS service, which is used for data stream transmission for mounting remote folders.
[0012] In the above structure, the BMC subsystem includes:
[0013] The UI page provides modules for providing the login page and operation page of the BMC subsystem;
[0014] The domain name / IP address providing module is used to provide a domain name or IP address so that users can access the login page and operation page of the BMC subsystem through a browser;
[0015] The user verification module is used to verify whether the username and password entered by the user on the login page are correct;
[0016] The operation response module is used to respond to the user's operation on the operation page to mount the remote folder and generate the remote folder mount command;
[0017] The command sending module is used to send remote folder mount commands to the server operation subsystem.
[0018] In the above structure, the server operation subsystem includes:
[0019] The instruction receiving module is used to receive remote folder mount instructions sent by the instruction sending module;
[0020] The instruction execution module is used to execute remote folder mount instructions to achieve remote folder mounting.
[0021] In the above structure, both the BMC subsystem and the server operation subsystem have in-band network ports. The in-band network ports of the BMC subsystem and the server operation subsystem are connected via USB to realize in-band network connection between the BMC subsystem and the server.
[0022] In the above structure, the BMC subsystem is equipped with a BMC daemon; the BMC daemon is used to generate and send remote folder mount commands in response to remote folder mount operations on the operation page; the server operation subsystem includes a server daemon; the server daemon is used to receive remote folder mount commands; the BMC daemon and the server daemon transmit remote folder mount commands via USB.
[0023] A method for mounting remote folders based on NFS, applied to the NFS-based remote folder mounting system described above, is improved in that the method includes the following steps:
[0024] Deploy NFS services in the management computer subsystem and server operation subsystem;
[0025] Enter the domain name / IP address in your web browser to access the login page, and enter the correct username and password on the login page to be redirected to the operation page;
[0026] The BMC subsystem initializes the internal network port, and the server operation subsystem initializes the internal network port.
[0027] Perform remote folder mounting operations on the operation page;
[0028] The BMC daemon responds to the remote folder mount operation on the operation page by generating a remote folder mount command, configuring the internal network port and routing on the BMC subsystem, and sending the remote folder mount command to the server daemon via USB.
[0029] After receiving the remote folder mount command, the server daemon configures the internal network port and routing of the BMC subsystem, and then executes the remote folder mount command to achieve remote folder mounting.
[0030] Furthermore, during the remote folder mounting operation on the operation page, the user enters the directory information of the folder to be mounted by the management computer subsystem and the IP information of the management computer subsystem.
[0031] The beneficial effects of this invention are as follows: By deploying NFS services in the management computer subsystem and the server operation subsystem, data stream transmission for remote folder mounting is achieved; a BMC subsystem is set up between the management computer subsystem and the server operation subsystem to provide domain names / IP addresses, login pages, and operation pages for remote folder mounting, and to generate and send remote folder mounting instructions in response to remote folder mounting operations on the operation page; the BMC subsystem is connected to the server operation subsystem via USB for transmitting remote folder mounting instructions; the server operation subsystem receives and executes remote folder mounting instructions to realize remote folder mounting within the server operation subsystem; this solution uses NFS services for remote folder mounting, eliminating the need to package folders and overcoming size limitations, thereby optimizing both the performance and user experience of remote folder mounting. Attached Figure Description
[0032] Figure 1 This is an overall structural diagram of an NFS-based remote folder mounting system according to the present invention.
[0033] Figure 2 This is an overall flowchart of a remote folder mounting method based on NFS according to the present invention. Detailed Implementation
[0034] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0035] The following will clearly and completely describe the concept, specific structure, and technical effects of the present invention in conjunction with embodiments and accompanying drawings, so as to fully understand the purpose, features, and effects of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of them. Other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are all within the scope of protection of the present invention. Furthermore, all connections / linkages involved in the patent do not simply refer to direct contact between components, but rather to the ability to form a better connection structure by adding or reducing connecting accessories according to specific implementation conditions. The various technical features in this invention can be combined interactively without contradicting each other.
[0036] Reference Figure 1 As shown, this invention discloses an NFS-based remote folder mounting system, which includes:
[0037] The BMC subsystem is used to provide domain name / IP address, login page and operation page for remote folder mounting, and to generate and send remote folder mounting instructions in response to remote folder mounting operations on the operation page.
[0038] The server operation subsystem is used to receive and execute remote folder mount commands to enable remote folder mounting within the server operation subsystem.
[0039] The computer management subsystem includes:
[0040] The web management page access module is used to access the login page by entering the domain name / IP address in a web browser, and to access the operation page by entering the correct username and password on the login page;
[0041] The remote folder mounting module is used to mount remote folders from the operation page.
[0042] The BMC subsystem and the server operation subsystem are connected via USB, which is used to transmit instructions for mounting remote folders. Both the server operation subsystem and the computer management subsystem are equipped with NFS service, which is used for data stream transmission for mounting remote folders.
[0043] In this embodiment, the web management page access module in the computer management subsystem allows users to access the login page provided by the BMC subsystem by entering the domain name / IP address provided by the BMC subsystem in a common browser, and enables users to enter the correct account and password to access the operation page. The remote folder mounting module in the computer management subsystem allows users to perform remote folder mounting operations on the operation page. At this time, the BMC subsystem responds to the user's remote folder mounting operation on the operation page, generates a remote folder mounting command, and sends the remote folder mounting command to the server operation subsystem. The server operation subsystem receives and executes the remote folder mounting command to realize computer management. The BMC subsystem mounts remote folders within the server operating system. The BMC subsystem sends the remote folder mounting command to the server operating system via USB. Furthermore, both the computer management subsystem and the server operating system are equipped with NFS service. The NFS service is used for data stream transmission between remote folders; that is, when a user writes to or deletes a folder on the computer management subsystem, the server operating system will simultaneously write to or delete the folder. This solution, using NFS service for remote folder mounting, eliminates the need to package folders and is not limited by folder size, thus optimizing both the performance of remote folder mounting and the user experience.
[0044] In a preferred embodiment, the BMC subsystem includes:
[0045] The UI page provides modules for providing the login page and operation page of the BMC subsystem;
[0046] The domain name / IP address providing module is used to provide a domain name or IP address so that users can access the login page and operation page of the BMC subsystem through a browser;
[0047] The user verification module is used to verify whether the username and password entered by the user on the login page are correct;
[0048] The operation response module is used to respond to the user's operation on the operation page to mount the remote folder and generate the remote folder mount command;
[0049] The command sending module is used to send remote folder mount commands to the server operation subsystem.
[0050] In this embodiment, within the BMC system: the UI page providing module provides an intuitive and user-friendly interface, allowing users to easily access the system's login and operation pages. These pages typically use web pages, accessible through a standard web browser. The domain name / IP address providing module provides the network address of the BMC subsystem, enabling users to access the BMC subsystem remotely and manage it by entering a domain name or IP address. The user authentication module verifies the correctness of the user's account and password; if correct, it allows legitimate users to access the operation page. Once a user successfully logs in and enters the operation page, the operation response module listens for user actions, particularly remote folder mounting. When a user requests remote folder mounting, this module collects relevant information and generates a corresponding remote folder mounting command. The command sending module then sends the generated remote folder mounting command to the server operation subsystem via a USB connection. This process ensures secure transmission and timely execution of commands.
[0051] In a preferred embodiment, the server operation subsystem includes:
[0052] The instruction receiving module is used to receive remote folder mount instructions sent by the instruction sending module;
[0053] The instruction execution module is used to execute remote folder mount instructions to achieve remote folder mounting.
[0054] In this embodiment, the instruction receiving module is responsible for listening for remote folder mount instructions from the BMC subsystem. Once an instruction is received, it will parse it and pass it to the instruction execution module. Once the remote folder mount instruction is received, the instruction execution module will perform the corresponding operation. This process involves interaction with the NFS service on the server, including mounting the remote folder and ensuring the security and integrity of file transfer.
[0055] In addition, both the BMC subsystem and the server operation subsystem have internal network ports, which are connected via USB to enable in-band network connectivity between the BMC subsystem and the server. The BMC subsystem includes a BMC daemon, which generates and sends remote folder mount commands in response to remote folder mount operations on the operation page. The server operation subsystem includes a server daemon, which receives remote folder mount commands. The BMC daemon and the server daemon transmit remote folder mount commands via USB.
[0056] In this embodiment, the BMC subsystem establishes a network connection with the server operation subsystem via an internal network port. Specifically, this connection method is typically based on a USB interface. An internal network connection is established between the server and the BMC via USB to facilitate the transmission of remote folder mount commands. The BMC subsystem sets up a BMC daemon, a background service program responsible for listening for remote folder mount requests from the operation page. Once a request is received, the BMC daemon generates the corresponding remote folder mount command and sends the command to the server operation subsystem via the USB connection. The server operation subsystem's server daemon, also a background service program, is responsible for receiving remote folder mount commands from the BMC subsystem. Once a command is received, the server daemon parses it and executes the corresponding mount operation. The transmission of remote folder mount commands between the BMC daemon and the server daemon is achieved through a USB connection. When the BMC daemon generates a remote folder mount command, it sends the command to the server operation subsystem via the USB connection. After receiving the command, the server daemon parses it and executes the corresponding operation, thus mounting the remote folder.
[0057] Reference Figure 2 As shown, this invention also discloses an NFS-based remote folder mounting method, applied to the NFS-based remote folder mounting system described in the above embodiments. The NFS-based remote folder mounting method includes the following steps:
[0058] S10, Deploy NFS services in the management computer subsystem and server operation subsystem;
[0059] S20, enter the domain name / IP address in the web browser to enter the login page, and enter the correct account and password on the login page to be redirected to the operation page;
[0060] S30, BMC subsystem initialization with internal network port, server operation subsystem initialization with internal network port;
[0061] S40, perform remote folder mounting operation on the operation page; specifically, during the remote folder mounting operation on the operation page, enter the directory information of the folder to be mounted by the management computer subsystem and the IP information of the management computer subsystem on the operation page;
[0062] S50, the BMC daemon responds to the remote folder mount operation on the operation page, generates a remote folder mount command, configures the internal network port and routing of the BMC subsystem, and sends the remote folder mount command to the server daemon via USB.
[0063] After receiving the remote folder mount command, the S60 server daemon configures the intranet port and routing of the BMC subsystem and executes the remote folder mount command to achieve remote folder mount.
[0064] In this embodiment, NFS (Network File System) is a protocol that allows remote computers to access files over a network. Deploying NFS services in the management computer subsystem and server operation subsystem means installing and configuring NFS server software on these systems, enabling them to share folders for mounting to other systems. Users access the system's login page by entering a domain name or IP address in a web browser and log in with the correct username and password. After successful login, users are redirected to the operation page for subsequent operations. Initialization with an internal network port means that the BMC subsystem and server operation subsystem are configured with parameters for an internal network port during startup, ensuring their normal operation and readiness to receive connections and instructions from other systems. Users perform remote folder mounting operations on the operation page, entering the directory information and IP information of the folder to be mounted by the management computer subsystem. This information is used to inform the server operation subsystem of the location of the remote folder to be mounted and the IP address of the server. BMC After receiving a remote folder mount command from the operation page, the daemon generates the corresponding mount command, configures the internal network port and routing on the BMC subsystem side, and then sends the command to the server daemon via USB connection. Upon receiving the remote folder mount command, the server daemon configures the internal network port and routing on the BMC subsystem side and executes the mount command, mounting the remote folder to the server's file system. The deployment of the NFS service enables the system to share folders, facilitating easy sharing and mounting of folders between different systems. Operation through a web interface allows users to easily perform remote folder mount operations without directly logging into the management computer subsystem and server operation subsystem. The response and processing of the BMC daemon and server daemon ensures that remote folder mount operations are completed quickly and accurately, improving system responsiveness and availability. Remote folder mount via NFS service does not require folder packaging and is not limited by folder size, thus optimizing both remote folder mount performance and user experience.
[0065] It should be understood that although the steps in the flowcharts of the accompanying figures are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the accompanying figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0066] The above is a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A remote folder mounting system based on NFS, characterized in that, The NFS-based remote folder mounting system includes: The BMC subsystem is used to provide domain name / IP address, login page and operation page for remote folder mounting, and to generate and send remote folder mounting instructions in response to remote folder mounting operations on the operation page. The server operation subsystem is used to receive and execute remote folder mount commands to enable remote folder mounting within the server operation subsystem. The computer management subsystem includes: The web management page access module is used to access the login page by entering the domain name / IP address in a web browser, and to access the operation page by entering the correct username and password on the login page; The remote folder mounting module is used to mount remote folders from the operation page. The BMC subsystem and the server operation subsystem are connected via USB, which is used to transmit instructions for mounting remote folders; both the server operation subsystem and the computer management subsystem are equipped with NFS service, which is used for data stream transmission for mounting remote folders. The BMC subsystem includes: The UI page provides modules for providing the login page and operation page of the BMC subsystem; The domain name / IP address providing module is used to provide a domain name or IP address so that users can access the login page and operation page of the BMC subsystem through a browser; The user verification module is used to verify whether the username and password entered by the user on the login page are correct; The operation response module is used to respond to the user's operation on the operation page to mount the remote folder and generate the remote folder mount command; The instruction sending module is used to send remote folder mount instructions to the server operation subsystem; the server operation subsystem includes: The instruction receiving module is used to receive remote folder mount instructions sent by the instruction sending module; The instruction execution module is used to execute remote folder mount instructions to achieve remote folder mounting; Both the BMC subsystem and the server operation subsystem have in-band network ports. The in-band network ports of the BMC subsystem and the server operation subsystem are connected via USB to realize in-band network connection between the BMC subsystem and the server. The BMC subsystem includes a BMC daemon; the BMC daemon is used to generate and send remote folder mount commands in response to remote folder mount operations on the operation page; the server operation subsystem includes a server daemon; the server daemon is used to receive remote folder mount commands; the BMC daemon and the server daemon transmit remote folder mount commands via USB.
2. A method for mounting remote folders based on NFS, applied to the NFS-based remote folder mounting system described in claim 1, characterized in that, The NFS-based remote folder mounting method includes the following steps: Deploy NFS services in the management computer subsystem and server operation subsystem; Enter the domain name / IP address in your web browser to access the login page, and enter the correct username and password on the login page to be redirected to the operation page; The BMC subsystem initializes the internal network port, and the server operation subsystem initializes the internal network port. Perform remote folder mounting operations on the operation page; The BMC daemon responds to the remote folder mount operation on the operation page by generating a remote folder mount command, configuring the internal network port and routing on the BMC subsystem, and sending the remote folder mount command to the server daemon via USB. After receiving the remote folder mount command, the server daemon configures the internal network port and routing of the BMC subsystem, and then executes the remote folder mount command to achieve remote folder mounting.
3. The method for mounting remote folders based on NFS according to claim 2, characterized in that, During the remote folder mounting operation on the operation page, enter the directory information of the folder to be mounted by the management computer subsystem and the IP information of the management computer subsystem on the operation page.
Citation Information
Patent Citations
Method and system for realizing Host storage of BMC (Baseboard Management Controller) shared server
CN115712460A
