LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-16-2013, 02:59 PM   #1
johnmccarthy
Member
 
Registered: Jul 2010
Posts: 64

Rep: Reputation: 1
Smile 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

Last edited by johnmccarthy; 07-16-2013 at 03:01 PM.
 
Old 07-16-2013, 04:35 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VMware Workstation - Red hat Linux 5.4 filesize problem ShahJee Linux - Virtualization and Cloud 2 05-31-2011 04:41 PM
Red Hat Linux Enterprise V5 /LVM2 & LVM cleanup process aix_tiger Red Hat 1 01-03-2010 12:21 PM
Problem with Red Hat Enterprise Linux 3 silvertype Red Hat 4 02-12-2007 09:04 AM
reduce an LVM partition in Red Hat jhnsegers Linux - Software 0 11-25-2004 01:57 AM


All times are GMT -5. The time now is 12:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration