Red Hat / Fedora :: Extend Logical Volume (LogVol) Size In Same Group?
Jun 23, 2011My LogVol00 has 1 Tb free space. Now I want to share 500gb of LogVol00 to LogVol04. How can I do this?
View 1 RepliesMy LogVol00 has 1 Tb free space. Now I want to share 500gb of LogVol00 to LogVol04. How can I do this?
View 1 Repliesextend the size of a LVM2 volume group over the remaining free space available on a physical volume. My linux box is a Ubuntu Karmic 9.10 64bit, the 60GB hard disk has 2 win partition for about 19GB, a 1.5GB ext3 boot partition and finally a 36GB LVM partition (/dev/sda4) on which I created a volume group (volgrp) smaller 10GB than the 36GB physical volume (/dev/sda4). What I want now is to extend the size of volume group up to the end of physical volume. I tried to use the "vgextend volgrp /dev/sda4" but system answers me
with following output:
me@pc:~> sudo vgextend volgrp /dev/sda4
Physical volume '/dev/sda4' is already in volume group 'volgrp'
Unable to add physical volume '/dev/sda4' to volume group 'volgrp'.
Here the output of fdisk command:
me@pc:~> sudo fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
[code]...
I have a system with a single disk that is partitioned as below:
1) hda
hda1 - boot partition - 0.3GB
hda2 - System - 15.7GB
There are 2 volumes on single group. The boot partion is a physical volume and the system is a logical volume. The disk has more room up to 40GB. How can I extend the logical volume. Tried system-config-lvm, but it does not gives the option.
Currently, I am at 99% capacity with a 1TB hard drive (sda). I want to add an extra 2TB storage (sdc) by extending the current volume group using LVM.
[URL]
I can see that it is extended from the LVM GUI (System - Admin - LVM). However, when I download anything, the system says I am still at 99% capacity.
Code:
[root@localhost /]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
[code]....
is lvresize with --resizefs options re-size the Logical Volume and then re-size the file system? i mean we don't need to use resize2fs?I looked at man pages but it doesn't explain this option.
View 3 Replies View RelatedOk so I have one drive. /boot /lv_root and /lv_swap
At the end of the drive I have 32 gigs of free space still contained in the logical volume group. I want to remove it from the LVG but this is on one device. Supposedly there is a way to do this, pvresize and fdisk.
[URL]
Quote:
Originally Posted by source
#I've tried to shrink the PV with pvresize which didn't throw errors -
Good.
#but fdisk still shows me the same LVM partition size as before.
That's normal. pvresize "just" updates the PV header and VG metadata.
#So I guess the partition table has to be modified somehow?
Yes. That was mentioned in my reply: "Then shrink the partition in the partition table."
You can use fdisk or any other partition table editor for this. Some don't support resizing a partition. In that case, you can delete and create a smaller one. If doing the delete/create dance, you *must* create the new partition on the same cylinder boundary as the current one to preserve the current data.
Ive read from every source on LVM its not possible to do this. Why on earth would any Linux developer put LVM on a single drive system by default? Were they even paying attention? I dont mean to go off on a rant but if there are multiple drives LVM makes sense. However if you only have one large drive LVM holds your system hostage and you have to crawl thru the pit of hell to get it back.
I understand you have a choice in the matter when you install Fedora but its really the worst possible choice for default. Many newcomers to Linux run into this problem with LVM. If you cannot resize LVG's the software should have never been put into a Linux distro in the first place.
I'm rearranging a bunch of disks on my server at home and I find myself in the position of wanting to move a bunch of LVM logical volumes to another volume group. Is there a simple way to do this? I saw mention of a cplv command but this seems to be either old or not something that was ever available for linux.
View 2 Replies View RelatedI'm running debian and used mdadm to setup up a raid 6 array with 4x1TB drives with roughly 1.86TB's available with lvm. Then I added 4x1TB drives to the array. So now I have an 8 drive raid 6 array with 5.+TB's available, the array sees all available space. The question is how do I extend the volume group so that it uses the whole raid and not just half of it. As of right now the volume group is only 1.86TB's.
View 6 Replies View Relatedwhat the maximum number of logical volumes is for a volume group in LVM ? Is there any known performance hit for creating a large number of small logical volumes vs a small number of large volumes ?
View 1 Replies View RelatedIs it possible to create a logical volume of 18TB in size? I was able to create the volume group but I'm having issues with the logical volume.
View 6 Replies View RelatedI have installed my Fedora on a LVM2 group and alocated a total of 10 GB. Which of course is abusrdly and ridiculously low space. As a matter of fact I did even more stupid thing - I allocated 4 (four) gigabytes for /swap !
I am complete novice in Linux and fedora, but I want to extend my /root lvm drive with at least 20 gb.
I burned parted magic on a CD and tried to manage the LVM2 grop, but it said LVM2 was not supported in parted magic. And so I tried the Fedora Partition Manager and got lost in what and how. I tried reducing the /swap space and increasing the / space, but failed - I could only select zero Mbytes for swap space, and had the only option of decreasing space for /, which is really not what I want to do.
What I want to do is extend the space for the whole LVM2 Logical Group , which is now 10 GB total for / and /swap. Or at least I'd like to reduce my /swap size and increase my / size.
I don't know much about lvm and I've managed to screw up a drive. I had a 500GB drive with FC14 on it and I wanted to copy over a load of data to my new 1TB that was replacing it. I set up my new install the same way as the old...including the same volume names (error number 1 I think) I successfully mounted the old/500GB drive (using vgscan and vgchange -a y etc.) using a laptop (running FC13) and an external hdd cradle. I could access the files I wanted but this wasn't the machine I wanted to copy them to (I was doing this while waiting for the install to finish on the new drive).
When I tried the same process on the new install I found that having two lvm with the same name meant I couldn't mount the external one. So I opened the disk utility (palimsest) and was going to change the name of the old volume group but it wouldn't let me do that. I then thought maybe I could get away with just changing the name of the partition where the files were and maybe I could add it to the mounted group or something so I changed it to lv_home2. This changed the name of my new/1TB lv_home to lv_home2 as well. So thinking that wasn't the answer I just changed the name of the new lv_home2 back to lv_home.
From that point on I haven't been able to see the old drives partitions (the new volume group still works so far). I has a physical volume but the volume group and volume names are gone from view. When I try to vgscan on my main computer or the laptop I had it working on earlier I get:
[Code]....
so i have f12 installed on my hd with lvm using the whole extent of the HD , i want to reduce it so i can dual boot it with a windows system, i managed to reduce the logical volume to free some space, but i cant seem to reduce the physical volume, is this possible and how ?
View 2 Replies View RelatedI have a Fedora 8 system that uses LVM on one of it's drives (/dev/sdb2). One of the logical volumes is getting full (LogVol02). There is an unused, unmounted logical volume (LogVol03) available. I can see two possible options.
1) Mount the unused logical volume (LogVol03) on a new mount point (/home2) and create more space there
2) Delete the LogVol03 logical volume and extend the nearly full volume (LogVol02) into the now available space.
Option 2 seems like the better approach, since it will seem seamless to the system users. I'm looking for suggestions on how I should go about doing this and what I need to look out for. Is it better to use the command line tools (lvm ...) or the GUI (system-config-lvm) to do this?
My computer: (Lenovo T61 Thinkpad, running fc11 for about 2 and half months). Apparently I when I made my partitions I didn't leave quite enough room in my root directory, because I just completely ran out. Here is how my hard drive is partitioned:
1 physical volume group (sda)
4 logical volumes (home, root, swap, var)
The root had about 15 gigs on it, which just filled up. When I restarted to see if that would help, when it rebooted it went fine up to the log-in screen. Instead of the usual fedora blue background, it was black except for the log-in window, which looked very low-res. A little pop-up kept coming up saying the GNOME power configuration settings failed to load or something. When I logged in, the whole screen was black except for the mouse, and I could get no response. I have plenty of space left in home, so I rebooted to rescue mode using the first fedora installation disk, and tried the following command:
Code:
lvreduce -L90G /dev/mapper/DRIVE
which only returned:
Code:
lvreduce: relocation error: lvreduce: symbol dm_tree_node_size_changed, version Base not defined in file libdevmapper.so.1.02
So I couldn't reduce the size of home, and thus couldn't increase the size of root.
IN SUMMARY:
a) the lack of memory in root the probable cause for my computer not working
b) there a good way to reduce home and increase root while running this live disk
Note: When I am looking at it now in the logical volume manager, it says that on the whole physical volume there is only 400MB free. However, when I last looked (about 30 mins before I started having problems) it said there were about 100 Gb free.
Edit: Nevermind. I did some more research and it turned out to be more of a gnome power manager thing rather than a memory space thing, although I'm certainly going to increase my root memory now.
I've got a big problem. Earlier this afternoon I tried to unlock my screen, but the password dialog didn't appear (the background did, and I could move the pointer, but no dialog). So I restarted the computer, only for the Fedora bootup icon to get about 3/4 of the way full before the screen blanked out and I got the message "Boot has failed. Sleeping forever." I booted into the liveCD and opened the system installer to see if maybe I could just reinstall the system in place while leaving my data intact. When I got to the partitioning stage, my old partition layout was there...except one LVM volume group was totally missing. And this is the volume group that contained my / and /home, among other things. Another volume group sitting on a different RAID was still there, but ironically it was the one for short-term data.
I have three hard drives, using soft RAID and LVM. Each drive is split into 4 partitions. The first partition of each is part of a RAID-1 where /boot sits. The second of each makes up a RAID-5 on which sits my "Main" volume group for my important data (this is the one that has gone AWOL). The third of each makes up a RAID-0 on which my "Volatile" volume group sits (for /tmp, /var/tmp, and the like). The fourth is swap.
Is there any chance I can restore my volume group so my data can be recovered? I'm not sure if I've got the full layout with volume sizes written down anywhere.
I (again) ran into trouble since two months i was trying out fedora lovelock "nightly build" in a virtualbox my host is Ubuntu 11.04 (previously 10.10 i upgraded yesterday) (had worked fine .. just was slow because i alloted only 512 MB ram) ... now i uninstalled virtualbox and deleted .virtualbox in home folder, but i couldn't recover my 8 GB space when i installed i made virtual disk fixed storage (my mistake i guess!! ) ) i don't know much about it either .. just wanted to try out fedora 15 so experimented it using virtuallbox ...
i'm running out of disk space (don't have bucks to purchase external hard disk .. otherwise i wouldn't have cared .. also don't have time to do a reinstallation of ubuntu/some other os (may be fedora) on my laptop ...
i just got 24 GB left .. i intend to store a few more movies and songs .. i would run out of disk space fairly quickly ... 8GB would be buffer if i get it back ...
I have a system with a 2TB RAID level 1 installed (2 x 2TB drives, configured as RAID1 through the BIOS). I installed Centos 5.5 and it runs fine. I now added another 2x2TB drives and configured them as RAID1 through the BIOS.
How do I add this new RAID volume to the existing logical volume?
I'd like to clone a partition, and then restore it to a logical volume. I have all three operating systems at my disposal (Mac, Windows, Linux Live CD) What is the best way to achieve this. The partition I am trying to resize is only 200MB, so I can store it on usb if need be.
View 9 Replies View RelatedI have a Fedora 15/Ubuntu 11.04 dual boot. In Fedora, I just created a new logical volume. How do I ensure that anything I put in it - all files and folders - will be accessible in Ubuntu? II also want to be able to add files and folders in Ubuntu and then read and write them in Fedora...
Here's the output from "lvdisplay" for the logical volume in question:
--- Logical volume ---
LV Name /dev/fedora/Everything
VG Name fedora
[Code]....
/home/gwyn/Everything is the mount point for the logical volume. I got full access over all files in the LV.
But when I shutdown Fedora and start up Ubuntu, I have to run the same chmod command again. How can I make read/write permissions endure between both distros?
I've just upgraded from F9 to F10. I can boot okay but I seem to have lost some data in one of my logical volumes. My drive is organised as follows:
/dev/mapper/main_group-various: UUID="f7c452cf-9f03-4f97-8676-b71b07a812aa" TYPE="ext3" SEC_TYPE="ext2"
/dev/mapper/main_group-root: UUID="173f1845-72c9-49e8-9d49-2a5776c4267c" TYPE="ext3" SEC_TYPE="ext2"
/dev/mapper/main_group-music: UUID="f5411861-4614-4652-a5f5-a3a8c2efcdd3" TYPE="ext3" SEC_TYPE="ext2"
[code].....
The logical volume for work still seems to be there. I presume (and hope) that all the information in /dev/main_group/work is still there. How can the folders in /dev/main_group/work be retrieved?
Dual PII 400, 512Mb with a Promise SuperTrak 100 IDE Array Controller. At present I have only one drive on the controller, configured for 1 JBOD array. I install FC9 with no problem. New partition is created and formatted, Grub is installed, and then... Grub is found and booted, but then I get:
Reading all physical volumes. This may take a while... No volume groups found Volume group "VolGroup00" not found Unable to access resume device (/dev/VolGroup00/LogVol01) mount: could not find filesystem '/dev/root' I can boot in rescue mode, chroot to the installed system. I changed the kernel boot parm "root=/dev/VolGroup00/LogVol00"
I have one HD and a VG spanning it's entirety. I resized a LV and freed up 10GB within the VG, but I want the 10GB outside the boundary of the VG so I can install another OS for testing purposes. For some reason I'm not able to do this. I don't know if I understand LVMs correctly. Maybe there can be only one VG on a HD?
View 1 Replies View RelatedThis concerns the Logical Volume Manager (LVM).
1) Why would I create a new volume group to add a new hard drive to a system, rather than add the drive to an existing volume group?
2) If I created a new volume group and added a new hard drive to it, would I see the total free space (I see 30 GB now via the file browser)? For example, if I have 30 GB free on the main drive (with the OS), and I add a new drive of say 40 GB in a new volume group (using LVM) would I see 70 GB of free space? That doesn't seem to happen.
Fedora 11. I am trying to setup kickstart so it lays out a mirrored volume group. I have 2 disks sda and sdb. I want a primary partition on each disk 200mb in size for /boot. This is to be mirrored onto raid device md0 (raid 1). The rest of each disk is to be setup partition which grows to use the remaining space, and is also mirrored (raid 1) md1. Onto md1, I want an LVM volume group called rootvg, and logical volumes set up on there for /, /home, /usr, /tmp etc. I can lay this out manually, and it works fine. However, the code below, which is slightly amended from a previous anaconda-ks.cfg file doesn't work.
Code:
clearpart --linux --drives=sda,sdb --initlabel
part raid.11 --asprimary --size=200 --ondisk=sda
part raid.12 --grow --size=1 --ondisk=sda
part raid.21 --asprimary --size=200 --ondisk=sdb
part raid.22 --grow --size=1 --ondisk=sdb
raid /boot --fstype=ext3 --level=RAID1 --device=md0 raid.11 raid.21
raid pv.1 --level=1 --device=md1 raid.12 raid.22
volgroup rootvg --pesize=32768 pv.1
logvol / --fstype=ext4 --name=rootlv01 --vgname=rootvg --size=512
logvol /home --fstype=ext4 --name=rootlv02 --vgname=rootvg --size=256
logvol /tmp --fstype=ext4 --name=rootlv03 --vgname=rootvg --size=128
logvol /usr --fstype=ext4 --name=rootlv04 --vgname=rootvg --size=3072
logvol /var --fstype=ext4 --name=rootlv05 --vgname=rootvg --size=1024
logvol /opt --fstype=ext4 --name=rootlv06 --vgname=rootvg --size=1024
logvol swap --name=LogVol06 --vgname=rootvg --size=1024
I am trying to extend my / size as its full. Well the volume group is VolGroup00 & logical volume is LogVol00 but when. I run the command vgextend VolGroup00 /dev/sda8. It says volume group not found. Can it be because I have WindowsXP in my /dev/sda1, which falls under same Volgroup??
View 1 Replies View RelatedI replaced the hds in my computer a while back. They were linked up as one logical volume, but before I pulled them out I saved isos of each disk.
However, now I need to find some information on them, but I can't figure out how to mount the isos. When I try mount -o loop on either iso, it tells me it can't recognize the file system type.
mount:
So I'm guessing that somehow I have to tell mount that they are two parts of one logical volume, but I'm not sure how to do that.
One way or another, is it going to be possible for me to recover the info from these isos?
Is is possible to extend physical volume disk space from one to another?
Quote:
PV VG Fmt Attr PSize PFree
/dev/sda1 Zeus-extra lvm2 a- 149.05G 17.05G
/dev/sdb1 Zeus-misc lvm2 a- 394.96G 274.96G
Could I get 50GB from /dev/sdb1 and add it to /dev/sda1 ???
I installed fedora 13 64 bit and it works great but I encountered several issues when setting up guest OS with KVM. The problem seems to be related to selinux. But let me first ask question about logical volume. By Default fedora created logical volumes:
[Code].....
"If you expect that you or other users will store data on the system, create a separate partition for the /home directory within a volume group. With a separate /home partition, you may upgrade or reinstall Fedora without erasing user data files." seems to suggest I have to create a separate physical partition and assign that to /home. But reading elsewhere it seems to suggest logical volume acts like a partition. My goal is to make it easy in case fedora is hosed and I have to re-install it without affecting /home where my cirtical data resides. Given above do I need to create a separate physical partition or I am just fine?
I have a second hard disk that originally had windows and all my data. Windows is hosed but I can see my data from within Fedora and Windows is gone and I created created new partition in its place which used ot be the C:/ drive appears as 53 Gb filesystem. My data which was originally D drive appears as 215 GB filesystem. As given in [URL] I want to create a new logical volume in 53 Gb filesystem which I want to use as space for virtual disk to install guest OS's in KVM. Currrently 53 GB filesystem is mounted as /media/3467BH89JK789 but this does not work well with KVM. how do I create this logical volume out of 53 Gb filesystem partition and add proper selinux info and do I add to vg_vostrolx volume group and in a different volume group?
i want to extend my existing partition size,but it should do it without formatting my operating system.i don't have the solution.Is this possible?if possiblsolution.hope somebody should give the answer
View 5 Replies View Related