You are not logged in.

#1 2010-04-12 01:11:31

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

Unknown hard disk devices after LVM blunder

Hi all,

I have a rather weird hard disk partitioning setup because I always find myself needing to adjust my partitions from time to time. So I decided to create many logical partitions and put my personal data on an LVM partition that spans over multiple logical partitions... so that I could resize easily and create space for other stuff as required.

The problem - I created a FAT32 file system on one of the partitions (/dev/sda16) that wasn't part of the LVM at the time (no resizing required). After doing this, I now have 2 disk devices (/dev/dm-0 and /dev/dm-1) that weren't / shouldn't be there. Also, the partitions that are part of the LVM setup are detected as FAT32 partitions by fdisk. The non-LVM changes I made with fdisk and parted while for LVM management I use Kvpm. I grew the LVM Volume group and Logical volumes to fill the disk, including the FAT32 partition I created earlier.

Here is some output:

[me@arch ~]$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x00034a0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        5100    40857600    7  HPFS/NTFS
/dev/sda3            5101       38913   271602922+   5  Extended
/dev/sda5            5101        7012    15358108+  83  Linux
/dev/sda6            7013        8924    15358108+  83  Linux
/dev/sda7            8925       12571    29294496    b  W95 FAT32
/dev/sda8           12572       16218    29294496    b  W95 FAT32
/dev/sda9           16219       19865    29294496    b  W95 FAT32
/dev/sda10          19866       23512    29294496    b  W95 FAT32
/dev/sda11          23513       27159    29294496    b  W95 FAT32
/dev/sda12          30807       34453    29294496    b  W95 FAT32
/dev/sda13          34454       38277    30716248+  83  Linux
/dev/sda14          38278       38520     1951866    b  W95 FAT32
/dev/sda15          38521       38913     3156741   82  Linux swap / Solaris
/dev/sda16          27160       30806    29294496   83  Linux

Partition table entries are not in disk order

Disk /dev/dm-0: 230.7 GB, 230669942784 bytes
255 heads, 63 sectors/track, 28044 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: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 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: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
[me@arch ~]$ sudo blkid 
/dev/sda15: UUID="6b0ec9ff-af7b-47c9-a7e3-33c860f8c706" TYPE="swap" 
/dev/sda1: LABEL="System Reserved" UUID="FA481A59481A154B" TYPE="ntfs" 
/dev/sda2: UUID="E6AE2D34AE2CFF25" TYPE="ntfs" 
/dev/sda5: UUID="f0cb8bbe-7f41-442e-9f14-7b5aefa10ec0" TYPE="ext4" 
/dev/sda6: UUID="030136d1-7985-4ba8-af33-929bab660c69" TYPE="ext4" 
/dev/sda7: UUID="uuzBuM-OmD2-wvfg-X6cb-tuLY-4JTf-VVCcrJ" TYPE="LVM2_member" 
/dev/sda8: UUID="CoXf98-btzg-Mfm3-pXR9-dHfW-tsmk-LbkTwh" TYPE="LVM2_member" 
/dev/sda9: UUID="eBQ67Z-5RNv-Touw-GIpO-toW1-ZXCr-3uDKvR" TYPE="LVM2_member" 
/dev/sda10: UUID="x8L0nI-MgI8-XZ0B-cm9k-it7J-frxe-AdSMaw" TYPE="LVM2_member" 
/dev/sda11: UUID="FqO1Ca-60X4-br4P-FS3Y-1egf-ICrF-4cXr7W" TYPE="LVM2_member" 
/dev/sda12: UUID="WzWN75-mq6R-D25Y-Mz1n-883n-dsYT-wQrH1B" TYPE="LVM2_member" 
/dev/sda13: UUID="gqdPKd-1QhP-ya28-JmZ0-7hwU-00r1-swKu70" TYPE="LVM2_member" 
/dev/sda14: UUID="1258-EDB5" TYPE="vfat" 
/dev/sda16: UUID="cjdNvq-pm29-B5jE-YU4S-dLAi-N7JJ-RpJKDw" TYPE="LVM2_member" 
/dev/mapper/DataVolumeGroup-DataLogicalVolume: UUID="7eee3ccb-703c-4aad-918e-6e39488ea7b6" TYPE="ext4" 
/dev/mapper/DataVolumeGroup-ProxyCache: UUID="6db398c5-fd22-4998-acc7-10661ac136bc" TYPE="reiserfs" 
[me@arch ~]$ sudo pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda7
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               uuzBuM-OmD2-wvfg-X6cb-tuLY-4JTf-VVCcrJ
   
  --- Physical volume ---
  PV Name               /dev/sda8
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               CoXf98-btzg-Mfm3-pXR9-dHfW-tsmk-LbkTwh
   
  --- Physical volume ---
  PV Name               /dev/sda9
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               eBQ67Z-5RNv-Touw-GIpO-toW1-ZXCr-3uDKvR
   
  --- Physical volume ---
  PV Name               /dev/sda10
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               x8L0nI-MgI8-XZ0B-cm9k-it7J-frxe-AdSMaw
   
  --- Physical volume ---
  PV Name               /dev/sda13
  VG Name               DataVolumeGroup
  PV Size               29.29 GiB / not usable 344.50 KiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7499
  Free PE               0
  Allocated PE          7499
  PV UUID               gqdPKd-1QhP-ya28-JmZ0-7hwU-00r1-swKu70
   
  --- Physical volume ---
  PV Name               /dev/sda11
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               FqO1Ca-60X4-br4P-FS3Y-1egf-ICrF-4cXr7W
   
  --- Physical volume ---
  PV Name               /dev/sda16
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               cjdNvq-pm29-B5jE-YU4S-dLAi-N7JJ-RpJKDw
   
  --- Physical volume ---
  PV Name               /dev/sda12
  VG Name               DataVolumeGroup
  PV Size               27.94 GiB / not usable 3.91 MiB
  Allocatable           yes (but full)
  PE Size               4.00 MiB
  Total PE              7151
  Free PE               0
  Allocated PE          7151
  PV UUID               WzWN75-mq6R-D25Y-Mz1n-883n-dsYT-wQrH1B
   
[me@arch ~]$ sudo lvdisplay
  --- Logical volume ---
  LV Name                /dev/DataVolumeGroup/DataLogicalVolume
  VG Name                DataVolumeGroup
  LV UUID                e7MjVc-JeR8-8Pz2-tiFY-2vwP-dVwq-B4q85K
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                214.83 GiB
  Current LE             54996
  Segments               8
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   
  --- Logical volume ---
  LV Name                /dev/DataVolumeGroup/ProxyCache
  VG Name                DataVolumeGroup
  LV UUID                LvKsfw-EqZU-gRTh-oZes-nP5c-Iw5I-0jBDja
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                10.00 GiB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1

And a kvpm screenshot

arch1.th.png

So far, all partitions mount properly and the system works fine, but the bad output from fdisk and the new devices are unnerving. How can I fix this?

Thanks in advance.

Offline

#2 2010-04-13 09:04:37

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

Re: Unknown hard disk devices after LVM blunder

bump

Offline

#3 2010-04-21 20:59:14

drsjlazar
Member
From: Kasama
Registered: 2009-10-01
Posts: 133
Website

Re: Unknown hard disk devices after LVM blunder

bump if i may... sorry ppl.

Offline

Board footer

Powered by FluxBB