Vpro-1085-R Course for RHV/Ovirt/OLVM Implementation & Administration Lab Exercises
Total Page:16
File Type:pdf, Size:1020Kb
vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 vPro-1085-R Course for RHV/oVirt/OLVM Implementation & Administration Lab Exercises Credentials and access details Attribute Value Download URL http://10.40.0.253/lab-materials/vprotect/vpro-1085 vProtect host 10.41.0.4 vProtect username root vProtect password St0rL@bs vProtect Web UI https://10.41.0.4 vProtect Web UI username admin vProtect Web UI password vPr0tect RHV manager UI https://rhv-m.storware.lab/ovirt-engine RHV user admin@internal in vProtect in UI, and admin in RHV manager UI RHV password St0rL@bs Lab 1 - Demo of all-in-one installation In this section we'll show you how to install vProtect components quickly using all-in-one setup scripts. Before installation steps please update and then reboot system dnf -y update Remote repository (option 1) 1. Export VPROTECT_REPO variable to point to the repository URL export VPROTECT_REPO=http://10.40.0.253/vprotect/current/el8 2. Execute script: bash < <(curl -s http://repo.storware.eu/vprotect/vprotect-local-install.sh) 1 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 Lab 2 - Installation with RPMs In this section you're going to install vProtect using RPMs - so that all necessary steps are done Prerequisites 1. Access vlab.vpro.proxy.v3 2. Open putty on your vlab.vpro.proxy.v3 3. Connect to vProtect machine with a root access 4. Use your CentOS 8 minimal 5. Make sure your OS is up to date: dnf -y update If kernel is updated, then You need to reboot your operating system. 6. Install vProtect repository - create file /etc/yum.repos.d/vProtect.repo: # vProtect Enterprise backup solution for virtual environments repository [vprotect] name = vProtect baseurl = http://10.40.0.253/vprotect/current/el8 gpgcheck=0 7. Install MariaDB repository (vProtect Server host only) usually you generate .repo file at MariaDB download site copy and paste generated repo file into /etc/yum.repos.d/MariaDB.repo, so it looks similar to this (if the repo file doesn't exist): # MariaDB 10.4 CentOS repository list - created 2020-05-11 09:20 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://DNF.mariadb.org/10.4/centos8-amd64 module_hotfixes=1 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 vProtect Server installation 2 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 vProtect consists of server (central management point with WebUI) and one or multiple nodes (which can be installed on the same host as server or on other machines). First step is always to install server. 1. Install vprotect-server using DNF: dnf -y install vprotect-server 2. Setup DB for vProtect: vprotect-server-configure Please provide a MariaDB password 3. Start vProtect Server (it can take around a minute for server to be started): systemctl start vprotect-server 4. Open 8181 port on your firewall. Here is example: firewall-cmd --add-port=8181/tcp --permanent firewall-cmd --complete-reload 5. For this lab we'll open plain HTTP port 8080 as well: firewall-cmd --add-port=8080/tcp --permanent firewall-cmd --complete-reload 6. By default, vProtect console running on HTTPS port (8181), there is a script in /opt/vprotect/scripts directory to setup forwarding from port 8181 to 443 for you: cd /opt/vprotect/scripts ./ssl_port_forwarding_firewall-cmd.sh 1. Now you should be able to log into the web console using URL: https://VPROTECT_HOST, where VPROTECT_HOST is hostname or IP of your vProtect Server by default vProtect has one admin account - admin with password vPr0tect (with zero) Attribute Value 3 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 Attribute Value vProtect Web UI https://10.41.0.4 vProtect Web UI username admin vProtect Web UI password vPr0tect vProtect Node installation vProtect Node is component that executes all tasks. It can be installed together with Server (it is common to have 1 server and just 1 node). More nodes can be always added later. Local node 1. Create a directory mkdir /vprotect_data - will be later used as a mount point for staging space mkdir /vprotect_data 2. Install vprotect-node using DNF: dnf -y install vprotect-node 3. Register node with NODE_NAME of your choice ADMIN_USER user name which you would like to use and URL to vProtect API and provide password when prompted: Syntax: vprotect node -r NODE_NAME ADMIN_USER http(s)://VPROTECT_SERVER:PORT/api In our case we'll use HTTP to make this lab simpler local node (installed to together with server is going to be used RHV) - over HTTP (port 8080): vprotect node -r node-local admin http://localhost:8080/api use an admin password - vPr0tect 4. Start vProtect Node: systemctl start vprotect-node 4 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 Now you should be able to see new entry in Node section of vProtect Web UI with your node in RUNNING state. 5. Run script to configure OS for Node: vprotect-node-configure 6. Reboot vProtect VM to apply OS-specific settings: reboot vProtect is installed Lab 3 - Initial configuration 1. Upload your license key: download it first to your proxy machine desktop from the location provided during labs log in to the vProtect Web UI and go to the Settings -> License and upload your license.key file 2. Run from vProtect Web UI Dashboard -> Configuration wizard: 3. Define RHV manager - oVirt (v4) / RHV (v4) / Oracle Linux VM (credentials provided during classes) Attribute Value RHV manager UI https://rhv-m.storware.lab/ovirt-engine/api RHV user admin@internal RHV password St0rL@bs select DISK_IMAGE_TRANSFER strategy confirm to initiate inventory synchronization when asked 4. Create File System backup destination: name: FS with deduplication retention: defaults Enable deduplication: deduplication device: /dev/sdb enable Mount deduplicated file system... Deduplicated file system mount point: /vprotect_data (we want this file system to act also as a staging space) on the next screen set Storage path to /vprotect_data/backups - backup destination still must have different path from than staging (even when using same file system for both) 5 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 leave Encryption and Pre/Post access commands - DISABLED set it as a default on the last subscreen and Create 5. In SSH console - verify your backup destination creation has completed successfully with the: df command to check if it is mounted in /vprotect_data directory vdostats to see if VDO device has been initialized and is ready 6. Go back to the wizard 7. Skip VM backup schedule section 8. Skip VM backup policy section 9. Configure daily vProtect DB backups (schedule and policy) using node and backup destination that have been created 10. Confirm to initiate vProtect DB backup when asked 11. Now go to Users section - to set admin accounts: make sure to set the correct time zone for your user - default admin account has UTC by default. 12. Create another admin account: click Create in Users section provide username, first name, last name, time zone and language click Save button Lab 4 - Managing node configuration 1. Log in to vProtect Web UI 2. Go to Nodes -> Node Configurations tab 3. Create a new configuration provide a name of your choice change maximum number of export threads to 2 in Task tab assign your FS with deduplication backup destination to the node config 4. Update node and change node configuration to the one you created (go back to nodes tab) Lab 5 - Dell EMC DataDomain as a backup destination 1. Prepare your PowerProtect DD as a backup destination: Attribute Value DD URL https://10.41.0.51/ddem DD username sysadmin DD password St0rL@bs 6 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 login to PowerProtect DD and verify you have Storage Unit called vprotectbackup go to data management -> MTree on the left menu download BoostFS RPM from URL provided during labs curl -O http://10.40.0.253:8181/vprotect/current/lab- materials/DDBoostFS-7.0.0.0-633922.rhel.x86_64.rpm install BoostFS: rpm -ivh DDBoostFS-7.0.0.0-633922.rhel.x86_64.rpm create mount point directory mkdir /dd-backups save password for BoostFS (DD_BOOST_IP should be replaced with IP of your DD): /opt/emc/boostfs/bin/boostfs lockbox set -d DD_BOOST_IP -u vprotect -s vprotectbackup provide password: St0rL@bs add /etc/fstab entry: DD_BOOST_IP:/vprotectbackup /dd-backups boostfs defaults,_netdev,bfsopt(allow-others=true) 0 0 Notice that for manual, one-time mount you can run this command: /opt/emc/boostfs/bin/boostfs mount -o allow-others=true -d DD_BOOST_IP -s vprotectbackup /dd-backups mount mount -a 7 / 31 vPro-1085-R - Storware vProtect - Implementation & Administration Lab Exercises - v7.md 2/24/2021 set ownership to vprotect user on directory /dd-backups: chown vprotect:vprotect -R /dd-backups confirm with df that your /dd-backups create backup subdirectories that we will need in the next steps mkdir /dd-backups/short-term mkdir /dd-backups/long-term 1. Log in to vProtect Web UI 2. Go to Backup Destinations tab 3. Create a new File System backup destination - in the details: provide name: short-term destination specify retention days for full and incremental backups = 14 days specify retention versions for full backups = 2 specify retention versions for incremental backups = 7 set path as /dd-backups/short-term assign this node config that you have created in your previous lab explore other options in the settings 4.