How to add additional disks to XenServer host

Similar documents
How to increase XenServer virtual machine root or swap partition

SCSI RDMA Protocol. Introduction. Configuring SRP CHAPTER

Changing user login password on templates

Cloning and Repartitioning sessionmgr Disks

An introduction to Logical Volume Management

Back Up (And Restore) LVM Partitions With LVM Snapshots

How To Resize ext3 Partitions Without Losing Data

As this method focuses on working with LVM, we will first confirm that our partition type is actually Linux LVM by running the below command.

This section describes the procedures needed to add a new disk to a VM. vmkfstools -c 4g /vmfs/volumes/datastore_name/vmname/xxxx.

Getting Started with Pentaho and Cloudera QuickStart VM

05. 5GB 7. cmd. VM E:\. ASM1.vdi 5GB Fixed / Shareable Data (shareable) Fixed Size. ASM2.vdi 5GB Fixed / Shareable. ASM3.vdi 5GB Fixed / Shareable

Windows Method Using Linux Live CD and Gparted

Build Your Own Oracle RAC 11g Release 2 Cluster on Red Hat 4 and iscsi

CIS UNIX System Administration

Installing VMware ESXi and vcenter for Cisco RMS

jfield Documentation Release 1 Jason Field

Installing VMware ESXi and vcenter for Cisco RMS

System Administration. Storage Systems

Using iscsi On Debian Lenny (Initiator And Target)

BT Cloud Compute. Adding a Volume to an existing VM running Linux. The power to build your own cloud solutions to serve your specific business needs

1. Set up the storage to allow access to the LD(s) by the server following the NEC storage user guides.

Once your USB drive is formatted for the FAT32 file system it can be mounted and tested on the GESBC To do this, use the following command:

7. Try shrinking / -- what happens? Why? Cannot shrink the volume since we can not umount the / logical volume.

Virtualization Provisioning & Centralized Management with iscsi. RACF Brookhaven National Laboratory James Pryor CHEP 2010

FORTINET DOCUMENT LIBRARY FORTINET VIDEO GUIDE FORTINET BLOG CUSTOMER SERVICE & SUPPORT FORTIGATE COOKBOOK FORTINET TRAINING SERVICES

Adding a block devices and extending file systems in Linux environments

Author : admin. 1. Getting information about current file system partitions with fdisk and mount

It is recommended to complete the tutorial using a web browser from the same operating system as your Putty or SSH client (e.g. Ubuntu terminal).

DESS. User Guide. Issue 06 Date HUAWEI TECHNOLOGIES CO., LTD.

Red Hat Enterprise Linux 6 Server Instruction Guide for Creating Volume in Free Disk Space

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Using IDS v10 on Linux Kernel 2.6

Quota LVM (Logical Volume Manager)

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Linux System Administration, level 1. Lecture 4: Partitioning and Filesystems Part II: Tools & Methods

iscsi storage is used as shared storage in Redhat cluster, VMware vsphere, Redhat Enterprise Virtualization Manager, Ovirt, etc.

Learn Linux, 101: Create partitions and filesystems

Quick Start Guide. The Raspberry Pi Single Board Computer. Source: Raspberry Pi & Wiki

MFT / Linux Setup Documentation May 25, 2008

Red Hat Enterprise Linux 5 Logical Volume Manager Administration. LVM Administrator's Guide Edition 1

(32 KB) 216 * 215 = 231 = 2GB

v5: How to restore a backup image

Chapter 11: Implementing File Systems. Operating System Concepts 8 th Edition,

LVM Administrator's Guide. Configuration and Administration 5.2

makes floppy bootable o next comes root directory file information ATTRIB command used to modify name

UUID and R1Soft. What is a UUID and what is it used for?

pv_path The block device path name of a physical volume.

Introduction to OS. File Management. MOS Ch. 4. Mahmoud El-Gayyar. Mahmoud El-Gayyar / Introduction to OS 1

Installing Linux (Chapter 8) Note packet # 4. CSN 115 Operating Systems Ken Mead Genesee Community College. Objectives

for Cloud Computing University of Washington Tacoma Fall

A Frame Work for Virtual USB Devices under Linux Environment

Citrix XenServer Recovery Guide. Version 8.2

File System Case Studies. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

MODULE 02. Installation

Disks, Filesystems Todd Kelley CST8177 Todd Kelley 1

Xen: How to Convert An Image-Based Guest To An LVM-Based Guest

ECE 598 Advanced Operating Systems Lecture 18

Partitioning and Formatting Guide

environment) and note down the last "End" sector ( as shown in the below example):

Filesystem. Disclaimer: some slides are adopted from book authors slides with permission

Linux Howtos. Fedora 9 Install (114) CIS Fall Fedora 9 Install (114) Fedora 9 installation with custom partitions.

Project 3: An Introduction to File Systems. COP 4610 / CGS 5765 Principles of Operating Systems

Installing Oracle Database 10g Release 2 for Asianux2.0 on Power. Aug 10, 2006

HP integrated Citrix XenServer 5.0 Release Notes

Controller Installation

How to Back-Up a fit-pc2 Using Only a USB Stick (and some creative partitioning)

Bare Metal Server. User Guide. Issue 11 Date

2018/01/30 18:11 1/6 Disks Management HDD Management. Disks must be added before they can be formatted and mounted or configured in a RAID array.

Exam Actual. Higher Quality. Better Service! QUESTION & ANSWER

This is Worksheet and Assignment 12. Disks, Partitions, and File Systems

Advanced UNIX File Systems. Berkley Fast File System, Logging File System, Virtual File Systems

Manage your disk space... for free :)

The NetBSD Logical Volume Manager

CS370 Operating Systems

Initial Bootloader. On power-up, when a computer is turned on, the following operations are performed:

Red Hat Enterprise Linux 7

Citrix XenServer 5.6 Administration

File System Implementation. Sunu Wibirama

Getting Started with BeagleBoard xm

Upgrade Cisco Interface Module for LoRaWAN IXM using the Console

File System Internals. Jo, Heeseung

OPS235: Week 1. Installing Linux ( Lab1: Investigations 1-4)

If you need to pass extra parameters to the kernel, enter them at the prompt below after the name of the kernel to boot (huge.s etc).

Replacing a RazorSafe Hard Drive

Case study: ext2 FS 1

CS3600 SYSTEMS AND NETWORKS

Exam Name: Red Hat Certified Engineer on Redhat

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

Soma s Installation Notes

Error Creating Partition Table Helper Exited With Exit Code 1

Section 1. A zseries Linux file system test script

Linux Howtos. Red Hat 9 and Trouble (116) CIS Fall Red Hat 9 and Trouble (116)

XenServer Release Notes

Ext3/Ext4 File System

File systems and Filesystem quota

XenServer System Recovery Guide

Disks & File Systems. Dick Gillman, ITSS. 1/19/06 10:20:11 am docs/disks.sxi

mode uid gid atime ctime mtime size block count reference count direct blocks (12) single indirect double indirect triple indirect mode uid gid atime

Disaster Recovery Workflow

Outline. Operating Systems. File Systems. File System Concepts. Example: Unix open() Files: The User s Point of View

Transcription:

How to add additional disks to XenServer host This article explains how to add physical disk drives to a XenServer host, so that more capacity is available for the XenServer guests. Create Linux LVM partition The first step is to write a new partition table on the second disk drive using the fdisk command. # fdisk /dev/sdb The number of cylinders for this disk is set to 182401. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): p Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes 255 heads, 63 sectors/track, 182401 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 182401 1465136001 8e Linux LVM Add new disk to XenServer LVM The next step is to make the new disk partition known to the LVM using the pvcreate command. The pvdisplay command lists all physical volumes associated with LVM. The first physical volume is the original XenServer LVM partition on the first disk, the second entry is our new one.

# pvcreate /dev/sdb1 Physical volume "/dev/sdb1" successfully created # pvdisplay --- Physical volume --- PV Name /dev/sda3 VG Name VG_XenStorage-506b833c-f239-ad9a-350f-a7287ed3e259 PV Size 1.36 TB / not usable 7.77 MB Allocatable yes PE Size (KByte) 4096 Total PE 355739 Free PE 340336 Allocated PE 15403 PV UUID 5bhPOM-r7J0-2cSV-2CnR-WKpI-Vzue-AJorZZ # "/dev/sdb1" is a new physical volume of "1.36 TB" --- NEW Physical volume --- PV Name /dev/sdb1 VG Name VG_XenStorage-f6bce4ea-0bff-74f0-7a35-55238d517bd4 PV Size 1.36 TB / not usable 7.25 MB Allocatable yes PE Size (KByte) 4096 Total PE 357696 Free PE 132 Allocated PE 357564 PV UUID 2z9UKx-eTRo-I42j-O120-4F37-i5Is-edTbX8 Note If the new disk already contains a LVM partition, it should be automatically recognized as a new physical volume. In this case, the pvcr eate command is not necessary. The new storage can be added to the existing local storage, or it can be used to create a new distinct local storage. The first option has the disadvantage that the local storage is now dependend on two physical harddisks. This will double the risk of a failure. Alternative 1: Extend existing local storage To extend the existing local storage, use the vgextend command to add the new physical volume to an existing volume group. This command needs the volume group name as a parameter, so we run the vgdisplay command first. After execution of vgextend we should see the extra storage available in the volume group. The new size will also be displayed in the Citrix XenCenter for the local storage.

# vgdisplay --- Volume group --- VG Name VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1223 VG Access read/write VG Status resizable MAX LV 0 Cur LV 27 Open LV 26 Max PV 0 Cur PV 1 Act PV 1 VG Size 1.36 TB PE Size 4.00 MB Total PE 355739 Alloc PE / Size 355727 / 1.36 TB Free PE / Size 12 / 48.00 MB VG UUID JrIxtn-2smY-Hvav-FzXk-Un7o-G07e-fzjAqU # vgextend VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65 /dev/sdb1 Volume group "VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65" successfully extended # vgdisplay --- Volume group --- VG Name VG_XenStorage-ece12464-dfb3-8c83-36dd-e88c9f2c6b65 System ID Format lvm2 Metadata Areas 2 Metadata Sequence No 1235 VG Access read/write VG Status resizable MAX LV 0 Cur LV 30 Open LV 28 Max PV 0 Cur PV 2 Act PV 2 VG Size 2.72 TB PE Size 4.00 MB Total PE 713438 Alloc PE / Size 356331 / 1.36 TB Free PE / Size 357107 / 1.36 TB VG UUID JrIxtn-2smY-Hvav-FzXk-Un7o-G07e-fzjAqU Note By chaining several physical disks you increase the failure risk. If any of the drives in the volume group fails, the whole storage including your existing virtual machines fails.

Alternative 2: Create new local storage To create a new XenServer storage, use the xe sr-create command. If this server is in a pool, we need to define the host the new storage is on, so we need to run the xe host-list command first. # xe host-list uuid ( RO) : 2b9dd54b-7243-4504-a137-9a3519cb23fe name-label ( RW): server00 name-description ( RO): Default install of XenServer uuid ( RO) : f9317306-9c3f-42fc-ad4d-3b4bd6084bab name-label ( RW): server01 name-description ( RO): Default install of XenServer uuid ( RO) : 9e27f96c-a5b8-477c-b7f1-beac0d9c2b3f name-label ( RW): server02 name-description ( RO): Default install of XenServer xe sr-create host-uuid=f9317306-9c3f-42fc-ad4d-3b4bd6084bab shared=false type=lvm content-type=user \ device-config:device=/dev/sdb1 name-label="local storage 2" 01debcfa-0cbc-77af-5dae-269df31a8dfb Warning If your new disk already contains a LVM partition and has data in it (for example, if you were using this tutorial before, have copied data on the new storage and re-installed XenServer on the main disk), the xe sr-create command will delete all data. Using the new storage The new storage now shows up on the server's "Storage" tab in the XenCenter administration application. To use it, create a new virtual disk in the "Storage" tab of the virtual machine.

The new disk is now accessible as /dev/xvdb in the virtual machine. Just run fdisk /dev/xvdb and mke2fs -j /dev/xvdb1 and the new storage is ready for use. # fdisk /dev/xvdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xc6318a63. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 181975. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): p Disk /dev/xvdb: 1496.7 GB, 1496796102656 bytes 255 heads, 63 sectors/track, 181975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0xc6318a63 Device Boot Start End Blocks Id System Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-181975, default 1): Using default value 1 Last cylinder or +size or +sizem or +sizek (1-181975, default 181975): Using default value 181975 Command (m for help): p Disk /dev/xvdb: 1496.7 GB, 1496796102656 bytes 255 heads, 63 sectors/track, 181975 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0xc6318a63 Device Boot Start End Blocks Id System /dev/xvdb1 1 181975 1461714156 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. # mke2fs -j /dev/xvdb1 mke2fs 1.41.3 (12-Oct-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 91357184 inodes, 365428539 blocks 18271426 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 11152 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848 Writing inode tables: done Creating journal (32768 blocks): done

Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 30 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.

# See also When adding extra disk drives, consider also adding the smartmontools. The new disk drives will fail at some time in the future. Install smartmontools on Citrix XenServer Links to the official Citrix documentation: http://docs.vmd.citrix.com/xenserver/5.6.0/1.0/en_gb/reference.html#storage_configuration_examples http://docs.vmd.citrix.com/xenserver/5.6.0/1.0/en_gb/reference.html#cli-xe-commands_sr