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


ADVERTISEMENT

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

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 :: Removing Notifications And Safely Removing Drives?

Aug 25, 2010

These should be my last pleas for help with regard to Fedora 13. I've been unable to turn off the notifications that appear in the top right corner, despite a decent amount of searching on google. I can't remove any notifications package without removing a bunch of important software along with it. Also, F13 refuses to "Safely Remove" either of my external disks. I have to yank out the usb cord, touching wood each time.

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

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

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

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

Ubuntu :: Safely Removing Partition

Feb 11, 2011

I have a 32-bit laptop running a dual boot with Windows 7 and Ubuntu 10.09 LTS.I've decided that Ubuntu just isn't for me, and I want to remove the partition and restore the extra hard drive space back to Windows 7.

Now, a few months ago, I accidentally deleted my Ubuntu partition through Windows Disk Management, and I ended up not being able to boot up my computer. I can't remember what the exact cause was, but I think it was a problem with the GRUB, and I think I fixed it by reinstalling Ubuntu. Does anyone know how I can safely remove the Ubuntu partition without having to go through all this again?

View 1 Replies View Related

Ubuntu :: Desktop Safely Removing Ext Hdd

Apr 12, 2011

Cannot safely remove Western Digital 2TB ext hdd. When I right click on drive to unmount, it says: "Unable to stop drive, This file cannot be stopped" Anyone know how to unmount, maybe using the terminal??

View 7 Replies View Related

Debian :: KDE - Removing Unwanted Apps Safely?

Dec 1, 2010

I've just installed Squeeze with KDE. I was wondering what is the best way to remove some unwanted apps without breaking everything (I want to get rid of Kopete and a few other apps like Dragon Player as I don't use them)?
I tried to: apt-get remove kopete
but it said it wanted to remove a whole bunch of other stuff as well. (I'm a recent Fedora convert).

View 2 Replies View Related

Fedora Installation :: Safely Removing Gnome

Jun 15, 2011

I've been using Gnome for several years and haven't had any real problems with it. Now, however, I find the descriptions of what Gnome 3 and the Gnome Shell quite unsettling. That is, the Gnome devs have added a number of things I don't want, removed things I do want and made it impossible to configure Gnome 3 to work anywhere near what I want without adding unsupported third-party extensions. (Note: this is neither a complaint nor a flame; it's just a statement of my personal taste and any attempts to argue about it will be ignored.)

Currently, I have installed XFCE and am very happy with it on my two F14 boxes. I know that if and when I move to F15 (or F16 if 15 continues to be as problematic as it is so far) the upgrade will include Gnome 3, even though I don't use it. I'd like, therefore, to remove it but without removing any bits and pieces of it that are needed by whatever programs I'm using. What's the safest way to do this?

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

Debian Configuration :: Safely Removing Mounted USB Device

Jan 7, 2011

I'm not sure if this is a bug in Squeeze beta 2 or if it's something I've overlooked. I have a Maxtor 250 GB external USB drive that I use for backups. It gets auto-mounted fine, always in the same place, and from my normal user account I can write to it, even delete directories on it if I want to. But when, from Gnome, I select the "Safely remove" option, I get an error to the effect that it can't stop the device. The weird thing is that the thing actually *is* unmounted. I've checked the mount point and it's no longer there.Is there some package I maybe should've installed but haven't? I'm not really worried about data loss, since I'm sure the drive wouldn't unmount unless it was properly synched; it's just the error message that bugs me.

View 2 Replies View Related

OpenSUSE Install :: Removing Alt Installed Kernel Safely

Oct 9, 2010

Hoping for some verification before I proceed.An alt kernel was installed side by side with the current mainstream kernel during an experimental NIC driver install. Unfortunately, since the experiment failed I would now like to remove all traces of the alt kernel since it was given a version ahead of the current main version and I would like to avoid all possibilities of contention should a future kernel upgrade use the experimental alt kernel's version number.

View 9 Replies View Related

Software :: Removing Mounted Drive Folder Safely

Dec 3, 2009

I have a nightly scheduled script which creates a $vhostname directory under /mnt, mounts a windows box pointing to /mnt/$vhostname then rsyncs (pulls) some files/folders from the mount point. After this, I want to unmount the drive and remove the /mnt/$vhostname directory. Problem is that removing the /mnt/$vhostname directory sometimes ends up deleting all the files on the source! Example of script (stripped out lots of superfluous stuff):

Code:
vHOSTNAME='testhost'
vRSYNCFLAGS='-ahvz --inplace'
/bin/mkdir -p /mnt/${vHOSTNAME}
/usr/bin/rsync ${vRSYNCFLAGS} /mnt/${vHOSTNAME}/KAVSHARE /backups3/${vHOSTNAME}/
/bin/umount -l /mnt/${vHOSTNAME}
/bin/rm -Rf /mnt/${vHOSTNAME}

It seems that my umount line isn't disconnecting the mount, leaving the following line to literally delete all directories, recursively. Is there a way of safely just deleting the directory (ie: mount link) without linux accidentally trashing the whole source?

View 3 Replies View Related

OpenSUSE Hardware :: Oddities With Ejecting CD / DVDs And Safely Removing USB Drives

Jan 10, 2011

Failure to safely remove the USB with the following techniques:
1) umount /dev/sdd and I get the error "umount: /dev/sdd is not mounted (according to mtab)"
2) dolphin > right click the drive icon > safely remove: I get the error message "org.desktop.Hal.Device.Volume.UnknownFailure: Cannot open /media/.hal-mtab"
3) konqueror: sys:/info > click the drive eject button (nothing happens)
4) device notifier > click the drive eject button : I get a ERROR in Plasma Workspace that says "Could not unmount the device. One or more files on the device are open within an application" ... NOTE: this will happen on a fresh reboot with the folders of the USB never accessed, much less files being open on it.I have also noticed something similar when dealing with cds/dvds.... seems like I can only eject on a reboot.

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

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

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

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

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

Red Hat / Fedora :: Boot Failure In 15 After Removing Unused LVM Volume?

Jul 18, 2011

So what happened is i had a small encrypted lvm volume that i no longer need because I have bought an external HDD and used truecrypt on in. So after I transfer all the files off of the encrypted partition, I restart and drop into single user mode and remove the unneeded volume. When i attempt to restart, instead of going to the login screen, when the boot progress bar is full, it says "welcome to emergency mode: enter rootssword for maintenance or press control D for normal mode" or something along those lines. I tired control+D, but that just brought me right back to the emerengy mode screen. I put in my root password and tried startx, but then x gave me this error: "can not start D-bus, can you call q-dbus?". After that i tried both "service dbus start" and "dbus-launch", both of which failed. Is there any quick remedy to this situation, or do i have to reinstall

View 4 Replies View Related

Ubuntu Multimedia :: Volume Manager Disappeared After Removing PulseAudio

Jan 10, 2010

Is there any way to have Volume Manager in systray without PA?

View 5 Replies View Related

Ubuntu Multimedia :: Enable A Volume Bar With Esound (after Removing Pulseaudio)?

Jan 10, 2010

My OS is Ubuntu 9.10 64bit. I have been having problems with audio in several of my applications - all of which were fixed by removing Pulseaudio and installing Esound. After uninstalling pulseaudio, there is now no volume bar in the notification applet on my desktop panel.

In addition to this, my volume keys on my keyboard (Lenovo Y550 Ideapad) no longer work. Is there an application I can install that will put a volume bar back on my notification panel (using Esound)?

View 9 Replies View Related







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