华为OceanStor 9000 V5存储配置手册(三)
五、资源分配
打开“资源分配”页面

5.1创建共享
5.1.1创建目录
点击“创建目录”按钮,输入目录名称和选择父路径,点击“确定”

5.1.2创建共享
点击“创建共享”按钮,弹出界面,选择共享类型和目录

NFS共享
勾选“NFS”并选择目录,点击“下一步”

点击“增加”按钮

添加主机和权限,点击“确定”

点击“下一步”

点击“完成”

CIFS共享
勾选“CIFS”并选择目录,点击“下一步”

输入共享名称,点击“增加”按钮

选择用户和权限,点击“确定”

点击“下一步”

点击“完成”

FTP共享
勾选“FTP”并选择目录

点击“增加”按钮

选择用户和权限,点击“确定”

点击“下一步”

点击“完成”

5.1.3创建配额
点击“创建配额”按钮,弹出界面,点击“增加”按钮

选择目录,点击“确定”

点击“下一步”

可选点击“增加”按钮

选择用户,点击“确定”

点击“下一步”

选择“容量配额”或“文件数配额”,选择配额方式为计算配额或强制配额

选择“强制配额”,输入软硬配额等信息,点击“下一步”

点击“完成”

5.2资源管理器
打开“资源管理”>“资源管理器”页面,可创建修改删除目录,可选择目录进行配置

选择目录,点击“属性”可配置权限、共享、配额、荣誉配比、条带、WROM、快照

5.3共享
打开“资源管理”>“共享”页面,课创建修改删除各类型共享

5.4InfoAllocator
打开“资源管理”>“InfoAllocator”页面,可创建修改删除配额设置

5.5InfoTier
打开“资源管理”>“InfoTier”页面,可设置文件池策略

5.6InfoLocker
InfoLocker即一写多读特性,在描述时简称为WORM。打开“资源管理”>“InfoLocker”页面,选择目录,选择保护期设置,点击“确定”

5.7认证用户
打开“资源管理”>“认证用户”页面,可创建修改删除本地用户和组

可在“用户映射”页面,配置Windows和Linux用户的映射

六、虚拟机
6.1创建虚拟机
创建虚拟机必须使用CLI管理界面,每个节点最多可创建2个虚拟机
1.使用命令执行show node general命令,查询待创建虚拟机的节点ID
2.创建内存为16GB、CPU核数为8、系统盘大小为50GB的虚拟机
admin:/>create virtual_machine general 34307 vm1 16GB 8 vm_disk_size=50GB
Command executed successfully.
3.查看已创建虚拟机
admin:/>show virtual_machine general vm_id vm_name node_id cpu_count memory_size disk_size port vm_ip_list vmtools_version bus_mode first_start_mode second_start_mode running_status health_status--------- ----------------------- ------- --------- ----------- --------- ---------- ------------- --------------- -------- ---------------- ----------------- ------ 661585921 vm1 34307 8 16106127 52428800 -- -- -- IDE HD CD RUNNING NORMAL
6.2安装系统
1.使用omuser帐户登录集群管理IP所在节点。
2.执行su - root命令切换至root帐户。
在/var/log/目录下新建iso目录(该目录用于存放软件安装包,软件安装包不能放在/home目录下),并使用chmod命令调整iso目录的权限以确保omuser用户可以访问iso目录和软件安装包(调整权限后可使用omuser帐户登录节点,检查是否有权限进入iso目录)。
上传软件安装包至iso目录。
3.使用文件上传工具(例如WinSCP),管理IP、用户名和密码,将软件安装包上传至共享路径。
4.执行import vm_file命令将OS安装软件导入文件系统
admin:/>import vm_file iso image.iso xxx.xxx.xxx.xxx /var/log/xxx/ omuser Please input your password:************** WARNING: This operation may delete the existing templates, GuestOS, or VMTools file.Please confirm! Have you read warning message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
xxx.xxx.xxx.xxx表示OceanStor 9000 V5集群管理IP,/var/log/xxx/表示目标文件所在路径,omuser表示OceanStor 9000 V5集群登录用户名。如果服务器端口号不是默认值22时,还需要指定端口号。
5.执行show vm_file status命令,查看导入文件状态,等待文件状态变为“SUCCESS”。
6.执行add virtual_machine vm_iso vm_id iso_name命令,将OS安装软件加载到虚拟机。其中vm_id是虚拟机的ID,可以通过按“Ctrl+A”查询。
请等待3~5分钟,加载完成后再执行其他命令,否则执行其他命令可能会超时。
admin:/>add virtual_machine vm_iso 661585921 image.iso DANGER: You are about to add an ISO file to a virtual machine! The whole process will take 3-5 minutes, please execute command "show virtual_machine general" to confirm the status "COPYING" is finish or not. And please confirm that if the virtual machine already has an ISO file, you really want to replace that file! Please confirm! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
7.执行change virtual_machine general vm_id sys_disk_bus=VIRTIO first_start_mode=CDROM命令,修改系统总线方式为VIRTIO,虚拟机启动方式为CDROM。安装Windows操作系统的虚拟机需要修改系统总线方式为“IDE”
admin:/>change virtual_machine general 661585921 sys_disk_bus=VIRTIO first_start_mode=CDROM DANGER: You are changing the settings of virtual machine ,it will be successful only if vm is powered-off! please confirm ! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
8.执行poweron virtual_machine vm_id命令将虚拟机上电
admin:/>poweron virtual_machine 661585921 Command executed successfully.
9.登录DeviceManager,选择“点击放大虚拟机 >点击放大虚拟机”。选择需要安装OS的虚拟机,单击“打开控制台”,在弹出的“控制台”对话框中,按照安装向导的提示,安装OS。
10.安装完成后,执行remove virtual_machine vm_iso vm_id命令卸载Guest OS安装软件
admin:/>remove virtual_machine vm_iso 661585921 DANGER: You are about to remove ISO file from a virtual machine. This operation will empty the CDROM of the specified virtual machine! please confirm! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
11.执行change virtual_machine general vm_id first_start_mode=HD,修改虚拟机启动方式为HD。
admin:/>change virtual_machine general 661585921 first_start_mode=HD DANGER: You are changing the settings of virtual machine ,it will be successful only if vm is powered-off! please confirm ! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
12.执行poweron virtual_machine vm_id命令将虚拟机上电,其中vm_id为虚拟机ID
admin:/>poweron virtual_machine 661585921 Command executed successfully.
6.3安装VMTools
1.在华为官网下载VMTools.zip,并上传至iso目录
2.执行import vm_file命令将VMTools安装文件导入文件系统
admin:/>import vm_file rpm uvp-vmtools-x.x.x-xxx.xxx.x86_x64.rpm xxx.xxx.xxx.xxx /var/log/xxx/ omuser Please input your password:************** WARNING: This operation may delete the existing templates, GuestOS, or VMTools file.Please confirm! Have you read warning message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
xxx.xxx.xxx.xxx表示OceanStor 9000 V5集群管理IP,/var/log/xxx/表示目标文件所在路径,omuser表示OceanStor 9000 V5集群登录用户名。如果服务器端口号不是默认值22时,还需要指定端口号。
3.执行show vm_file status命令,查看已导入的文件状态,等待文件状态变为“SUCCESS”
4.执行add virtual_machine vmtools vm_id os_type vmtools_package命令加载VMTools到虚拟机
admin:/>add virtual_machine vmtools 661585921 Windows uvp-vmtools-x.x.x-xxx.xxx.x86_x64.rpm WARNING: You are about to add vmtools to VM, which need more than 10 seconds. Please be patient with it. Have you read warning message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
5.在DeviceManager下,打开虚拟机控制台,
Windows:选择“计算机 > CD驱动器”中的安装包,安装VMTools软件。
Linux:
[root@test ~]# mount /dev/cdrom /mnt mount: block device /dev/sr0 is write-protected, mounting read-only [root@test ~]# cd /mnt [root@test mnt]# ls UpgradeInfo.ini get_uvp_kernel_modules vmtools-2.1.0.3.tar.bz2.sha256 cpfile.sh vmtools-2.1.0.3.tar.bz2 [root@test mnt]# cp vmtools-2.1.0.3.tar.bz2 /opt [root@test mnt]# cd /opt [root@test opt]# tar -xjf vmtools-2.1.0.3.tar.bz2 [root@test opt]# ls vmtools vmtools-2.1.0.3.tar.bz2 [root@test opt]# cd vmtools [root@test vmtools]# ls etc install lib usr [root@test vmtools]# ./install Start Installation : Install kernel modules. Install UVP VMTools agent service. Change system configurations. Update kernel initrd image. The UVP VMTools is installed successfully. Reboot the system for the installation to take effect. [root@test vmtools]# reboot
6.重启虚拟机操作系统
Windows操作系统
在虚拟机的Guest OS中执行shutdown.exe /s关闭操作系统。
Linux操作系统
在虚拟机的Guest OS中执行shutdown -h now关闭操作系统。
7.执行命令更改虚拟机系统盘总线方式为“VIRTIO”
admin:/>change virtual_machine general 661585921 sys_disk_bus=VIRTIO DANGER: You are changing the settings of virtual machine ,it will be successful only if vm is powered-off! please confirm ! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
8.执行poweron virtual_machine vm_id命令上电虚拟机,其中vm_id为虚拟机ID
admin:/>poweron virtual_machine 661585921 Command executed successfully.
9.执行show virtual_machine general可查看VMTools的安装版本号
admin:/>show virtual_machine general vm_id vm_name node_id cpu_count memory_size disk_size port vm_ip_list vmtools_version bus_mode first_start_mode second_start_mode running_status health_status --------- ----------------------- ------- --------- ----------- --------- ---------- ------------- --------------- -------- ---------------- ----------------- ------ 661585921 vm1 34307 8 16106127 52428800 -- -- 1.0.1 VIRTIO HD CD RUNNING NORMAL
6.4配置网络
1.执行add virtual_machine port vm_id PHYSICAL host_port_id命令为虚拟机添加网络端口。其中vm_id为虚拟机的ID,host_port_id为网口的名称。vm_id参数取值也可使用“all”,可为系统内所有虚拟机批量添加网口。
admin:/>add virtual_machine port 661585921 PHYSICAL SLOT4-1
Command executed successfully.
2.执行poweron virtual_machine vm_id命令将虚拟机上电。vm_id参数取值也可使用“all”,可将系统内所有虚拟机上电。
admin:/>poweron virtual_machine 661585921 Command executed successfully.
3.使用DeviceManager,打开VM控制台,配置虚拟机IP地址
6.5创建模板
1.执行create vm_template general vm_id template_name命令创建模板。其中vm_id是已创建好的虚拟机ID。
admin:/>create vm_template general 661585921 flow_server_temp.img WARNING: This operation may delete the existing templates, GuestOS, or VMTools file.Please confirm! Have you read warning message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
2.执行create virtual_machine general all命令批量创建虚拟机。
此时将为系统所有节点创建虚拟机。在预留节点中,只要不给虚拟机上电即可,未上电的虚拟机不占用节点的计算资源。
admin:/>create virtual_machine general all vm1 16GB 8 template_name=flow_server_temp.img Command executed successfully.
3.在CLI中执行命令更改虚拟机系统盘总线方式为“VIRTIO”
admin:/>change virtual_machine general all sys_disk_bus=VIRTIO DANGER: You are changing the settings of virtual machine ,it will be successful only if vm is powered-off! please confirm ! Have you read danger alert message carefully?(y/n)y Are you sure you want to perform the operation?(y/n)y Command executed successfully.
4.执行poweron virtual_machine vm_id命令为虚拟机上电。其中vm_id为虚拟机ID
admin:/>poweron virtual_machine 661585921 Command executed successfully.
6.2管理虚拟机
打开“虚拟机”页面,点击“虚拟机”按钮

可选择虚拟机,对虚拟机进行上下电,重启关机,打开控制台等操作,

七、数据保护
7.1快照
打开“数据保护”>“快照”页面,在“快照”选项卡,点击“创建”按钮,选择目录,点击“确定”可创建目录的快照

查看快照

在“定时快照策略”选项卡下,点击“创建”按钮,选择目录,点击“增加策略”按钮

选择计划表时间,点击“增加”按钮

点击“确定”

查看定时快照策略

72.远程复制
打开“数据保护”>“远程复制”>“复制区域”页面,选择域,点击“属性”按钮,如果有多个子网则选择子网,或使用默认子网

“包含IP地址段”添加参与复制的IP地址段

“排除IP地址”添加不参与复制的地址

在“复制区域通道”页面,点击“创建”按钮,输入远端区域、鉴权IP(远端任一静态前端业务IP)、鉴权密码(远端管理密码)、设置复制带宽限制,点击“确定”

查看区域通道

在“远程复制Pair”页面,点击“创建”按钮,选择本端目录,点击“下一步”

选择复制区域通道,输入远端目录,点击“下一步”

选择速率和恢复策略、同步类型,点击“下一步”

点击“完成”

查看复制Pair

八、告警
打开“告警”界面,在“当前警告”选项卡,查看当前告警

在“所有事件”中,查看事件
