Move system partitions to another volume on a HP Proliant server

Move system partitions to another volume on a HP Proliant server

In this tutorial, I will show you how to perform the following steps on your HP Proliant server:
create a new volume with hpssacli
create the physical volume, volume group and logical group with lvm
transfer the system from the old to the new volume

This tutorial can be useful if you do not want to reinstall the system from scratch and restore a backup.

Create a new volume with hpssacli
First step, update your /etc/apt/sources.list and add the repository :
deb http://downloads.linux.hp.com/SDR/repo/mcp trusty/current non-free

Run the following commands :

Create a new volume with hpssacli. In the following example, I will create a simple RAID1 volume :

In the last command you can see the new disk name that will be used under lvm (Disk Name: /dev/sdc)

Partition creation with cfdisk (fdisk do not support gpt disks)

Do not forget to write the partition table and validate by typing “yes”.

LVM part

Transfer your system to the new created volume

Format the new volume
mkfs -t ext4 /dev/mapper/sysvg-root

Mount it and copy files

Install grub on the new volume

And reboot !

<>

My Powershell script categories

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.