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


ADVERTISEMENT

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

Fedora :: Moving /home To Its Own Logical Drive?

Jul 15, 2009

F-10 default installation is /swat /boot and the rest /

Many on this site recommend setting up separate partitions for /home

Does making a separate logical volume and putting /home in it do the same in allowing one to do an install to the original logical volume without affecting /home?

If it does, how does one get the 2nd LV recognized in the file system?

View 3 Replies View Related

Fedora :: Home Partition And Create Logical Volume Out Of 53 Gb Filesystem Partition?

Aug 24, 2010

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?

View 1 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 :: 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

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

General :: External Hard Drive Is No Longer Recognized - Buffer I/O Error On Device Sdb1, Logical Block 6160408

Feb 28, 2010

The external hard drive which contains all my photos and where I backed-up all my important documents is no longer recognized. It is a three month old 500GB Iomage Prestige Desktop Hard Drive.When I plug it in, it is recognised as a USB device, because it shows up when I type lsusb, but dmesg gives this error message.

[19712.013250] usb 2-2: new high speed USB device using ehci_hcd and address 21
[19712.145347] usb 2-2: configuration #1 chosen from 1 choice
[19712.147214] scsi25 : SCSI emulation for USB Mass Storage devices

[code]....

I popped the disk out of the casing put it on a SATA connect internally and then tried the file recovery programs testdisk/photorec and SpinRite, but both failed because they couldn't recognize the external hard disk.

View 4 Replies View Related

Fedora :: Creating Volume Group To Add New Hard Drive?

Oct 16, 2009

This 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.

View 14 Replies View Related

Applications :: Multi Volume Backup Of Hard Drive

Jan 12, 2011

Does anybody know any programs that might facilitate the spanning of a hard drive over multiple DVDs? I would like to backup a windows system that may have become corrupted however; but I don't know how to automatically span the files over multiple DVDs (which is what I'd like to do.) I may or may not use Ubuntu, but does anyone know any good applications for this?

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

Ubuntu :: Adding New Hard Drive To /home?

Feb 21, 2010

I ran out of space on my /home directory and added a drive. I've got it in my fstab file but how do I get Ubuntu to add the space to my /home? The line I put in fstab is:

/dev/sda5 /media/mynewdrive ext3 defaults 0 2

View 2 Replies View Related

Ubuntu :: New Hard Drive And Home Partition ?

Oct 30, 2010

I have an existing install of 10.4 on a 320 GB hard drive without home in it's own partition. I have a new 500GB hard drive that I want to install 10.10 on. After installing 10.10 and making /Home on it's own partition can I copy the entire old home folder including the hidden files to the new home partition on the new hard drive so that all of my programs and files are saved. I don't have enough room left on the old hard drive to create and copy home to a new partition. Am I going about this the right way or do I need to rethink and do some kind of backup restore on the new hard drive or some other way. I am trying to accomplish this so that in the future I can install a clean copy of Ubuntu when they are released without losing my current settings and files. I started out with 7.10 but my learning curve is slow.

View 2 Replies View Related

Ubuntu :: Using An External Hard Drive For /home?

Nov 11, 2010

Any opinions on this? I think it would be very convenient for me, but I don't want to cripple the speed of my computer if it is going to slow it down substantially.

View 4 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

Ubuntu :: Move /home To Larger Hard Drive?

Jun 19, 2011

I'm sure that this is posted somewhere but I have not been able to find the right search terms. I have a Dell Vostro 1700 which has 2 physical hard drives. I installed Natty to the 1st drive and during the install I used the entire 2nd drive as /home. I would like to upgrade the 2nd drive to a larger faster drive. I have the new drive in a USB enclosure so that I can access both drives. I'm pretty sure I need to boot from the CD to do this. Then I need to copy all files unmount the small drive then shut down, install the larger drive and have the system recognize it as /home. I am just starting to creep out of N00B stage and don't want to screw this up.

View 2 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

OpenSUSE Install :: Using An SSD But Keeping Home Directory On Hard Drive?

Jun 14, 2011

I have a dual boot windows XP/OpenSuse 11.3 system running from a hard drive. They are both 32 bit in spite of the fact that the system can run 64 bit.

I would like to upgrade to Windows 7 64 bit (the wife insists, not yet a Linux possibility) and OpenSuse 11.4 64 bit, but having the programme files on an SSD for faster loading, with my data files on the existing hard drive.

I'm happy with the notion of getting the SSD going as a dual boot system. With Windows, as I understand it, it can tell it fairly easily where to look for the "my documents" folder on the hard drive.

However, the Home directory in Linux is not quite the same. How (if it's possible) could I run the SSD but use my existing Home directory on the hard drive?

View 9 Replies View Related

OpenSUSE Install :: Hard Drive To Replace Old One That Contained The /var And /home Directories?

Apr 25, 2010

I am installing a new hard drive to replace my old one that contained the /var and /home directories. I don't want to copy the whole directories, especially from home because there is a lot I don't need in it.What I need to do is set the mount points for the two partitions I have made on the new drive to /var and /home, but it will not let me do this with the other drive still running. I can't unmount /var and /home while the computer is running, and I would guess that having two drives with /var and /home on them would not work.

So, how can I set the mount points on the new drive and copy the files I need from the old to the new one? It would seem that would require two /home partitions to be mounted at the same time, but I don't think that is possible. I am sure there is some way, probably many ways knowing Linux so please,

View 9 Replies View Related

Ubuntu :: Samba - Sharing Home Directory - Access The Second Hard Drive

Nov 28, 2010

I have just installed Ubuntu desktop and I am using this pc as a file server. I have already installed Samba and have it operational and viewable by my windows computers. Now the problem is that I have 2 hard drives and the way that I have Samba set up it is sharing my home directory which is wonderful but my windows computers do not have access to the second hard drive. I search for several hours this morning trying to figure out how to do this but cannot figure it out.

View 7 Replies View Related

Hardware :: Manage A Iomega Home Media Network Hard Drive (1TB)?

Nov 12, 2010

In MS Windows, I had the Iomega Home Storage Manager installed, to manage the hard drive as a administrator. Is there an alternative for Linux, and how to install?

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







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