Software :: Removing Broken Disk From LVM2
Jun 14, 2010
I had a 400GB hard drive fail on me today that was part of an lvm2 logical volume made up of it and 3x1TB hard drives. I did a partial mount of the lv to assess the damage, and it wasn't bad. All the important stuff is either on the other disks or backed up. So, I want to reduce the lv and remove this disk from the vg.
View 2 Replies
ADVERTISEMENT
Sep 14, 2009
My Linux OS is mounted on a LVM spread across an 8GB SD Card and a 4GB Flash Drive. I've used about 6GB and have about 2.xGB left. I'm trying to download Sabayon and I don't quite have enough space to store DVD size ISO. I have extra 2GB Flash Drive that I am not using and can converted to a PV and that would give me the necessary space I need to store the ISO. Now the ISO would spread from 4GB Flash to my 2GB Flash. My question is complicated, so bare with me. I want to know by adding 2GB PV into LogGroup and then remove it from the same LogGroup and then added back later. Would the data still exists and accessible? What happens to the data when I remove it the first time, would be automatically deleted, or stay hidden to plug back in?
View 4 Replies
View Related
Feb 9, 2011
This is my specific solution to my specific problem. After updating to Squeeze from my prior Lenny distro (amd64 with whole disk encrytion using LVM2, dm-crypt, LUKS) everything went well - at first. I was duped like so many, thinking that all was well and I could remove the legacy-grub (aka: Grub1) and just use grub-pc (aka: Grub2). As soon as I removed the legacy-grub and rebooted my laptop, I was confronted with:
GRUB Loading stage1.5 GRUB loading, please wait..Error 15 At this point I wasn't sure if it was a Grub problem or a deeper encryption problem - especially after reading that some people had missing packages in Squeeze (lvm2, dm-setup, initramfs-tools, etc.)
Okay, the solution for me.
1. download and burn to disk: debian-live-6.0.0-amd64-rescue.iso[URL]..
2. scroll to and press enter/return on: text rescue
3. choose a root directory - for example: /dev/blah/root (I wrote down the list of possible /dev/.... for reference - this helped me remember where and what I had partitioned in Lenny)
4. choose: Execute a shell in /dev/blah/root
5. once in the shell, I discovered I needed to mount a few of those partitions that I had written down in order to get access to grub-probe, update-grub, grub-install, etc. You may not have to if your partitions are minimal. I you need to use other partitions, type (for example):
[Code]...
View 1 Replies
View Related
Dec 17, 2010
Came across a broken link during updating system (Python). So I came across advise which I followed and though I had fixed the problem by removing the broken (python) Only to find I no longer have access to the Desktop.
This is what I have done so far:
Booted to Recovery
Logged in as the user.
Ran the following to reinstall desktop:-
sudo apt-get install ubuntu-desktop
All seem well, but now it wants conf. So I have ran the following after rebooting:
sudo dpkg --configure -a
But still no joy, as when the system reboots it stops at the splash screen desktop ubuntu and seem to be trying to boot to the desktop. But no joy.
View 9 Replies
View Related
May 18, 2011
We have a centos 5 instance running as a virtual machine on vsphere 4.0, which has a number of virtual disks presented to it. We need to remove these virtual disks from the system without rebooting it, but have had no luck searching VMware's KB or the internet for solutions to the issue. It seems we can strip the disk of all it's partition information, then remove it from the system in VMware, but /var/log/messages still reports scsi errors when running fdisk against the said disk. There is also a folder with the deleted disk's name (e.g. /sys/block/sdp), after the disk has been removed and the host bus has been rescanned. Is it even possible to completely remove disks from linux without a reboot?
View 1 Replies
View Related
Aug 17, 2010
when it comes to disk and volume management in linux, I'm attempting to install a new 1TB disk to remove the current 250GB disk, the system also has a 37GB disk.
What I did was that I added to new 1TB disk to the system with the LVM tool, I added it with a mountpoint of /storage2. Then I removed the old disk with the LVM tool and moved it's data to the remaining disks (the 37GB and the new 1TB) with the LVM tool.
Everything looks ok so far.
When I reboot with the old 250GB disk still in the system it's all fine. But when I remove it, the system won't reboot. I get to the point of where the fedora screen usually turns up.
The old disk had 2 partitions, the new one has only one, I'm starting to think there's something in there causing the issue? Can't load that big partion at boot or something?
If I'm missing to fill in some details, just ask and I'll try to answere. I now has the old disk back in the system to be able to boot.
View 3 Replies
View Related
Nov 7, 2010
my computer screwed up and the MBR or GRUB was screwed up, so I got my Windows 7 repair disk and repaired the MBR. Then I needed grub back so I could boot into Ubuntu so I went and looked for something to just install grub and found this Auto Super GRUB Disk (ASGD) thing. So I installed it and then it appeared on the windows boot manager menu when I started up and I went into it and installed grub again. Then when I booted back into windows, it asked me if I wanted to remove ASGD and I clicked yes. Ever since, the ASGD entry has not been removed from my boot menu for some stupid reason. What happens is the computer starts and goes into GRUB which is what I want and then if I go into Windows 7, it will then come up with another menu asking whether to boot into Windows 7 or the ASGD, even though ASGD isn't there anymore. I can still boot into windows, but this extra menu that comes up every time is starting to **** me off. I've tried EasyBCD and the entry does not come up on there.
View 5 Replies
View Related
Nov 19, 2010
First of all, the title is wrong. It's supposed to say "broken Ubuntu installation", not USB. Okay, so I have read a dozen threads, but none of them have offered me a solution: I was supposed to install Ubuntu 10.10 alongside Windows. I got stuck on the keyboard selection screen, and had to abort and install again. Then I booted from the Ubuntu USB and used GParted to delete the broken Ubuntu 10.10 installation, and the swap associated with this. The next time I rebooted, GRUB 2 was gone. I got a saying:
Code: error: no such partition grub rescue> A lot of searches on Google has not been satisfying, and the most results I get are "How to fix GRUB 2 after installing Windows", which is not my problem. I tried some of the "solutions" I found, most of them did nothing, but I did
[Code]....
View 8 Replies
View Related
Aug 12, 2010
I've got an 8-disk raid-5 setup, and one of the disks failed. I shut the system down, replaced it, and powered the box back on again. Then, I made a catastrophic mistake; I 'failed' and removed the wrong disk (should have been sdj1, and I typed sdk1 by accident). I tried to re-add sdk1 back to the raid array, but it got listed as 'spare'. My raid array is off-line, since I now have 2 disks unavailable.
I know that the data still exists on sdk1, is there any way I can get the raid array to recognise the fact that it's a valid part of the array, and not a spare disk? At least if I can do that, I'll have a degraded but accessible array, and then I can rebuild the array on the properly replaced disk.
View 7 Replies
View Related
Mar 22, 2010
A while ago my harddrive kinda failed. I didnt notice untill I got "Grub error 17" one time when I was trying to boot my computer. The problem is not really that I couldnt log on to my computer, but rather that I have alot of important information on the computer I would hate to lose. At the time I used Ubuntu 8.04 and had reiserfs filesystem on the computer. I bought a new computer and decided to wait untill I could rescue the data before doing to much dmg to it. But I dont really remember if I tried something to fix it before I realised that it was the harddrive and bad sectors that made me get gruberror 17. Hopefully I didnt do anything.
Anyway. Now today I had some extra time, so I decided to dive in. I booted from a linux mint disk and used ddrescue to transfer all the rawdata over the network to an image file laying on an ext4 drive. Once there I used reiserfsck to try and repair the filesystem. After that i mounted the image file and tried to access the files. Thats where the probelms started. I could see the whole treestructure of the harddrive and everything seemed ok, but when i tried to open the files, none of the pictures, documents and so on could be opend, and when I tried to open stuff like MP3 files they played quite strange. Videofiles was really messy, kept changing resolution and was almost always just gray and green squares on the screen. I decided to use ddrescue and move the files from the image file and on to a clean disk. So when I was done I could mount the filesystem on the new disk, but with the same resault, so I did reiserfsck again, and when that didnt help I did a buildtree also. Still with the same resault. So I decided to investigate the data abit. Opening files at random trying to understand what had hapend. And I saw that some MP3 files (the easiest to open) was some kind of mixing between several difrent mp3 files. Some files wasnt even in the same folder, so it was probably just that the file pointer was pointing at the wrong data on the disk. I dont know how that works really, so I dont know how to go on.
So now to the question. How do I get the data back? Have I done something wrong, can I redo somethig? I still have the broken disk and can take data from it once again, but I want to wait to do that untill I really know what to do. I also still have the image file, and the disk with the copied data. I have a ubuntu 9.10 system at my disposal atm.
View 5 Replies
View Related
Dec 27, 2010
I suspect that one of the disks is broken in my lvm setup. I need help verifying this. The only trouble is that everything looks okay in my eyes.
When i try to mount the logical partition. The system hangs.
"mount /dev/fileserver/media /var/media"
I have tried locating the problem without success. The same with a live cd.
Here are some of the commands i have run:
http://pastebin.com/gYyJtUvQ
View 8 Replies
View Related
May 9, 2011
I tried to upgrade my Ubuntu 10.10 to 11.04 on my netbook. I choose the option to upgrade on the Update Manager. All packages had been downloaded, and the installer was busy to replace all the old packages.
During the update I noticed that my internet stopped working, so I disabled my wifi, so it couldn't interupt the upgrade. After a half an hour, I found out my internet worked again, so I pressed the wifi-button again on my laptop, so the wifi would turn on, but after that move my screen hanged, and the upgrade wasn't done yet. I pressed the powerbutton for 5 seconds, because there was nothing else I could do.. Everything just hanged, no mouse movement, no hard disk activities, just a frozen screen.
After this problem I rebooted, and I already knew what I was going to see, Ubuntu couldn't be loaded anymore (and it still can't).
Is there anybody who can help me to restore my laptop? There are really important things for college on the harddisk in the /home/ folder, but I was too stupid to forget to make a backup.. I mostly make backups of everything you can think of, but I thought it won't be neccessary.. damn..
I know that you can restore files using a live-usb (no cd, because it's a netbook), but I choose during the installation the option to 'encrypt' my documents.. So is it still possible to restore my documents, photo's etc. from the home-folder? I really need to get those things back..
When I try to boot all I get on my screen is the text (in Dutch): 'Disk partition / is not ready or is not found - Keep waiting or press S to cancel mounting, or press M to recover manually' The manual recovery doesn't do anything at all, and by the way, booting in the 'recovery mode' won't work either.
View 4 Replies
View Related
May 31, 2011
I know a bunch of commands and I am comfortable using the terminal, I even set a powerpc server but I can't figure out how to remove epiphany on this new computer I'm setting up. I didn't install anything with tasksel. I installed gnome and xorg afterwards... I load it up and 'startx' just fine. then I check around for the programs that were installed. I lik'em gimp, lot's of utilities. gedit. anyway I find epiphany, which I have already established that I dislike, I immediately go to the root terminal (another nice program that comes with gnome) and type apt-get remove epiphany-browser-data the output says it will be deleting gnome... however I have researched and found these are simpy meta packages that don't really matter.... however under the section that states all the packages that will be removed by autoremove there is a huge list... I doubt these packages are safe to remove. how to remove epiphany without removing a huge amount of probably needed software
View 14 Replies
View Related
Feb 27, 2011
what i did was, remove evolution mail from synaptic, what i wanted to do was just remove the indicator applet from the task bar. i read a bunch of bad stuff about removing evolution from synaptic vs just removing the applet.
im worried. did i break anything or put my security at risk. after, i used a command (older) (sudo apt-get install ubuntu-desktop)to install ubuntu desktop. because i thought that it would fix evolution. then i went to synaptic and installed a package called evolution. i rechecked evolution in applications menu. however, i notice that i have both a checkable evolution and two evolution icons. nothing 'seems' broken. im not sure if it ever was. and evolution calender pops up as normal, as does the the installed plain evolution. they both seems to be an exact copy of the other.
all i really wanted to do was remove the indicator applet. did i make a serious mistake. since ive had ubuntu, ive reformatted a lot because i was worried i made a mistake of some kind. however now im into the more "make a mistake and fix it stage' as im pretty happy with my current desktop and have worked hard to customize it. the command, sudo apt-get remove indicator-messages removed the mail icon. i still am worried that i broke something, or put my security at risk. also, now i have two mail icons. evolution mail and calendar, and another just called evolution.
View 1 Replies
View Related
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
May 21, 2010
i'm running debian lenny - latest stable i have recently installed smartcam (mobile phone as webcam over bluetooth) from .deb package , get errors of unmet dependency , but application works like a charm, unfortunately broken dependences block my aptitude , i cant fix them either as latest stable use older versions of dependences even in backports... how do i mark smartcam package as not broken and release my apt?
View 8 Replies
View Related
Nov 26, 2010
I have a working Fedora14 system. /boot is on sda1.
Here is my system:
Code:
I would like to install Grub2 to have /boot in LVM2 as well. Is there a guide for it or can someone help me with this task?
View 5 Replies
View Related
Jan 7, 2011
I recently installed fedora on my system along with windows in a dual boot unfortunately, the fedora partition is too big and is taking 80% of my disk space. lvm2 volumes are not recognised by windows so i decided to shrink my fedora lvm2 partition and create a new fat32 partition to store common data. i tried gparted from my ubuntu 10.04 CD but it was unable to resize the partition can someone suggest to me a GUI tool which could do the the resizing of an lvm2 partition?
View 1 Replies
View Related
Feb 7, 2011
I have ubuntu installed on 2 hdd. one of my hdd is having a lvm. I am unable to acess the home partition created in this lvm from my other hdd. in fact it is not shown at all inside the explorer window, the whole lvm block itself. if u run disk utility that also does not show the lvm partitions as mounted. So what are the steps required to be done to access those LVM partition from the other disk.
View 1 Replies
View Related
Mar 18, 2011
Preface: I have just bought two new WD20EARS hard drives and have added them into my LVM and moved all my data from my old failing seagate drives to my new drives. I also have a WD10EARS in the LVM.
These are WD Caviar Green Power 4K hard drives.
Using Ubuntu 10.10 64bit and LVM2, everything is working but I want to know if I can tweak it for more performance. I am relatively new.
Questions:
1. How can I check if the 4K drives are aligned?
2. How can I check what block size LVM is using?
3. I didn't partition one of the WD20EARS when adding it to a LV, will this be problematic or effect performance? Can I partition it without losing the data that is on it now?
4. I heard XFS is better than EXT4 for large files and people tend to suggest using certain formats when they're talking about LV's, if I check the format of any of the hard drives it says they are lvm2...?
View 5 Replies
View Related
Jun 26, 2011
Recently I have upgraded my home file server from ubuntu 10.10 to 11.04. I found my LVM+RAID5 does not work any more. Here are stuff I have explored so far
$sudo lvdisplay
--- Logical volume ---
LV Name /dev/fsvr_main/var
[code]....
I don't know where /dev/md1p1 come from and why /dev/md1 is not recognized by lvm any more.
View 5 Replies
View Related
Feb 20, 2010
Can someone help me understand by giving me the commands I need in order to shrink my "debian-home" logical volume by 10GBs and increase the size of my "debian-root" logical volume by that same 10GB of data? (Everything in that computer is ext4 including the /boot ... physical volume? (I think that's what it's called))I would REALLY appreciate it if someone could just give me the exact or approximate terminal commands that I would need to use. I assure you, I will never forget them
View 4 Replies
View Related
May 11, 2011
I did all the fsck, resize2fs, lvresize, pvresive, parted, etc. stuff and was very careful about what I was doing, but clearly wasn't careful enough. I did backup lv_root to another drive with fsarchiver before I buggered things up, but I can't restore it because, well... I don't know! At this point I'd really just like to wipe the drive I messed up except for /boot and start over but I don't know how to do that when the system seems to think the drive is mounted when it ISN'T.Here's some info:- device is /dev/sdb with sdb1 as /boot and sdb2 a lvm2 volume group containing lv_root and lv_swap -- it was a default Fedora 11 installation that used up the whole drive- i did nothing to /boot and it seems to be fine, grub loads, choosing Fedora 11 shows the logo but quickly becomes a black screen, choosing Fedora 15 Live USB that I originally added from Fedora 11 works just fine (currently trying to fix things from Fedora 15)- i deleted and recreated lv_swap and it still shows up in /dev/vg_box- i shrunk lv_root and the filesystem is within the right size of the lv, which is within the right size of the pv, which is within the right size of the partition, which i made sure i used the right sectors, but lv_root does not show up in /dev/vg_box.
- lvscan says both lv_swap and lv_root are active but lvdisplay says lv_root is "NOT available"- system thinks /dev/sdb2 is mounted even though it ISN'T and can't seem to do ANYTHING to it because of thislvchange -ay /dev/vg_box gives:
Code:
device-mapper: resume ioctl failed: Invalid argument
Unable to resume vg_box-lv_root (253:2)
[code]....
View 3 Replies
View Related
Jun 21, 2010
Yesterday I had a functioning system but needed to do an reinstall of ubuntu because of missing dependencies. Then I installed /dev/sda5 as normal (no lvm) When I ran vgchange -ay after installation it did not find my missing logic volume. Instead got a whole bunch of error messages. I googled and followed the advice below vgreduce --removemissing UBUNTU. I did this vgreduce command because when running pvs I got /dev/sda5 unknown device.
Read LVM HOWTO, but I dont understand this part. How can I know which pvs belongs to which LV "Use pvcreate to restore the metadata: pvcreate --uuid "<some_long_string>" --restorefile /etc/lvm/archive/VolumeGroupName_XXXXX.vg <PhysicalVolume>" below:
Code:
View 3 Replies
View Related
Jan 4, 2011
Running 'zypper install lvm2-clvm' results in a message: Resolving package dependencies... Problem: nothing provides libcpg.so.2()(64bit) needed by lvm2-clvm-2.02.45-16.2.x86_64 Solution 1: do not install lvm2-clvm-2.02.45-16.2.x86_64 Solution 2: break lvm2-clvm by ignoring some of its dependencies So it cannot find the cpg library, which appears to be a part of openais (if I believe google). I have configured the following repositories:
[Code]....
What could be the problem here? Am I just missing a repository or is cluster LVM not supported on opensuse 11.3?
View 9 Replies
View Related
Jul 16, 2011
I've got three disks together on a *home* server that constitute four LVs.The two are the root and swap LVs installed by the Ubuntu 10.04.2 LTS installer on the OS drive (250 GB VG: Beta). The third & fourth LVs I made of two physical volumes (640 GB and 200 GB VG: Data) and mounted each inside /torrent. All are ext4.
I'm migrating lots of large files from /home to inside of /torrent, but I'm seeing EXTREMELY slow speeds (700KB/s).I'll admit this is my first time using LVM, and I tried it only because of the numerous smaller drives I have sitting around that weren't getting used. I didn't expect such a large drop in speed.
Here's a more technical review of the setup:
Code:
me@Beta:~$ sudo pvdisplay
[sudo] password for me:
--- Physical volume ---
PV Name /dev/sdb
VG Name Data
[code]....
View 5 Replies
View Related
Sep 15, 2010
Are there any maximum amount of logical volumes a LVM2 volume group can contain?
View 1 Replies
View Related
Jan 27, 2010
I had a raid 5 + lvm 2 array and lost a disk. While it was recovering the array, the power was down and recovery stopped. When I recovered the power and start the machine the array was unable to start, it was degraded and the states were different between disks. Every disk watched the array in a different way. I put you the states:
Quote:
/dev/sdd1
Number Major Minor RaidDevice State
this 0 8 33 0 active sync /dev/sdc1
[code]....
The first part in /dev/sdc1 is the same for all the devices, I just post you the states. Another thing is tha all the devices say that there is no superblock It seems that 3 disks are "active sync" but the states of the others doesn't match between them. And /dev/sdd1 is spare, the disk I added manually at first to start the recovery process.
View 3 Replies
View Related
Feb 11, 2010
I'm going to be using LVM2 to mirror 2 250GB drives for redundancy and fault-tolerance. As per the best docs I have found on mirroring [URL], I am going to keep the log file on a separate physical volume, however I can't seem to find anywhere a good reference for how much size I need to save for the log file. Everything says "small," but "small" doesn't really help in the real world :-).
I have plenty of space on the 3rd pv but want to leave as much of it as possible for other stuff. Should I leave 32MB ? 500MB ? 1GB?
View 1 Replies
View Related
Oct 13, 2010
I've a VG that contains one LV which consists of several PVs in a concat. Now I want to pvmove the whole construct to a new set of PVs in one step! Of course I could move PV by PV but is it possible to move them altogether?
View 2 Replies
View Related