Migrating JBOD to RAID

Similar documents
Entering the RAID Management Command Environment

Managing RAID. Entering the RAID Management Command Environment CHAPTER

Managing Virtual Machines

Configuring High Availability for VMware vcenter in RMS All-In-One Setup

Reset the Admin Password with the ExtraHop Rescue CD

Installing the Cisco Nexus 1000V Software Using ISO or OVA Files

Installing on a Virtual Machine

Managing Virtual Machines

Guideline for the installation of C-MOR Video Surveillance Virtual Machine on VMware ESX Server

StarWind iscsi SAN Software: ESX Storage Migration

Installing and Upgrading Cisco Network Registrar Virtual Appliance

Send the Ctrl-Alt-Delete key sequence to the Guest OS one of two ways: Key sequence: Ctlr-Alt-Ins Menu Sequence: VM / Guest / Send Ctrl-Alt-Delete

Preparing Virtual Machines for Cisco APIC-EM

Preparing Virtual Machines for Cisco APIC-EM

NexentaStor VVOL

The Ip address / Name value should be: srvvcenter-cis

Configure RSPAN with VMware

Release Notes for Cisco Services Ready Engine Virtualization 1.5

The Ip address / Name value should be: srvvcenter-cis

Configure RSPAN with VMware

Using a Virtual Machine for Cisco IPICS on a Cisco UCS C-Series Server

Using VMware vsphere with Your System

The Unified CVP upgrade process has been described in this chapter in the following sections:

Installation of Cisco Business Edition 6000H/M

Dell Storage Compellent Integration Tools for VMware

Using VMware vsphere With Your System

Scrutinizer Virtual Appliance Deployment Guide Page i. Scrutinizer Virtual Appliance Deployment Guide. plixer

CIS 231 Windows 10 Install Lab # 3

IBM/Lenovo BCS RSSM firmware Update

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

Using VMware vsphere With Your System

Dell Storage vsphere Web Client Plugin. Version 4.0 Administrator s Guide

Dell Storage Integration Tools for VMware

Using VMware vsphere With Your System

Cisco Unified Communications Manager (CallManager) 12.0 Virtual Server Template (OVA)

CIS 231 Windows 7 Install Lab #2

Log & Event Manager UPGRADE GUIDE. Version Last Updated: Thursday, May 25, 2017

Installing the Operating System or Hypervisor

Setting Up Cisco Prime LMS for High Availability, Live Migration, and Storage VMotion Using VMware

StarWind iscsi SAN & NAS: Configuring 3-node HA Shared Storage for vsphere December 2012

1) Use either Chrome of Firefox to access the VMware vsphere web Client. FireFox

VMware vsphere Storage Appliance Installation and Configuration

FireFox. CIS 231 Windows 2012 R2 Server Install Lab #1

UPGRADE GUIDE. Log & Event Manager. Version 6.4

OmniStack Solution with Lenovo x3650 M5 ESXi Upgrade and Factory Reset Guide

Deploy the ExtraHop Discover Appliance with VMware

Configure Windows Server 2003 Release 2 Server Network File Share (NFS) as an authenticated storage repository for XenServer

Cisco Unified Communications Manager (CallManager) 11.5 Virtual Server Template (OVA)

Using SANDeploy iscsi SAN for VMware ESX / ESXi Server

VMware vsphere: What s New Lab Manual ESXi 5.5 and vcenter Server 5.5

Archiware Pure Quick Start Guide

Installing Your System Using Manual Deployment

StarWind iscsi SAN & NAS:

How to Deploy vcenter on the HX Data Platform

Server Fault Protection with NetApp Data ONTAP Edge-T

Installing the Cisco CSR 1000v in VMware ESXi Environments

1) Use either Chrome of Firefox to access the VMware vsphere web Client.

HOL09-Entry Level VMAX: Provisioning, FAST VP, TF VP Snap, and VMware Integration

CIS 231 Windows 2012 R2 Server Install Lab #1

All rights reserved. All trademarks are the property of their respective owners.

IT Systems Integration

Table of Contents HOL-PRT-1467

VMware ESX ESXi and vsphere. Installation Guide

Install ISE on a VMware Virtual Machine

Deploying the LANGuardian Virtual Appliance on VMware ESXi 6.5

Deploy the ExtraHop Trace Appliance with VMware

Install and Configure FindIT Network Manager and FindIT Network Probe on a VMware Virtual Machine

FireFox. CIS 231 Windows 10 Install Lab # 3. 1) Use either Chrome of Firefox to access the VMware vsphere web Client.

KEMP 360 Central for vsphere. Installation Guide

Install ISE on a VMware Virtual Machine

Virtual Storage Console, VASA Provider, and Storage Replication Adapter for VMware vsphere

ECDS MDE 100XVB Installation Guide on ISR G2 UCS-E and VMWare vsphere Hypervisor (ESXi)

StarWind iscsi SAN Software: Using an existing SAN for configuring High Availability with VMWare vsphere and ESX server

Installing and Using Openfiler 2.3 with ESX Server

HP LeftHand SAN Solutions

QUICK SETUP GUIDE VIRTUAL APPLIANCE - VMWARE, XEN, HYPERV CommandCenter Secure Gateway

OneSign Virtual Appliance Guide

Dell PowerVault MD Series Storage Arrays Storage Replication Adapter (SRA) Best Practices Guide (Client)

ITCorporation HOW DO I INSTALL A FRESH INSTANCE OF ANALYZER? DESCRIPTION RESOLUTION. Knowledge Database KNOWLEDGE DATABASE

UDP Director Virtual Edition


REVISED 1 AUGUST REVIEWER'S GUIDE FOR VMWARE APP VOLUMES VMware App Volumes and later

IT Essentials v6.0 Windows 10 Software Labs

WatchGuard Dimension v1.1 Update 1 Release Notes

ESXi Version 5.1 Host

REVISED 1 AUGUST QUICK-START TUTORIAL FOR VMWARE APP VOLUMES VMware App Volumes and later

Install ISE on a VMware Virtual Machine

Deploy a Barracuda Backup Virtual Appliance

Dell Storage Compellent Integration Tools for VMware

Software Images. About Software Images. Dependent Factors. Send documentation comments to CHAPTER

Cisco VDS Service Broker Software Installation Guide for UCS Platforms

Installing Cisco APIC-EM on a Virtual Machine

KEMP360 Central - VMware vsphere. KEMP360 Central using VMware vsphere. Installation Guide

Hands-on Lab Manual. Introduction. Dell Storage Hands-on Lab Instructions. Estimated Completion Time: 30 minutes. Audience. What we will be doing

Using EonStor DS Series iscsi-host storage systems with VMware vsphere 5.x

Install ISE on a VMware Virtual Machine

Quick Start Guide ViPR Controller & ViPR SolutionPack

InControl 2 Software Appliance Setup Guide

HiveManager Virtual Appliance QuickStart

Basic Configuration Installation Guide

Transcription:

Migrating JBOD to RAID 1 Cisco Systems, Inc. Gurtu/Tiller

Introduction The Service Ready Engine Virtualization (SRE-V) platform runs on the Service Ready Engine (SRE) service module, and leverages VMware s ESXi on which users can create virtual machines (VM)s to install and run their applications. Among many of its features SRE-V supports Redundant Array Inexpensive Disk (RAID) level 0 and 1 on the SRE-900 and 910 service modules. If the user has already installed SRE-V in a non-raid mode a.k.a Just a Bunch of Disks (JBOD), and has created VMs, he still may wish to migrate this data to a RAID configuration. If the VMs cannot be temporarily stored in a remote location such as in a Network Attached Storage (NAS) device, then careful steps must be taken to perform this migration while protecting the data. This paper addresses this use case and provides steps for performing this migration from JBOD to RAID level 0 or 1. Assumptions 1. SRE-V release 1.5 or higher is installed on the SRE service module and is operating correctly. 2. At least one VM has been created. 3. The user can access the ESXi Direct Console User Interface (DCUI). 4. The user can ssh into the ESXi Tech Support shell. 5. User understands the function of RAID level 0 and 1. Disclaimer You are responsible for backing up all data prior to performing the following procedures. Cisco will not be liable for any data loss as a result of performing the following procedures. Cisco takes no responsibility for the accuracy or lack of any information contained herein. Use this information at your own risk. 2 Cisco Systems, Inc. Gurtu/Tiller

When converting from JBOD to RAID level 0 or 1, the conversion must first be made from JBOD to RAID level 0 on one selected physical drive. After this conversion is completed the logical volume on the second physical drive is removed and the existing drive previously configured as RAID level 0 is migrated with the other physical drive to exist under one logical drive in either RAID level 0 or 1 format. Of course, steps are taken beforehand to preserve the existing data. For purposes of this paper we will assume that you are using a SRE-SM-900-K9 service module that contains two hard drives. On each drive there exists one datastore so on drive one there is datastore1 and on drive two there is datastore2. Furthermore, let s assume that we have one virtual machine, Ubuntu7.0.4 installed on datastore1 and another, Win2k8r2, on datastore2. Each VM is shutdown, and we are currently logged into ESXi via the vsphere Client. Step 1 Let s first confirm that datastore1 and datastore 2 exist on the drives we ve just specified. On the vsphere Client Main Screen, click on the ESXi host, then in the Resources component right click on datastore1 and select Properties from the context menu. Figure 1 Accessing Datastore Properties 3 Cisco Systems, Inc. Gurtu/Tiller

Step 2 From the datastore1 Properties window, click on the Manage Paths button. Figure 2 Datastore1 Properties Step 3 The Runtime Name is vmhba0:c0:t0:l0. It s important to note that T0 reflects that the logical drive is zero. This value will be used later when we are repartitioning the drive. Do the same steps for datastore2 noting that it resides in logical drive one. Figure 3 Manage Paths: Hard Drive Logical Value 4 Cisco Systems, Inc. Gurtu/Tiller

Step 4 Before we begin to make changes, we must put ESXi into maintenance mode. This step prevents the system from changing while we are working on it possibly leading to unforeseen errors. Click on the ESXi host and then select the Summary tab. In the Commands component click on Enter Maintenance Mode. When prompted, review the Confirm Maintenance Mode information and click Yes. Figure 4 Entering Maintenance Mode Step 5 Now we ll move VM Ubuntu7.0.4 from datastore1 to datastore2 so that we can preserve this data and begin to operate on the hard drive holding datastore1. Click on the ESXi host, and then click on the Summary tab. Now right click on datastore1 and select Browse Datastore from the context menu shown in Figure 5. Figure 5 Accessing the Datastore 5 Cisco Systems, Inc. Gurtu/Tiller

Step 6 In the Datastore Browser window right click on the VM folder and select Move to from the context menu. Verify your VM information in the 'Confirm Move' dialog box and then click the Yes' button. Figure 6 Browsing the Datastore Step 7 In the "Move Items To.." window, select 'datastore2'. In the Destination Folder portion of the window, make sure that the root folder is selected, and then click on the 'Move' button. The 'Moving ' progress bar will appear. Figure 7 Moving the VM 6 Cisco Systems, Inc. Gurtu/Tiller

Step 8 Add your moved VM to inventory by clicking on the ESXi host, then clicking on the Summary tab. In the 'Resources' component right click on 'datastore2' and select 'Browse Datastore ' from the context menu. Now double click on the moved VM folder, Ubuntu7.0.4, and right click on the '.vmx' file. Select 'Add to Inventory' from the context menu. Figure 8 Adding to Inventory Step 9 In the 'Add to Inventory' wizard, click on the 'Next' buttons and then the 'Finish' button. Notice that the VM name was slightly modified by VMware since you cannot have VMs of the same name. Figure 9 Add to Inventory Wizard 7 Cisco Systems, Inc. Gurtu/Tiller

Step 10 You should notice that there are now two Ubuntu VMs. The first Ubuntu7.0.4 is just the name of the VM before it was moved and should be removed. The second Ubuntu 7.0.4 1 is the actual VM that has been moved to datastore2. Delete the Ubuntu7.0.4 VM by right clicking on the VM and selecting Delete from Disk from the context menu. Verify your VM information in the 'Confirm Delete' dialog box and then click on the Yes' button. Figure 10 Delete the Old VM Step 11 Now that we ve cleared datastore1 that resides on drive1 we can begin to reconfigure drive 1 for RAID. The first step is to ssh into the ESXi Tech Support shell. Once in, at the prompt type promise-raid-cli. You are now in the raid shell. [brett@atglab2-lnx ~]$ ssh root@192.168.1.62 root@192.168.1.62's password: You have activated Tech Support Mode... ~ # promise-raid-cli raid-cli> Figure 11 Accessing the RAID CLI Step 12 Now type logdrv. The value in the ID field represents the logical drive ID, and the value in the DiskID represents that physical drive ID. Recall back in step 1 when we checked that datastore1 resides on logical drive 0. We now know that logical drive 0 is also identified by physical drive 1, and that logical drive 1 is identified by physical drive 2. Notice that both drives are currently in JBOD mode. 8 Cisco Systems, Inc. Gurtu/Tiller

raid-cli>logdrv ID RAID Disks Stripe Size(MB) DiskID Name 0 JBOD 1 N/A 476940.02 (1) JBOD on port 01 (00) 1 JBOD 1 N/A 476940.02 (2) JBOD on port 02 (00) Figure 12 The Logical and Physical Drives Step 13 Now we ll delete logical drive 0. We know that it s safe to do so because we ve moved the VM previously located in datastore1 logical drive 0 to datastore2 logicial drive 1. Type logdrv -a del -l 0. This step effectively inactivates and eventually removes datastore1 and all contents on logical drive 0. raid-cli> logdrv -a del -l 0 Figure 13 Delete the Logical Drive Step 14 Now access the vsphere Client and click on the ESXi host. Next click on the Configuration tab and in the Hardware component click on Storage. Click on Rescan All and then click Ok in the pop up window. Figure 14 Rescan All Step 15 Back in the ESXi Tech Support shell screen, we ll now create logical drive 0 physical drive 1 as type RAID 0. Later we will migrate to RAID1, so we ll give this drive the name RAID1. raid-cli> logdrv -a add -p 1 -e 0 -z "raid=raid0, name=raid1, init=quick" Figure 15 Add Logical Drive 0 to Physical Drive as type Raid0 9 Cisco Systems, Inc. Gurtu/Tiller

Confirm the creation of the new logical drive by typing logdrv. Note that a new logical drive 0 of type RAID0 and with name RAID1 has been created. raid-cli>logdrv ID RAID Disks Stripe Size(MB) DiskID Name 0 RAID0 1 128 476837.12 (1) RAID1 1 JBOD 1 N/A 476940.02 (2) JBOD on port 02 (00) Figure 16 Check Logical Drives Step 16 Access the vsphere Client. We will now create a new datastore to reside on this drive. Click on the ESXi host. Next click on the Configuration tab and in the Hardware component click on Storage. Then click on the Add Storage... link. The Add Storage Wizard will appear. In the first screen make sure the Storage Type is Disk/LUN, and then click the Next button. Figure 17 Add Storage 10 Cisco Systems, Inc. Gurtu/Tiller

Step 17 In the next window select the disk/lun on which the datastore will be created and then click on the Next button. Figure 18 Select Disk/LUN Step 18 Observe the disk layout and click on the Next button. If the error message Call "HostDatastoreSystem.QueryVmfsDatastoreCreateOptions" failed appears then access the router and reload the service module via the command: service-module sm<slot>/0 reload. After the service module has completed reloading, log into the ESXi Server via the vsphere client, and then begin again from step 16. Figure 19 Current Disk Layout 11 Cisco Systems, Inc. Gurtu/Tiller

Step 19 Now we ll give our new datastore a name. Type in RaidDS. Figure 20 Datastore Name Step 20 Now we ll specify the datastore block size. Each hard drive on the SRE module is 512 GB, so to fully utilize this size, specify the block size as 2 MB. Figure 21 Formatting 12 Cisco Systems, Inc. Gurtu/Tiller

Step 21 On the final screen click the Finish button. Then on the main screen check for the existence of the logical volume with datastore RaidDS. Figure 22 New Datastore Confirmation Step 22 Our current state is that logical drive 0 now contains the RaidDS datastore and is formatted for as RAID level 0. As mentioned earlier we will convert this logical drive to RAID level 1. The next step is to move the VMs contained in datastore2 to the RaidDS datastore. As previously followed in Steps 5 to 7, we ll now move the VMs. First click on the ESXi host, and then on the Summary tab. In the Resources component right click on datastore2 and select Browse Database from the context menu. Figure 23 Browsing the Datastore 13 Cisco Systems, Inc. Gurtu/Tiller

Step 23 In the Datastore Browser window right click on the Win2k8r2 folder and select Move to from the context menu. Verify your VM information in the 'Confirm Move' dialog box and then click the Yes' button. Complete Step 23 then repeat the process for the Ubuntu7.0.4 VM. The.locker folder, if present, can be ignored. Figure 24 Selecting VMs for Moving Step 24 In the Move Items To window select the RaidDS datastore. In the Destination Folder portion of the window, make sure that the root folder is selected, and then click on the 'Move' button. The 'Moving ' progress bar will appear. Figure 25 Moving VMs 14 Cisco Systems, Inc. Gurtu/Tiller

Step 25 The VMs have been moved, but we now need to register them by adding them to the inventory as we previously did in steps 8 to 10. Add the moved Win2k8r2 VM to inventory by clicking on the ESXi host, then clicking on the Summary tab. In the 'Resources' component right click on the 'RaidDS' datastore and select 'Browse Datastore ' from the context menu. Now double click on the moved VM folder, Win2k8r2, and right click on the '.vmx' file. Select 'Add to Inventory' from the context menu. Complete steps 25 and 26 then repeat the process for the Ubuntu7.0.4 VM. Figure 26 Adding VMs to Inventory Step 26 In the 'Add to Inventory' wizard, click on the 'Next' buttons and then the 'Finish' button. Notice that the VM name was slightly modified by VMware since you cannot have VMs of the same name. Figure 27 Adding to Inventory Wizard 15 Cisco Systems, Inc. Gurtu/Tiller

Step 27 Notice that there are now two Ubuntu VMs and two Win2k8r2 VMs as well. The first Ubuntu7.0.4 1 is just the previous name of the VM before it was moved and should be removed. The second Ubuntu 7.0.4 is the new actual VM that has been moved to the RaidDS datastore. If you are not certain of this, right click on each VM and select Edit Settings from the context menu. Then in the upcoming window click on the Options tab. Notice that the Ubuntu 7.0.4 1 datastore is datastore2 which is from where the VM folder was moved. Figure 28 Checking VM Properties Delete the Ubuntu7.0.4 1 VM by right clicking on the VM and selecting Delete from Disk from the context menu. Verify your VM information in the 'Confirm Delete' dialog box and then click on the Yes' button. Regarding two Win2k8r2 VMs, the first VM Win2k8r2 is just the previous name of the VM before it was moved and should be deleted. The second Win2k8r2 1 is the new actual VM that has been moved to the RaidDS datastore. Delete the Win2k8r2 VM by right clicking on the VM and selecting Delete from Disk from the context menu. Verify your VM information in the 'Confirm Delete' dialog box and then click on the Yes' button. 16 Cisco Systems, Inc. Gurtu/Tiller

Figure 29 Deleting VMs Step 28 Now delete the logical drive containing datastore2. First ssh into the ESXi Tech Support shell. Once in, at the prompt type promise-raid-cli. Recall from Step 12, that the logical drive ID containing datastore2 is 1 and that it has a physical drive ID of 2. Now we ll delete logical drive 1. We know that it s safe to do so because we ve moved the VMs previously located in datastore2 logical drive 1 to the RaidDS datastore on logicial drive 0. Type logdrv -a del -l 1. This step effectively inactivates and eventually removes datastore2 and all contents on logical drive 1. raid-cli> logdrv -a del -l 1 Figure 30 Delete the Logical Drive Step 29 Now access the vsphere Client and click on the ESXi host. Next click on the Configuration tab and in the Hardware component click on Storage. Click on Rescan All and then click Ok in the pop up window. 17 Cisco Systems, Inc. Gurtu/Tiller

Figure 31 Rescan All Step 30 The next step is to migrate our physical drives into a specific RAID level and under one logical volume. Recall from step 15, that our logical drive ID 0, physical drive ID 1 has been converted to RAID level 0 format. The next step will be to place both physical drives 1 and 2 under logical drive ID 0, and in our desired RAID level. The commands are slightly different for the RAID level 0 and RAID level 1 migration. If you are migrating all drives to RAID level 0, follow this step and skip Step 31; otherwise when moving to RAID level 1, skip this step and go directly to step 31. The migration process will take several hours to complete. After this command has been entered you can check the migration status by typing migrate on the command line. raid-cli> migrate -a start -i 0 -l 0 p 1 2 -s "raid=raid0" Figure 32 Migrating to RAID Level 0 Step 31 The command for migrating to RAID level 1 is shown below. The migration process will take several hours to complete. After this command has been entered you can check the migration status by typing migrate on the command line. If you ve completed step 30, this step should be skipped. raid-cli> migrate -a start -i 0 -l 0 p 2 -s "raid=raid1" Figure 33 Migrating to RAID Level 1 Step 32 Once the migration has completed, type logdrv to check the new configuration. An example for RAID level 1 configuration is shown below. raid-cli> logdrv ID RAID Disks Stripe Size(MB) DiskID Name 0 RAID1 2 N/A 476837.12 (1,2) RAID1 Figure 34 Check Logical Drive Step 33 Exit from the RAID CLI and the tech support shell by typing exit twice. raid-cli> exit ~ # exit [Connection to 192.168.1.62 closed by foreign host] [brett@atglab2-lnx ~]$ Figure 35 Exiting the shell 18 Cisco Systems, Inc. Gurtu/Tiller

Step 34 Telnet to the router and from router IOS CLI reload the service module and then session into the module and wait for it to display the DCUI screen. \ Router# service-module sm <slot>/0 reload Router# service-module sm <slot>/0 session Figure 36 Reload the Service Module Step 35 Since the service module was reloaded, you will need to log back into the ESXi server using the vsphere Client. After logging in there will be a notification that there is no persistent storage. Click on the link click here to create a datastore Figure 37 Persistent Storage Message 19 Cisco Systems, Inc. Gurtu/Tiller

Step 36 The Add Storage wizard will start. In the first window select Disk/LUN and then click Next. In the following window select Local Promise Disk and click Next. Figure 38 Selecting Storage Type Step 37 In the Mount Options window select Keep the existing signature and click Next. Figure 39 Selecting Mount Options 20 Cisco Systems, Inc. Gurtu/Tiller

Step 38 In the Current Disk Layout screen, simply observe the disk layout and click Next. In the final screen, Ready to Complete click the Finish button. Figure 40 Current Disk Layout Step 39 The changes made now need to be provided to ESXi in order to provide a location for the scratch partition. With the recent changes this partition now exists in a temporary location, we ll now provide it a better path. Recall back on steps 19 21 that we created a datastore called RaidDS. Now we ll locate the volume on which this datastore exists and provide it for the scratch partition location. The first step is to ssh into the ESXi Tech Support shell. To get the volume path, go to the volume directory by typing cd /vmfs/volumes/raidds. Copy the path that gets displayed do not include the space or # sign. In this example you would copy: /vmfs/volumes/478422da- 6e46b9c0-5482-0023eba107fd ~ # cd /vmfs/volumes/raidds /vmfs/volumes/478422da-6e46b9c0-5482-0023eba107fd # Figure 41 Get Volume Path 21 Cisco Systems, Inc. Gurtu/Tiller

Step 40 In the vsphere Client, click on the ESXi host, then click on the Configuration tab. In the Software component click on Advanced Settings. Figure 42 Select Advanced Settings 22 Cisco Systems, Inc. Gurtu/Tiller

Step 41 Click on ScratchConfig and in the ScratchConfig.ConfiguredScratchLocation field shown in Figure 43, copy in the volume path. Finally, click OK. Figure 43 Advanced Settings Scratch Config Step 42 Click on the Summary tab and select Exit Maintenance Mode. Finally select Reboot, and click OK on the confirmation messages. The ESXi host will be rebooted. The vsphere client will lose connection to the host and you will need to log back in. Figure 44 Host Commands Step 43 The JBOD to RAID migration is now complete. 23 Cisco Systems, Inc. Gurtu/Tiller