Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to shrink root file system (LVM) in Linux Fedora 9? Post 302806977 by ravisingh on Tuesday 14th of May 2013 03:20:26 AM
Old 05-14-2013
How to shrink root file system (LVM) in Linux Fedora 9?

My root file system is of type LVM. i wanna shrink it but unable to do so.
When i give the below command:
Code:
resize2fs /dev/mapper/VolGroup00-VolLog00 10000M

it messages that online shrink can't can't be done as the logical volume is mounted on /. i switched to single user mode by giving command:
Code:
shutdown -i 1 now

There also, it messages the same. it says that online resizing(shrinking) is not available.

i tried by giving a few commands below but my system messaged that command doesn't exist. ( not sure whether these commands are really there or not, just a try)
Code:
ext2online /dev/mapper/VolGroup00-VolLog00 10000M
ext2resize /dev/mapper/VolGroup00-VolLog00 10000M
 /

What i intend to do is: i w'd reduce the LVM and the space avalialble after that , i w'd make one more logical volume in which i w'd install Ubuntu 12.10. i hope i can install this way keeping Fedora as well as windows.
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Data Recovery from file system overwritten with LVM.

Hey peeps, Here is somethin u might find interestin.... Is it possible to recover data from a partition which used to be an ext3 file sytem with some nice forgotten backups, which now is an lvm partion containg root partition of another OS. :) I couldn't create any mess better than this, can... (2 Replies)
Discussion started by: squid04
2 Replies

2. Red Hat

Increase root partition in LVM

I have a RHEL6 guest running on vmware esx server and the root disk size is 30G and i increased the disk size and create another partition /dev/sda3 but i do not know how to increase the size of the VG and then intrun LV .. can anyone help me on this . fdisk -l /dev/sda Disk /dev/sda:... (1 Reply)
Discussion started by: fugitive
1 Replies

3. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

4. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

5. Fedora

Fedora 17 LVM Issue

Hello, I tried to add more space to my Volume Group in Fedora 17 and the process seems to have borked: LVM did not restart. I booted into partition manager and deleted the new parition but that seems to have compounded the problem. Now when I try and restore the Volume Group I get this message:... (1 Reply)
Discussion started by: mojoman
1 Replies

6. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

7. Red Hat

Shrink ext4 filesystem and reduce the size of a Logical Volume in Linux

Hello guys, I would like to ask you kindly if you don't know some quick and safe method how to shrink ext4 filesystem and reduce the size of a Logical Volume in Linux, please? Thank you very much. (2 Replies)
Discussion started by: los_bandidos
2 Replies

8. UNIX for Beginners Questions & Answers

Safe way to shrink lvm vg_*-lv_swap partition and reclaim freed space on Linux?

Hello, # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sda 8:0 0 38.2G 0 disk ├─sda1 8:1 0 500M 0 part /boot └─sda2 8:2 ... (2 Replies)
Discussion started by: centosadmin
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] [-v|--verbose] [--version] {OldLogicalVolumePath NewLogicalVolume{Path|Name} | VolumeGroupName OldLogicalVolumeName NewLogicalVolumeName} DESCRIPTION
lvrename renames an existing logical volume from OldLogicalVolume{Name|Path} to NewLogicalVolume{Name|Path}. OPTIONS -A, --autobackup {y|n} Controls automatic backup of VG metadata after the change (see vgcfgbackup(8)). Default is yes. -d, --debug Enables additional debugging output (if compiled with DEBUG). -h, --help Print a usage message on standard output and exit successfully. -v, --verbose Gives verbose progress messages. EXAMPLE
To rename lvold in volume group vg02 to lvnew: lvrename /dev/vg02/lvold /dev/vg02/lvnew An alternate syntax to rename this logical volume is lvrename vg02 lvold lvnew DIAGNOSTICS
lvrename returns an exit code of 0 for success or > 0 for error: 1 invalid logical volume name 2 error checking existence of volume group 3 volume group inactive 4 new logical volume special file already exists 5 old logical volume doesn't exist 6 volume group names are different 7 new logical volume already exist 9 error reading volume group 10 error getting index of old logical volume 11 error renaming logical volume in kernel 12 error creating new logical volume in kernel 13 error writing VGDA to physical volume(s) 14 error creating device special for new logical volume 15 invalid volume group name 95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line ENVIRONMENT VARIABLES
LVM_AUTOBACKUP If this variable is set to "no" then the automatic backup of VG metadata is turned off. LVM_VG_MAX_BACKUPS This variable determins the backup history depth of kept VGDA copy files in /etc/lvmconf. It can be set to a positive number between 0 and 999. The higher this number is the more steps are you able to backup with vgcfgrestore(8) from the changes you make to your volume groups. LVM_VG_NAME The default Volume Group Name to use. Setting this variable enables you to enter just the Logical Volume Name rather than its com- plete path. SEE ALSO
lvm(8), lvchange(8), vgcreate(8), vgrename(8) AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com> Heinz Mauelshagen LVM TOOLS LVRENAME(8)
All times are GMT -4. The time now is 11:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy