Difference between revisions of "HowTo Change The LVM Volume Group Name That Includes The Root Partition"

From NST Wiki
Jump to navigationJump to search
(Overview)
(State Before Change)
Line 7: Line 7:
 
= State Before Change =
 
= State Before Change =
 
The '''[http://fedoraproject.org/wiki/Features/SystemStorageManager Fedora System Storage Manager]''' utility: '''ssm''' is used to display the current storage layout on the example system.
 
The '''[http://fedoraproject.org/wiki/Features/SystemStorageManager Fedora System Storage Manager]''' utility: '''ssm''' is used to display the current storage layout on the example system.
 +
 +
[root@localhost boot]# ssm list
 +
-------------------------------------------------------------------
 +
Device        Free      Used      Total  Pool          Mount point 
 +
-------------------------------------------------------------------
 +
/dev/sda                      30.00 GB                PARTITIONED 
 +
/dev/sda1                    500.00 MB                /boot       
 +
/dev/sda2  0.00 KB  29.51 GB  29.51 GB  nst_localhost             
 +
-------------------------------------------------------------------
 +
---------------------------------------------------------
 +
Pool          Type  Devices    Free      Used    Total 
 +
---------------------------------------------------------
 +
nst_localhost  lvm  1        0.00 KB  29.51 GB  29.51 GB 
 +
---------------------------------------------------------
 +
----------------------------------------------------------------------------------------------------
 +
Volume                  Pool          Volume size  FS      FS size      Free  Type    Mount point 
 +
----------------------------------------------------------------------------------------------------
 +
/dev/nst_localhost/root  nst_localhost    27.48 GB  ext4  27.48 GB  19.18 GB  linear  /           
 +
/dev/nst_localhost/swap  nst_localhost      2.03 GB                              linear             
 +
/dev/sda1                                500.00 MB  ext4  500.00 MB  364.40 MB  part    /boot       
 +
----------------------------------------------------------------------------------------------------

Revision as of 13:14, 1 January 2014

Overview

This page describes the steps needed to change an LVM (Logical Volume Manager) Volume Group name which includes the the Root partition ("/"). The problem is that the Root partition LVM Device Mapper is referenced in different configuration files and embedded in the Kernel initramfs.

We will demonstrate the LVM Volume Group name change from "nst_localhost" to "nst20".

State Before Change

The Fedora System Storage Manager utility: ssm is used to display the current storage layout on the example system.

[root@localhost boot]# ssm list
-------------------------------------------------------------------
Device        Free      Used      Total  Pool           Mount point  
-------------------------------------------------------------------
/dev/sda                       30.00 GB                 PARTITIONED  
/dev/sda1                     500.00 MB                 /boot        
/dev/sda2  0.00 KB  29.51 GB   29.51 GB  nst_localhost               
-------------------------------------------------------------------
---------------------------------------------------------
Pool           Type  Devices     Free      Used     Total  
---------------------------------------------------------
nst_localhost  lvm   1        0.00 KB  29.51 GB  29.51 GB  
---------------------------------------------------------
----------------------------------------------------------------------------------------------------
Volume                   Pool           Volume size  FS      FS size       Free  Type    Mount point  
----------------------------------------------------------------------------------------------------
/dev/nst_localhost/root  nst_localhost     27.48 GB  ext4   27.48 GB   19.18 GB  linear  /            
/dev/nst_localhost/swap  nst_localhost      2.03 GB                              linear               
/dev/sda1                                 500.00 MB  ext4  500.00 MB  364.40 MB  part    /boot        
----------------------------------------------------------------------------------------------------