Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
after so many years of happy hours with my Fedora 10, I decided to upgrade it with a bigger hard disk to accommodate more digitized music. I installed the disk and wanted to add it to LVM, because the old IDE disk was in LVM too. All went well during that session. Boldly I placed all bits into the LV and started to enjoy those terabytes. For some reason, I didn't quite have LVM idea in my head, so I moved all my music and videos to a directory I created on that big disk.
At some point I decided to reboot to check that everything still works after that! Well, it didn't!!
I was not able to boot as long as that big SATA disk was along in LVM!
Tried many times and still I cannot understand it. Probably initrd did not support SATA...?? So, as I was not fully aware of LVM altogether, I was not better aware of how to remove a disk from LVM. I had to do it using a rescue disk anyway.
Earlier I remember seeing text "LVM2 not supported" when viewing partition data of this disk in Gparted.
Now I am running the system with that old and small IDE disk and writing this message...
Currently, the big SATA disk is obviously without a file system. It seems to have a partition. I have already spent numerous hours studying alternatives, but all I would like to ask from you now is, is it possible that there is any data available in this disk? If yes, then how to get it out?
Before people start yelling at you for using F10, how about you get up to date ?. F21 is current and F22 will be out in a month or so ...
If you want real help you'll need to be (much) more specific than "I was not able to boot".
Where are you running gparted - on the F10 system, or using a liveCD ?. Try a current F21 DVD and see if it will recognise both disks in the vg.
Thanks for the hint!
I might consider installing a more recent OS once I get this most troublesome issue solved.
How to rescue the data (if anything available) from the SATA disk? I guess there is no way introducing the disk back to LVM without formatting and losing everything?!
If it was added already, it will have LVM metadata on it - a recent liveCD should have all the SATA and IDE support as well as LVM. It should recognise all the LVM entities for you, and mount it as well.
I believe a newer release will do better in all respects!
However, as I explained in my first post, I had added the disk into LVM and removed (reduced) it, to make the system bootable. However, I had not removed it in a proper way. I believe there is very little on that disk reminding of LVM once you have removed it?! Am I right?
We are specifically looking for information of your existing VG. As you said you made your new disk part of existing LVM setup we have to assume you added it to the same VG. It will be good if you can share the output of the following commands:
Hello,
yes indeed I did, VolGroup00, if I remember correctly.
I had also another SATA disk there too. I left it out of the description to make it look maybe less complex.
I will provide the output of those commands in the evening when I am at home. My time is now 10:50.
All I can say at this point regarding those commands is that they will most probably only tell about current configuration, which includes just one small IDE disk. I suppose all information about the interesting configuration involving that big SATA disk is in one LVM archive file.
Yes, vgs, lvs and pvs will display stats about the current stuff, we haven't seen your system so it is always good to have that information handy when assisting with such issues. vgdisplay and lvdisplay should report discrepancy incase you haven't removed lv properly, let's see. Last command is to make sure that there is nothing showing up under /dev/mapper related to the lv you deleted.
lvdisplay
=========
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID OiJx9U-oSOX-vKVo-hTTM-BmMR-E4oi-7aPAMW
LV Write Access read/write
LV Status available
# open 1
LV Size 229.69 GB
Current LE 7350
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID psguY9-0QmF-S58p-Iowo-Sz1c-iQja-lW4pxj
LV Write Access read/write
LV Status available
# open 1
LV Size 2.97 GB
Current LE 95
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
vgdisplay
=========
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 32
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 232.69 GB
PE Size 32.00 MB
Total PE 7446
Alloc PE / Size 7445 / 232.66 GB
Free PE / Size 1 / 32.00 MB
VG UUID Yc5AQm-23OO-0Rs5-tw7R-HzdR-iOcy-K2e0Ev
ls -al /dev/mapper
==================
total 0
drwxr-xr-x 2 root root 100 2015-04-27 17:12 .
drwxr-xr-x 15 root root 4800 2015-04-27 17:13 ..
crw-rw---- 1 root root 10, 63 2015-04-27 17:12 control
brw-rw---- 1 root disk 253, 0 2015-04-27 17:13 VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 1 2015-04-27 17:12 VolGroup00-LogVol01
Here is also that archived VolGroup00 metadata with that problematic SATA disk:
===============================================================================
# Generated by LVM2 version 2.02.39 (2008-06-27): Tue Apr 7 22:43:25 2015
Looking at the output it appears that the new disk has been removed from LV properly. If it wouldn't we would have got some error related to LV in vgdisplay or lvdisplay, however, those are clean so it is good.
From the output you shared it appears that your first disk is connected to IDE port 1 on motherboard but is on second bus as I can see it is denoted by sdb instead of sda. Not sure if that is causing the problem in booting. Here is what you can try:
1. Connect new hdd the way you connected before, boot using live CD and try to mount the partition from new HDD on /mnt or any other newly created directory (make sure the directory is empty on which you are mounting the partition).
2. If 1st doesn't work then try to put your old hdd on port where you are connecting new hdd and connect new hdd on the port where you had old hdd connected earlier. Go with normal boot and see if it works.
3. If point 1 and 2 fails try booting with live CD without changing anything (without changing disk position) and see if you are able to mount the partition from new HDD and can get data off it.
4. If above all fails, if possible, get a databus put it on secondary IDE port on motherboard. Connect old hdd to where it was connected before. Connect new hdd via new data bus.
BTW, to create a F21 LiveCD, do I need a more modern system? I don't seem to find any site offering an iso and creating one does not succeed so far.
You can download Fedora 21 live CD / DVD from official Fedora site, you can burn it onto DVD using PowerISO. If your system is capable of booting via USB then you can use live DVD to build liveUSB using unetbootin. Here is the link to get UNetbootin: http://unetbootin.sourceforge.net/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.