LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Red Hat Enterprise Linux Workstation 6 - Problem mount lvm partition (https://www.linuxquestions.org/questions/linux-newbie-8/red-hat-enterprise-linux-workstation-6-problem-mount-lvm-partition-4175469842/)

johnmccarthy 07-16-2013 02:59 PM

Red Hat Enterprise Linux Workstation 6 - Problem mount lvm partition
 
I'm trying to mount my second partion /dev/sda2 to an existing directory and the response is
unknown filesystem type lvm2_member. I'm new to Linux but should I assume that lvm is the file system and how can I mount it?

The command I type to mount sda2 is

mount /dev/sda2 /data

/data is on the root file system.

Below are some commands and output results for disk information:

df -kh

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_luke-lv_root
50G 3.8G 43G 9% /

tmpfs 1.9G 260K 1.9G 1% /dev/shm

/dev/sda1 485M 57M 403M 13% /boot

/dev/mapper/vg_luke-lv_home
239G 188M 226G 1% /home
/dev/sdb 1.4M 464K 960K 33% /media/disk

df -Th

Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg_luke-lv_root
ext4 50G 3.8G 43G 9% /

tmpfs tmpfs 1.9G 260K 1.9G 1% /dev/shm

/dev/sda1 ext4 485M 57M 403M 13% /boot

/dev/mapper/vg_luke-lv_home
ext4 239G 188M 226G 1% /home

/dev/sdb vfat 1.4M 464K 960K 33% /media/disk

lvs

LV VG Attr LSize Pool Origin Data% Move Log Cpy%Sync Convert
lv_home vg_luke -wi-ao--- 241.85g
lv_root vg_luke -wi-ao--- 50.00g
lv_swap vg_luke -wi-ao--- 5.75g

lvscan

ACTIVE '/dev/vg_luke/lv_root' [50.00 GiB] inherit
ACTIVE '/dev/vg_luke/lv_home' [241.85 GiB] inherit
ACTIVE '/dev/vg_luke/lv_swap' [5.75 GiB] inherit

vgscan

Reading all physical volumes. This may take a while...
Found volume group "vg_luke" using metadata type lvm2

A million thanks,
Johnny Mac

Kustom42 07-16-2013 04:35 PM

The issue here is that the drive was partitioned with the lvm member hex code. So thats where your error is coming from. You dont mount an LVM mount point by the physical device name, i.e., /dev/sda2


You will mount it with the lvm device name as shown in your lvdisplay above. Now in all honesty it looks like your drive is already mounted and apart of the vg_luke volume group.


Do a "pvdisplay" and it should show your actual device name, /dev/sda2, mapped to the volume group.


All times are GMT -5. The time now is 06:44 PM.