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


ADVERTISEMENT

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

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

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

General :: List All Physical Volumes Associated To A Volume Group?

Nov 9, 2010

Maybe I'm missing something obvious but I do not see it listed in vgdisplay.

View 1 Replies View Related

Ubuntu Installation :: LVM2: Resize The Physical Volume

Apr 11, 2011

I have a 500GB hard disk, /dev/sda. On it, there is /dev/sda1 for /boot, /dev/sda2 for an LVM PV (physical volume), and /dev/sda3 for another /boot (multiple Linux distros, one boot partition for grub legacy, another for grub2). so the LVM2 partition, /dev/sda2, is taking up ~465GiB. I want to add another OS (non-Linux), so I resized the *lvm2 physical volume* to 320GiB, successfully, using pvresize.

However, I now need to resize the partition so the lvm2 physical volume only just fits on it, ie to 320GiB. My plan of action is to use gparted (the partition table is GUID, so fdisk won't work), to first delete the partition from the partition table, then re-add it but this time with a smaller value (~320GiB). The problem is that I need to know exactly how many MiB/cylinders the physical volume is taking up. So, I run:

Code:

root@sysresccd /root % pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name vg0

[code]....

What one of these values do I need to set the new lvm2 replacement partition to?

View 7 Replies View Related

Ubuntu :: Unable To Mount 52 GB LVM2 Physical Volume?

Jul 10, 2011

When I installed Ubuntu, I created an 52 gb encrypted partition which shows up in the disk utility, and in the window that opens when I click on the "home folder" icon. I get my normal windows partition, and under that the 52 GB LVM2 partition. But when I try to access it, I get this error.

Unable to mount 52 GB LVM2 Physical Volume - not a mountable file system

This is what fdisk -l shows

Device Boot Start End Blocks Id System
/dev/sda1 * 1 52 409600 27 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 52 30452 244193280 7 HPFS/NTFS

[Code]....

How can I fix this, and be able to access that 52gb partition? This is only my second day that I work with Ubuntu, so If more information is needed then let me know

View 9 Replies View Related

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

Software :: Extend Physical Volume Disk Space From One To Another?

Sep 16, 2010

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

View 1 Replies View Related

General :: Problems With Pvcreate To Create A Physical Volume For RAID 1

Jul 29, 2010

Hi,

I am experiencing problems in creating a physical volume on RAID 1 system.

Here is what I did.

#/usr/sbin/pvcreate /dev/md0

the message reads:
"Device /dev/md0 not found (or ignored by filtering)."

The /dev/md0 has a partition type 8e for linux LVM

Can anyone enlighten me?

Thanks

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

Slackware :: Shrink A LUKS-encrypted Physical Volume - LVM2

Dec 28, 2009

I have a 160GB harddrive with 2 partitions:

1. /dev/sda1 ext2 100MB (this is my /boot partition)

2. /dev/sda2 LVM2 Remaining space (this is my physical volume and is LUKS-encrypted)

There is 1 volume group, slackvg, and 3 logical volumes:

1. swap 2GB

2. root jfs 10GB

3. home jfs 50GB

I would like to shrink /dev/sda2 to make room for another regular partition, is this possible?

View 1 Replies View Related

Fedora Installation :: Unable To Mount 250GB LVM2 Physical Volume

Mar 17, 2011

I just installed linux fedora 14 on my hp probook 4320s with installation CD with this name: Fedora-14-x86_64-Live-Desktop. Then I installed it on the hard disk. During installation I chose to encrypt hard disk. When I try to access my hard disk it says "unable to mount 250GB LVM2 Physical Volume, Not a mountable file system". What can I do to get access to my hard disk?

View 4 Replies View Related

Ubuntu Installation :: Accidentally Deleted Partition Table On Lvm Physical Volume.

Jul 18, 2010

I was trying to remove the physical volume from an old drive. So I opened gparted and told it to rewrite the partition table. The only problem is I targeted the wrong volume, I wiped the partition table on my 4tb raid5 array This 4tb array has everything! All my movies, tv shows, music. The only things I have backup up off site are my smaller files like documents. I was about to lose my whole media collection.

I did some research and found a solution that I will post here in the hopes that someone will google "I deleted the partition table on my lvm" and be find the solution.You should find in your filesystem a /etc/lvm/backup folder. LVM puts a copy of the crucial lvm information there every time you change the the volume group.

In this folder you will find a file for each volume group. In this file you will find the uuid for all of the physical volumes that make up that group.The first step is to recreate each physical volume with their original uuids. In my case I had only 1 physical volume, which was my raid5 array. My recreation command looked like this:

pvcreate --uuid cLrY02-zrVi-D0Vi-cIPB-6fF5-ed0c-XFF0os /dev/md0

Now I have a physical volume with the same uuid it had before. It is essential that you correctly match up the uuids with the correct physical deviecs.The recreated pv is empty, the volume group needs to be recovered. This is done by using a special tool and the backup file. For me the command looked like this:

vgcfgrestore --file /etc/lvm/backup/raid5 raid5

This tells it to recreate the volume group using the information in the backup file. The backup files looks for the uuid of the PV, which now matches the correct volume. The coordinates in the backup file match up to the data on the array an suddenly everything is back!

When I deleted my LVM partition table I did not damage any of the actual volumes on the volume group, I just wiped out the table of contents. The backup file had the information needed to rewrite this table of contents.

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

Fedora :: LVM 2 Partition And Shrinking

Dec 3, 2009

How can I shrink a LVM2 partition in fedora 12 in order for me to install another distro. thank you

View 1 Replies View Related

Ubuntu :: Shrinking An Avi File?

Jan 14, 2011

I have an avi file that was recorded at a high school sporting event at not terribly high quality, but the 5 minute avi file (created with dd_rescue -A /path/to/cd /path/to/output.avi) is something like 250 Mb. Which is far too large for a clip of this length and quality. (if I need to lift from the cd again that's fine).

View 3 Replies View Related

Fedora :: Shrinking Terminal Windows Under Kde?

Jun 19, 2011

I'm running kdm/kde, and when the previous session is restored, terminal windows shrink themselves. When I resize a window to make it useable, the window is "kind of" unfocused until I move it. (It will accept input, but not echo it and the block cursor remains "hollow")

How to I set it so the windows are simply restored at their previous size, and not then "shrunk"?

It seems the windows shrink to about the minimum width of the menu bar, and is about 3 lines of text high.

BTW, when I open a new terminal window, it shinks to this size. It appears the the hight is determined by the min size of the scroll bar

View 5 Replies View Related

Ubuntu :: Shrinking An Extended Partition?

Apr 14, 2011

I recently decided to resize a partition on my HDD (partition on which Ubuntu was previously installed).This was in order to remove Ubuntu from one of my HDD. I got rid of the Grub loader by booting on my windows system recovery disk and using Bootrec.exe/FixMbr and my computer now boots directly into windows. I then deleted the Ubuntu partition.

To get to the heart of the problem, I am trying to move the free space that is in the extended partition out and merge it with C. I tried doing this with my Gparted liveCD but it didn't work. I didnt have anything to save the error message onto, but I will try the process again when I get home and save the error onto my external drive so that I can post it here.

View 7 Replies View Related

General :: Shrinking / Resizing Partition Using Commands

Dec 1, 2010

I am a new user of Linux, and I actually had a task that is the ability to resize (specifically Shrink) storage of Virtual Machine, I was thinking that the best to start on is to know how to resize partition in linux using command line since our VM runs in Linux environment.

View 7 Replies View Related

Fedora Installation :: Shrinking Current Windows System?

Oct 31, 2010

I may require some aid in installing Fedora 13 (via a burned CD iso image) on a double boot system with Windows 7 as default. After going through the keyboard mapping and time-zone selection, I had the option of shrinking my Windows to accommodate Fedora, which I chose. The following selection appeared:

/dev/sda1.ntfs 0MB
/dev/sda2.ntfs 0MB
/dev/sda3.ntfs 0MB

If I try to decrease any of them, this communication materialises: Error: new size same as old size. So I canceled the installation set-up and rebooted Windows. I'm quite new to alternative operating systems (having used Windows all my life) and would appreciate a concise and legible answer.

View 3 Replies View Related

Fedora Installation :: Shrinking Of Windows XP Takes Forever In F14?

Apr 9, 2011

I hope somebody can find a solution for the following problem: I tried to install fedora 14 from the life cd on a Dell 6400 with windows XP already installed on it. During the installation process I wanted to shrink the ntfs partition of windows. The actual used size of the windows partition was well below the one I shrinked it to. But the shrinking takes forever ( + 7 hours ) and is still running, which does not seems normal to me. Any recommendations on how to proceed ( solve ) the problem? Processors are running at 99%, so it seems to perform some work. Can this process be cancelled, without harming the windows?

View 4 Replies View Related

Fedora :: Can't Find Free Space After Shrinking The Partition

Apr 26, 2011

I shrinked the /home partition using resize2fs command by 1GB and what had happened to remaining my free space .

View 1 Replies View Related

Ubuntu :: Shrinking Windows (ntfs) Partition Inside 9.10?

Jan 15, 2010

im trying to shrink my vista partition with gparted inside ubuntu. I run gparted (and yes i have ntfsprogs) but when i select the ntfs partition and select move/resize it brings up free space preceding... new size... and free space following.so when i input the new size the resize/move button greys out and when i change the freespace following it just puts back my original new size and back and forth.from what i have read i need to run the gparted livecd and go from there. is this true? i know how to do it with diskpart in windows, how to in ubuntu and eventually get rid of windows.my system is 64-bit. [URL]

View 5 Replies View Related

Ubuntu Installation :: The Incredible Shrinking Extended Partition

Oct 26, 2010

I have been attempting to set up a bunch of partitions on a bunch of hard disks, in preparation for installing Maverick. I will be setting up a number of RAID partitions, so I will install from the alternate disk (ubuntu-10.10-alternate-amd64.iso). Now ever since they added support for GRUB2 and a new partition type and align-to-megabyte and a whole bunch of other goodness, partitioning has been buggy. This has been true for Maverick and Lucid. Even the 10.04.1 version (an Ubuntu LTS!) still has problems. Every time I try something else, some other bizarre bug rears its ugly head. (Yes, I have been reporting them on Launchpad when I find a new one.)

In order to move forward on this project, I have been using a variety of partitioning tools. I temporarily installed Maverick on a small partition, and have used Disk Utility (palimpsest) and GParted while booted into that. Occasionally when things get really strange I boot up the latest version of System Rescue Disk, which contains the latest version of gparted. I use these various tools to try out various partitioning schemes, just laying out empty partitions that will be formatted or assembled into RAID arrays later. When I get all the desired partitions set up, I will boot into the alternate installer and do the final installation. (I don't want to do the entire thing within the alternate installer because it makes my head hurt. I do have a lot of partitions.) This has been going on for weeks now. Every time I try something different, something weird happens, and I have to try various workarounds, or switch to different tools. Basically, my partitions eventually become unstable.

Here's the latest mind boggler: Disk Utility displays nice graphical maps of your partitions. This image includes before and after screenshots showing what happens to my partitions occasionally. We start with three primary partitions and one extended partition. The extended partition goes all the way to the end of the disk. We put a small logical partition into the extended partition, at the beginning of it. We can then click on the "free" portion of the extended partition and create additional logical partitions if we like.

Afterwards, the extended partition has magically shrunk itself down until it is the same size as the small logical partition it contains. The free space has migrated out of the extended partition, and is now useless, as you can't have more than four primary+extended partitions. Disk Utility won't let you create another partition. What happened between the Before and After pictures? I don't know. I do know that I did not ever tell any tool to change the size of any partition. Moving or resizing partitions can trigger various known bugs, so I never even try to do that, I just delete partitions and start over.

View 3 Replies View Related

General :: Extending Root Partition By Shrinking VAR Space

Apr 5, 2011

I have serwer Debian with my website. My provider splited the disc into 5GB partition for / and 495GB partition for /var. Everything was going ok for over two years but now I don't have enough memory on /. I'd like to increase the partition but the problem is that /var is just next to it so I can't easily change the end of the first one. I need some safe solution. It might be even just shrinking partition for /var, adding new one after if it helps anyhow (I have about 450GB free memory).

Some outputs
Code: # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 5201536 5173904 0 100% /
tmpfs 1023464 0 1023464 0% /lib/init/rw
udev 10240 2672 7568 27% /dev
tmpfs 1023464 0 1023464 0% /dev/shm
/dev/sda2 478812280 10336484 444345032 3% /var
overflow 1024 4 1020 1% /tmp

# parted print
GNU Parted 2.3
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA ST3500418AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 512B 5369MB 5369MB primary ext3 boot
2 5369MB 500GB 494GB primary ext3
3 500GB 500GB 538MB primary linux-swap(v1)

View 2 Replies View Related

Software :: Mdadm Shrinking RAID5 Array From 6 To 5 Devices

Feb 15, 2010

I have a problem with my mdadm RAID. I wanted to know if anyone had any experience with shrinking RAID5 arrays. I was growing the array from 5 to 6 devices however the grow got interrupted and it has recovered to 5 drives. The 6th drive is toast and I am unable to re add it to the system. I would like to drive the device listed as "removed". I have tried mdadm /dev/md0 --remove detached and failed with no success. I am running Ubuntu kernel 2.6.28-11 and mdadm is v3.1.1.

Here is output of a "mdadm -D dev/md0"
/dev/md0:
Version : 0.90
Creation Time : Wed Jan 12 00:46:41 2009
Raid Level : raid5
Array Size : 4883812480 (4657.57 GiB 5001.02 GB)
Used Dev Size : 976762496 (931.51 GiB 1000.20 GB)
Raid Devices : 6
Total Devices : 5
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Feb 15 20:25:07 2010
State : active, degraded
Active Devices : 5
Working Devices : 5
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 64K

UUID : 74fa5199:84b88e81:4ae0fbae:92643084
Events : 0.1331010
Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
3 8 0 3 active sync /dev/sda
4 8 64 4 active sync /dev/sde
5 0 0 5 removed

cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdb[0] sde[4] sda[3] sdd[2] sdc[1]
4883812480 blocks level 5, 64k chunk, algorithm 2 [6/5] [UUUUU_]
unused devices: <none>

View 4 Replies View Related







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