Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I can't create this partition, I'm getting this error shown below:

Device /dev/mapper/vg_paperino-lv_rootp1 not found (or ignored by filtering)

Below are the steps that I'm doing on CentOS:

[root@pippo ~]# fdisk /dev/mapper/vg_paperino-lv_root

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help): p

Disk /dev/mapper/vg_paperino-lv_root: 18.8 GB, 18832424960 bytes
255 heads, 63 sectors/track, 2289 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xdb344dbe

                          Device Boot      Start         End      Blocks   Id  System
/dev/mapper/vg_paperino-lv_rootp1               1           3       24066   83  Linux
Command (m for help): q
[root@pippo ~]# pvcreate /dev/mapper/vg_paperino-lv_rootp1
Device /dev/mapper/vg_paperino-lv_rootp1 not found (or ignored by filtering).
share|improve this question

1 Answer 1

Yeah that's not a normal partition. It's created by pvcreate after you've assigned some either whole disks or partitions from a disk to a logical volume in LVM.

Say you have 2 partitions, /dev/sda1 and /dev/sdb1.

First you label them as LVM partitions:

pvcreate /dev/sda1 /dev/sdb1

Then add them to a volume group:

vgcreate new_vol_group /dev/sda1 /dev/sdb1

You can confirm this with the vgs command:

# vgs
  VG            #PV #LV #SN Attr   VSize  VFree
  new_vol_group   2   0   0 wz--n- 51.45G 51.45G

Then create the logical volume:

lvcreate -L2G -n new_logical_volume new_vol_group
  Logical volume "new_logical_volume" created

Then create a file system on the logical volume:

mkfs -t ext4 /dev/new_vol_group/new_logical_volume

Then mount it:

mount /dev/new_vol_group/new_logical_volume /mnt
share|improve this answer
    
What you're trying to do doesn't make sense. You can't fdisk the LVM volumes, they aren't MBR partitions. Your use of fdisk seems wrong to me here. Can you please expand your question with exactly what you're trying to do? Please give each step! You could run fdisk on the partitions added to the LVM for example. They should be showing up as "8e - Linux LVM" partitions. –  slm Jun 2 '13 at 18:40
    
mondoinformatico.info/… pvcreate /dev/sda2p1 Device /dev/sda2p1 not found (or ignored by filtering). "stackexchange.com" can not do more than write so many characters, it does not do ... –  Cocotuna Jun 2 '13 at 18:53
    
I looked through the tutorial you posted. I don't mean this is a mean spirited way, but you must not be following the directions 8-). Are you literally trying to do a pvcreate /dev/sda2p1? What Linux distro is this? The Linux kernel usually shows the partitions as /dev/sda1, the whole disk is /dev/sda, for example. –  slm Jun 2 '13 at 19:06
    
Centos 6.2, Now I'm doing the download of centos 6.4 –  Cocotuna Jun 2 '13 at 19:12
    
Same OSes that I've got here. Are you trying to do a pvcreate /dev/sda2p1? –  slm Jun 2 '13 at 19:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.