Sponsored Content
Operating Systems Linux Ubuntu Rename Root Logical Volume group? Post 302837733 by moneynut on Friday 26th of July 2013 03:19:32 PM
Old 07-26-2013
I managed to fix it. Here are the steps:
1. Boot into Ubuntu – Rescue mode
2. Do not mount the root file system
3. lvm vgscan
4. Deactivate the volume group
  • a. vgchange –a n VOLUME-GROUP-NAME
    b. lvm lvscan
5. Rename the volume group
  • a. lvm vgrename OLD-NAME NEW-NAME
    b. lvm lvscan
    c. It will be activated automatically, if not type vgchange –a y NEW-VOLUME-GROUP-NAME
6. Exit and choose different file system
  • a. select ROOT file system
7. Backup /etc/fstab file
  • a. cp –p /etc/fstab /etc/fstab.old
8. Edit /etc/fstab and replace OLD-NAME
  • a. vi /etc/fstab
    b. :%s/OLD--NAME/NEW-NAME/g
9. If /boot is empty, then mount /dev/sda1
  • a. mount /dev/sda1 /boot
10. Install grub and update it.
  • a. grub-install /dev/sda
    b. update-grub
11. Exit and reboot the server.
12. Boot from hard disk.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies

2. UNIX for Advanced & Expert Users

Problem syncing logical volume in root vg

Hello. I have a test server that I'm messing around with, and just recently received an error on startup that a logical volume in the root volume group couldn't be re-synchronized. Server boots fine, as the root vg is mirrored, but I'd like to get rid of the error. Here are the details: ... (1 Reply)
Discussion started by: matt.d
1 Replies

3. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

4. HP-UX

Renaming logical volume group and volumes

Hi all, How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use. eg: Renaming dev/vgov to dev/ov-dg ? (6 Replies)
Discussion started by: Mr. Zer0
6 Replies

5. AIX

Basic Filesystem / Physical Volume / Logical Volume Check

Hi! Can anyone help me on how I can do a basic check on the Unix filesystems / physical volumes and logical volumes? What items should I check, like where do I look at in smit? Or are there commands that I should execute? I need to do this as I was informed by IBM that there seems to be... (1 Reply)
Discussion started by: chipahoys
1 Replies

6. HP-UX

Unmount and remove all Logical vol.Volume group and physical disk

Hi, Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Discussion started by: joeli
3 Replies

7. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

8. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

9. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

10. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies
LVRENAME(8)						      System Manager's Manual						       LVRENAME(8)

NAME
       lvrename - rename a logical volume

SYNOPSIS
       lvrename  [-A|--autobackup  {y|n}]  [-d|--debug]  [-h|--help]  [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noudevsync] {OldLogi-
       calVolume{Name|Path} NewLogicalVolume{Name|Path} | VolumeGroupName OldLogicalVolumeName NewLogicalVolumeName }

DESCRIPTION
       lvrename renames an existing logical volume from OldLogicalVolume{Name|Path} to NewLogicalVolume{Name|Path}.

OPTIONS
       See lvm(8) for common options.

       --noudevsync
	      Disable udev synchronisation. The process will not wait for notification from udev.  It will continue irrespective of  any  possible
	      udev  processing	in the background.  You should only use this if udev is not running or has rules that ignore the devices LVM2 cre-
	      ates.

EXAMPLE
       To rename lvold in volume group vg02 to lvnew:

       lvrename /dev/vg02/lvold vg02/lvnew

       An alternate syntax to rename this logical volume is:

       lvrename vg02 lvold lvnew

SEE ALSO
       lvm(8), lvchange(8), vgcreate(8), vgrename(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       LVRENAME(8)
All times are GMT -4. The time now is 09:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy