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
nfsiostat(8)						      System Manager's Manual						      nfsiostat(8)

NAME
nfsiostat - Emulate iostat for NFS mount points using /proc/self/mountstats SYNOPSIS
nfsiostat [[<interval>] [<count>]] [<options>][<mount_point>] DESCRIPTION
The nfsiostat command displays NFS client per-mount statisitics. <interval> specifies the amount of time in seconds between each report. The first report contains statistics for the time since each file sys- tem was mounted. Each subsequent report contains statistics collected during the interval since the previous report. <count> If the <count> parameter is specified, the value of <count> determines the number of reports generated at <interval> seconds apart. if the interval parameter is specified without the <count> parameter, the command generates reports continuously. <options> Define below <mount_point> If one or more <mount point> names are specified, statistics for only these mount points will be displayed. Otherwise, all NFS mount points on the client are listed. OPTIONS
-a or --attr displays statistics related to the attribute cache -d or --dir displays statistics related to directory operations -h or --help shows help message and exit -l LIST or --list=LIST only print stats for first LIST mount points -p or --page displays statistics related to the page cache -s or --sort Sort NFS mount points by ops/second --version show program's version number and exit FILES
/proc/self/mountstats SEE ALSO
iostat(8), mountstats(8), nfsstat(8) AUTHOR
Chuck Lever <chuck.lever@oracle.com> 15 Apr 2010 nfsiostat(8)
All times are GMT -4. The time now is 02:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy