Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
root@atraina-alfdrp:~# pvcreate /dev/sda4
Physical volume "/dev/sda4" successfully created
However I would suggest a "pvremove /dev/sda4" because the "Type" on sda4 is not correct.
/dev/sda4 134215680 210247679 38016000 83 Linux
should look like this...
/dev/sda4 134215680 210247679 38016000 8e Linux LVM
...then do the "pvcreate /dev/sda4" again.
Now this points to a different problem....
root@atraina-alfdrp:~# vgextend atraina-alfdrp /dev/sda4
Couldn't find device with uuid uY5OiE-xRpo-jYXL-VdLq-PgwA-E2BP-dbej3C.
Cannot change VG atraina-alfdrp while PVs are missing.
Consider vgreduce --removemissing.
I would suggest you post the output of "pvs" and "vgdisplay -v /dev/atraina-alfdrp", then consider running the command that the error gave you.
From the 'vgreduce' Man Page (RHEL5)
Removes all missing physical volumes from the volume group, if there are
no logical volumes allocated on those. This resumes normal operation of
the volume group (new logical volumes may again be created, changed and so
If this is not possible (there are logical volumes referencing the missing
physical volumes) and you cannot or do not want to remove them manually,
you can run this option with --force to have vgreduce remove any partial
Any logical volumes and dependent snapshots that were partly on the miss-
ing disks get removed completely. This includes those parts that lie on
disks that are still present.
If your logical volumes spanned several disks including the ones that are
lost, you might want to try to salvage data first by activating your logi-
cal volumes with --partial as described in lvm (8).
You're welcome! Glad we got it to work! <highfive>
Originally Posted by stevenl
However looking at /dev/sda4, it is showing id 83 and Linux system instead of Linux LVM. Is this correct?
Well, I agree that it should be 8e instead of 83 (which I mentioned back in post #19).
I don't think there will be any bad side-effects to changing the Partition ID after it's in use, however it would have been safer to change the Partition ID before the partition was added to the volume group.
You can use the 'fdisk' command to change the partition types.
if you 'fdisk /dev/sda' and hit 'm', you should see the command needed to change the partition type. Just set sda4 to 8e, and then you should be good.
(At this point, it's mostly to stop confusion on your part, and make sure any tools you use in the future properly identify that partition as being under Linux LVM control).