初始化 示例4 初始化HBlock(集群商业版):集群拓扑使用拓扑文件导入方式。 plaintext [root@hblockserver CTYUNHBlockPlus4.0.0x64] ./stor setup n stor p topologyfile /mnt/storage01/topology.txt faultdomain path Start to setup HBlock, please wait. Processing... Setup successfully and the HBlock services have been started. Welcome to HBlock! You are using a 30day trial version. Please follow the steps to get a license. 1. Run "stor info serialid" to get the serial ID of the HBlock 2. Contact the software vendor to obtain a license 3. Run "stor license add k KEY" to import the license Type 'stor help' to get more information, such as managing LUNs, targets, servers, etc. 拓扑文件源码如下: plaintext { "name": "default", "childNodes": [ { "name": "room1", "type": "room", "childNodes": [ { "type": "server", "name": "server1", "ip": "192.168.0.192", "apiPort": 1443, "childNodes": [ { "name": "/mnt/stor", "type": "path" }, { "name": "/mnt/storage01", "type": "path" } ] }, { "type": "server", "name": "server2", "ip": "192.168.0.110", "apiPort": 1443, "childNodes": [ { "name": "/mnt/stor", "type": "path" } ] }, { "type": "server", "name": "server3", "ip": "192.168.0.102", "apiPort": 1443, "childNodes": [ { "name": "/mnt/stor", "type": "path" } ] } ] } ] } 示例5 初始化HBlock(集群免费版):集群拓扑使用服务器方式。 plaintext [root@hblockserver CTYUNHBlockPlus4.0.0x64] ./stor setup n stor2 s 192.168.0.64:/mnt/stor02,/mnt/data1 192.168.0.65:/mnt/stor01 192.168.0.67:/mnt/stor01 edition Free Please enter password: Start to setup HBlock, please wait. Processing... Setup successfully and the HBlock services have been started. Welcome to HBlock! You are using a free edition with basic features to get started. The deadline for the upgrade support is 20280112 11:14:10. To ensure business continuity and access the full product experience, please follow the steps to get a license. 1. Run "stor info serialid" to get the serial ID of the HBlock 2. Contact the software vendor to obtain a license 3. Run "stor license add k KEY" to import the license Type 'stor help' to get more information, such as managing LUNs, targets, servers, etc.