Server :: Removing Physical Drive From LVM Logical Volume?

Jul 5, 2011

I have a 7.9 TB logical volume I've created from 8 1 TB RAID 0 devices. The volume is formatted with XFS so I can resize when ready. However, I think I want to do something that is not possible. I have 2.5 TB free on my logical volume. I'd like to shrink the volume down to be 6 TB by getting rid of 2 of the 1 TB devices in the physical volume. However pvmove seems to require free extents in order to work. Do I need to add 6 TB of storage, pvmove everything onto it, and then decommission the original 8 1 TB physical devices from the volume?

View 5 Replies


ADVERTISEMENT

Server :: Creating Multiple Logical Groups Out Of Physical Volume?

Apr 26, 2010

How to create multiple Logical Groups out of a single Physical Volume? Here is the Physical Volume I have created:

Code:
# pvdisplay
--- Physical volume ---
PV Name /dev/sda9
VG Name myVG1
PV Size 54.88 MB / not usable 2.88 MB
Allocatable yes
PE Size (KByte) 4096
Total PE 13
Free PE 11
Allocated PE 2
PV UUID bon4Ao-vmgC-aP1h-EC9X-w3tN-YXNu-0N2dAw

This is how I am creating a Logical Group out of the above Physical Volume:

Code:
# vgcreate myVG1 -s 4m /dev/sda9
Display:

Code:
# vgdisplay
--- Volume group ---
VG Name myVG1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 52.00 MB
PE Size 4.00 MB
Total PE 13
Alloc PE / Size 2 / 8.00 MB
Free PE / Size 11 / 44.00 MB
VG UUID O6ljYC-bflz-EUTd-nf34-8gYe-Fh39-Bh3cOg

But I am unable to create one more Logical Group out of this Physical Volume. Can we accomplish it? Or do we always extend our current Logical Group to utilize the available space of a Physical Volume?

View 2 Replies View Related

Fedora :: Managed To Reduce The Logical Volume To Free Some Space But Cant Seem To Reduce The Physical Volume

Jan 1, 2010

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 Related

General :: Read The Contents Of A Physical Disk That Was Part Of A Larger Logical Volume?

Mar 17, 2010

how easy it would be to read the contents of a physical disk that was part of a larger logical volume. The disk contains a "Linux LVM" partition that spans its entire size. My problem is that one of my disks died, and I have to send it back for a warranty replacement. However, the disk is dead, and I can't zero it out. I'm just trying to assess how difficult it would be (or at least how likely it would be) for a tech that's checking out the disk to get at the data.

View 4 Replies View Related

Server :: Possible To Stretch Logical Volume / 'home' Over To Second Hard Drive Using LVM?

Oct 4, 2009

Is it possible to stretch the logical volume "/home" over to a second hard drive using LVM? Would this have to be done during the Debian installation or could it be done after the installation is finished? Should I just make a 2nd /home partition?

View 2 Replies View Related

Fedora Hardware :: Removing A Bad Physical Volume

Jan 22, 2010

So I got a bad physical volume inisde my logical volume. I want to do this safely rather than tinkering around, how can I get the bad physical disk out and look at the data on the other 2 drives to see if I can save anything? Its just the standard fedora setup where it combines all the disks, nothing fancy.

I have the volume group activated as a partial, and now I just want to see the data on the other sections how could I mount that?

View 2 Replies View Related

General :: LVM Removing A Physical Volume Safely

Aug 7, 2010

Let's assume I have a volume group (VG) with six physical volumens (PV) - sdb1, sdb2, sdb3, sdc1, sdc2, sdc3..I want to remove one of the PVs from the group in order to use its space elsewhere - how can I know if it's safe? How can I do that without losing data and without first "pvmove"ing it elsewhere?Reading a bit more, my guess is using the result of pvscan, but I thought I'd ask before removing keeping it safe as I'm not an LVM expert.

View 4 Replies View Related

Ubuntu :: Create A Single Logical Drive Out Of Two Physical Drives?

Mar 4, 2010

I'm installing Ubuntu to be used as an NFS storage server for my VMWare ESX servers. I've got a server that has two 2TB drives in it. The hardware raid controller isn't an option because it only sees up to 1TB of each drive. So, I'm trying to figure out to do this using either LVM or Parted. I don't know much about doing this, and LVM was the first thing I tried but it didn't seem to do much. It looks like it just created a smaller partition to install Ubuntu on. It didn't ask me what I wanted to do with the rest of the drive space. I've messed around with Parted and am not sure what to do, to be honest. I found a few blog posts but most started off assuming that I knew how to get to where they were starting from.

It's just two drives, /dev/sda /dev/sdb

View 3 Replies View Related

Server :: Identifying What Is Using Up Space In Logical Volume?

Jun 14, 2010

I just read and learned about logical volume management today. I have a server running RHEL5.4, LVM2. I have 1 physical volume, with one volume group, and 3 logical volumes. I have no free extents, nor do I have any in my volume group (not sure if it's possible to have free in one and not the other anyway), and I am running out of space on one of my logical volumes. Doing a df -h shows 96% of 9.7GB used on /dev/mapper/MainVG-root, mounted at /. So here's the stupid question: how can I find out what directories/files are taking up what space within this logical volume? As I said I have 3 all together, and the other 2 are mapped to /var and a /var pgsql sub-directory. I figured I could get the sizes of the other directories under / and drill down accordingly, but I seem to be missing some basic rule because the commands I am using and the values I am getting don't add up.

For example, it seemed logical to me to do an ls -lsh on / to try and identify the largest directories. Each directory is listed as being ~4-8K in size. That doesn't make sense to me. So I decided to do a du -sh on each directory. Having done this on all of the / sub-directories and added up those values, there is not enough reported usage here to equal 8.9GB of used space (as df -h / reports).how they would find out how the 9.7GB here is being allocated? Preferably without scripts as I am not ready to add a layer of complexity to this yet without understanding some fundamentals.

View 2 Replies View Related

Server :: LVM Process - Adding Secondary HD As Logical Volume

Aug 3, 2009

I have a CentOS 5 server with a 250gb hard drive running close to the maximum space on one of the partitions. 87% of 200gb (/home), roughly. I have a second 250gb hard drive which is completely unused. I just recently did some searching through the forums here and found out about LVM and wanted to implement it. Although the downside is I believe it has to wipe a drive/partition before it can add it as a logical volume.

The process I'm considering following is:
1. add this empty 250gb (SDB) secondary hard drive as a logical volume on LVM and copy everything over from the currently filling up partition on my main hard drive.
2. have LVM add in the old partition on the primary hard drive (SDA)
3. extend my logical volume out to include the old partition. Extending my total hard drive space out to 450gb.

View 3 Replies View Related

CentOS 5 Server :: Sharing Logical Volume Across Xen Domains?

Oct 17, 2009

I have a network (192.168.x.x) that I want to keep closed and private for the most part. I need however to get access to some files generated on the machines in this private network. So I first tried putting two cards in a machine running centos 5.2 and connecting one to the private newtork and the other to the public network. This worked somewhat but I was not able to see this bridging machine in the private network because I could not run 2 samba instances on this machine ( I need one for the public network). So I setup xen on a machine with the 2 NIC's and assigned one card to the host dom and the other to the guest dom which was connected to the private network.

This worked ok, but the only issue was the shared disk space. I couldn't use nfs because each machine operates in a different subnet and I don't know how to export a nfs drive across domains. So I created a logical volume on a disk and mounted this in both domains. This works some times,. but at other times I copy files from the private machine to the shared volume but i can't see them from the other domain. Also sometimes the guest domain which houses the private network server hangs during boot up saying that the logical volume has been assigned and cannot be mounted.

1) Is what I'm doing using logical volumes across domains legal (best practise, etc)

2) Is there another way for me to achieve what I want (sharing a disk partition across domains).

View 15 Replies View Related

CentOS 5 Server :: How To Automatically Resize Logical Volume

Feb 17, 2010

I'm sure many of you here have worked with disk quotas and lvm2 and my problem involves both. Basically what I'm wanting to do is have it so whenever a logical volume gets below a certain constraint (10Gb's) ie. it only has that much left - I want to automatically resize it to add 20 GB's. Obviously this can be done rather easily manually, and with a bit of python hacking it can be done programmatically but since this is for production use I was wondering if there was something a bit more fluid. Since this server is I/O intensive ZFS implemented via FUSE is not an option and neither is the still unstable BtrFS.

View 3 Replies View Related

Server :: LVM - Mount Specific Partition Inside Logical Volume?

Sep 4, 2009

I've just started playing with virtualization and I started my first VM. I would like to know if it's possible for the host machine to mount the partitions of the VM when it's closed. Right now the VM uses /dev/vg0/vm1 and has 3 partitions on it. I tried mount /dev/vg0/vm1 ~/vm1 at first before I remembered that I'd need a way to mount a specific partition inside the logical volume, not the volume itself!

View 2 Replies View Related

Server :: Converting A Logical Volume To A Raw Disk To Mount Oracle ASM Instance On It?

Jul 21, 2010

Could anyone give the steps for converting a logical volume to a raw disk to mount Oracle ASM Instance on it?

View 2 Replies View Related

CentOS 5 Server :: What Is The Maximum Number Of Logical Volumes In A Volume Group

May 15, 2009

what 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 Related

General :: Move / Copy A Logical Volume From One Volume Group To Another?

Dec 1, 2010

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 Related

CentOS 5 :: Add New RAID Volume To The Existing Logical Volume?

May 7, 2011

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?

View 5 Replies View Related

Hardware :: Lvm - What Is A Logical Volume?

Aug 4, 2010

What is a logical volume? Why should we have them? Is there no need for grub on such a system? All kinds of problems since I tried to install Slackware!

View 3 Replies View Related

Software :: LVM Physical Volume -- Not Shrinking?

Feb 23, 2010

I was running through a fairly routine Gentoo install on a 160G hard disk. My intention was to have two partitions on the disks: one for boot, and one to be an LVM physical volume. In a stroke of absent-mindedness, however, I forgot to create the boot partition and only created the LVM physical volumend didn't realize ituntil the end of the installation.Anyway, I just want to shrink the physical volume partition and add in another partition with fdisk. However, this doesn't seem to be working the way I intend. I ran

Code:
livecd dev # pvresize --setphysicalvolumesize 159G /dev/hda1
WARNING: /dev/hda1: Overriding real size. You could lose data.

[code]....

View 4 Replies View Related

Ubuntu :: In Which Logical Volume Is A File?

Jul 13, 2010

I have cluster of 3 logical volumes making a filesystem, is there a tool or command out there that could tell me in which logical volume a file is?

View 3 Replies View Related

Red Hat / Fedora :: LVM - One Of Logical Volume Getting Full

Apr 7, 2010

I 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?

View 2 Replies View Related

General :: Create A Physical Volume First Before Creating LVM's?

Jul 13, 2010

WHat is the physical volume in LVM's? Why do we need to create a physical volume first before creating LVM's? I mean, LVM's are created from physical disks, so why do we need to specify it? Didnt get it. Anybody want to help me with this?

View 2 Replies View Related

General :: Find The OID Code For A Physical Volume?

May 18, 2011

How do I find the OID code for a physical volume.I managed to get it to work with our snmp monitoring software to alert me when disk space was < 10% but the computer which was running the SNMP monitoring died.For the life of me I can't remeber how I got it to work.I have 4 partitions 1 has 88% free /etc/mapper/volgroup002 has 21% free /boot3 nfsd 0 bytes4 sunrpc 0 bytesHere is a copy of the OID I'm using 1.3.6.1.2.1.25.2.3.1.5.1 I change the last number to resemble the drive but i'm testing using 8% and they each return an error drive space low which is what the VB script tells it to do. I know the script works as I use it on Windows Servers no problems.I do an SNMPWALK on the server and it validates the above OID with HOST-RESOURCES-MIB::hrStorageSize so I know thats valid.But thats where I'm stuck. What value should I see if I were to use this OID 1.3.6.1.2.1.25.2.3.1.6.1 which is for free disk space.

View 1 Replies View Related

Software :: LVM - Using Physical Volume On Command Line

Jun 11, 2010

I have kind of test partition, but I need lv_root on it. So I have:

Code:
Using physical volume(s) on command line
PV VG Fmt Attr PSize PFree Start SSize LV Start Type PE Ranges /dev/sda6 VolGroup lvm2 a- 29.73g 440.00m 0 6859 lv_root 0 linear /dev/sda6:0-6858
/dev/sda6 VolGroup lvm2 a- 29.73g 440.00m 6859 128 lv_swap 0 linear /dev/sda6:6859-6986
/dev/sda6 VolGroup lvm2 a- 29.73g 440.00m 6987 512 lv_root 6859 linear /dev/sda6:6987-7498
/dev/sda6 VolGroup lvm2 a- 29.73g 440.00m 7499 2 lv_swap 128 linear /dev/sda6:7499-7500
/dev/sda6 VolGroup lvm2 a- 29.73g 440.00m 7501 110 0 free
I want to move "lv_swap" to the end of VG. I want to delete its segment, and rest of VG to use for "lv_root".

View 2 Replies View Related

Fedora :: Root Logical Volume Ran Out Of Space?

Nov 13, 2009

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.

View 3 Replies View Related

Fedora :: Logical Volume Disappeared And Took / Root With It?

Jul 22, 2011

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.

View 1 Replies View Related

Ubuntu :: How To Restore Deleted Logical Volume

Jul 30, 2010

I have 3 harddisks, 1 for system and 2 for data.

To manage it more easy, I tied 2 harddisk in LVM. And I made an logical volume. It used ext4 for it's filesystem.

Today, I wanted to format and reinstall the system. So I booted the system using Ubuntu CD. But managing the partition, I accidently delete the logical volume. Because backup(/etc/lvm) was in itself, I couldn't restore the old config. I just create new logical volume.

As I expected, I couldn't mount it correctly. Mount said that "Mount: Mouting failed A on B! Invalid argument!"

I must recover it, because it has a lot of import data. What should I do?

View 1 Replies View Related

Red Hat / Fedora :: FC10 - How To Extend Logical Volume

Mar 6, 2011

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.

View 4 Replies View Related

General :: How To Know Which Logical Volume Owns A File

Jul 14, 2010

Hi. We have a cluster consisting of 10 logical volumes all part of one filesystem. Is there a way to know which logical volume owns a certain file/inode? I have tried what is suggested at this link, but the output is the filesystem and not a specific logical volume.

View 6 Replies View Related

CentOS 5 :: Reducing A Logical Volume Mounted As /?

Jan 15, 2010

I'm wondering if there is a way to shrink an ext3 LV mount as / .I tried to with resize2fs ... but seems that isn't possible if the partition is mounted.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved