摘要 |
<p>A method and apparatus for multiple disks grouping hot standby in a distributed file system are provided, which method comprises: grouping disks by taking a file access server as an object and establishing the hot standby relation among disks by taking a group as an object; judging whether a powered-up disk is a new disk when detecting that the disk is powered-up, wherein if yes, the hot standby relation of said new disk is determined according to the group where said new disk is located and a backup file is loaded on said new disk; if not a new disk, judging whether the group where said powered-up disk is currently located is consistent with a previous group, wherein if consistent, the previous hot standby relation of said powered-up disk is restored and it is judged whether the file content of said powered-up disk is identical to the file content in its hot standby disk, wherein if identical, it does not perform any process, and if not identical, a backup file is re-loaded on said powered-up disk; and if not consistent, re-establishing hot standby relation for said powered-up disk according to the group where said powered-up disk is currently located, and re-loading a backup file on said powered-up disk.</p> |