System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Linux Fdisk shows error for LVM created disk.

Gulam Mohiuddin
Regular Advisor

Linux Fdisk shows error for LVM created disk.

I used LVM to configure new IBM RAID drive into the system. I didn't use fdisk to initialize the disk.

But when I run fdisk -l - I get the following error:

Error: Disk /dev/sdc doesn't contain a valid partition table

Followings are the all the steps I used for Configuring LVM disk on RHEL 4.0

partprobe
pvcreate /dev/sdc
vgcreate VolGroup01 /dev/sdc
lvcreate -L 30G -n LogVol02 VolGroup01
mkfs -t ext3 /dev/VolGroup01/LogVol02

Also What is "/dev/mapper/VolGroup01-LogVol02" shown in the output of df command?

Thanks,

Gulam.
Everyday Learning.
2 REPLIES
Karthikeyan.j
Frequent Advisor

Re: Linux Fdisk shows error for LVM created disk.

HI Gulam

That error is usual when there is no filesystem in the new disk
if the fileystem was created usin fdisk u will not get this error .
And for output as /dev/mapper/... its thelinux lvm mapper driver loaded in linux .

Regards

Karthik :)
Ivan Ferreira
Honored Contributor

Re: Linux Fdisk shows error for LVM created disk.

Considering this information (not error):

Disk /dev/sdc doesn't contain a valid partition table

And this information:

PV /dev/sdc VG VolGroup01 lvm2 [279.39 GB / 249.39 GB free]

That means that the while disk (sdc) was used as an LVM physical volume, without creating a partition 8e on it, it's perfectly valid.

And /dev/mapper/VolGroup01-LogVol02 is mounted on /u03, the line was cut because was too long, that's all. Use df -P if you don't want to cut lines.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?