LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2012, 03:15 PM   #1
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Rep: Reputation: 0
df not displaying logical volumes


oel 5.7 64bit, created directories /u01-/u06, when i issued a df /u02 it displays the same information as /u03 /u04 or /u05... my fstab file has these entries:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/usb1 /mnt/cdrom auto defaults 0 0
/dev/VolGroup01/u02 /u02 ext3 default 0 2
/dev/VolGroup02/u03 /u03 ext3 default 0 2
/dev/VolGroup03/u04 /u04 ext3 default 0 2
/dev/VolGroup03/u05 /u05 ext3 default 0 2
--------------------------------------------------------

i can add directories and files under each of the mount points, if i do a df /dev/VolGroup03/u05 it returns the same information as /dev/VolGroup01/u02 and i know that /u02 has my oracle database files while /u03 has no data ?

-------------------------------------

my pvcreate was /dev/sdb.sdc,sdd
vgcreate volgroup01 /dev/sdb
volgroup02 /dev/sdc
volgroup03 /dev/sdd
lvcreate -L 150G --name /u02 volgroup01
-L 100G --name /u03/ volgorup02

i ran a mkfs.ext3 on all the volgroups
mount /dev/volgroup01/u02
mount /dev/volgroup02/u03
---------------------------------
did i miss a step thats preventing the df command from returing the correct information ???
 
Old 04-22-2012, 04:38 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use lvscan and use those device nodes. Check for a file system with "file -s" as root.
 
Old 04-22-2012, 06:15 PM   #3
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
[root@PHOENIX ~]# lvscan
ACTIVE '/dev/VolGroup03/u04' [100.00 GB] inherit
ACTIVE '/dev/VolGroup03/u05' [100.00 GB] inherit
ACTIVE '/dev/VolGroup03/u06' [100.00 GB] inherit
ACTIVE '/dev/VolGroup02/u03' [100.00 GB] inherit
ACTIVE '/dev/VolGroup01/u02' [150.00 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol00' [448.56 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [16.00 GB] inherit

don't see "file -s" as root ??
 
Old 04-22-2012, 10:29 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,418

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
I don't know if this is the problem, but all the lvcreates I've seen eg https://www.redhat.com/magazine/009jul05/features/lvm2/ specify the logvol name as just a string, without any '/'s.
Maybe that's what's confusing it?
 
Old 04-22-2012, 10:32 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Like this:
sudo file -s /dev/VolGroup02/u03

That will tell you if there is a filesystem, or a partition table, etc.
 
Old 04-23-2012, 08:22 AM   #6
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
the sudo command return this

/dev/VolGroup02/u03: symbolic link to `/dev/mapper/VolGroup02-u03'

having never done this before, do i need to recreate the the volgroups..if so could you give me a quick example using the one of the volgroups that i specified ??
 
Old 04-23-2012, 08:31 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you SHOW us the df output?
 
Old 04-23-2012, 08:35 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
What's the output from
Code:
/bin/ls -l /dev/VolGroup*/*
/bin/ls -l /dev/mapper/
/bin/ls -l /dev/dm-*
EDIT: and
Code:
/bin/df
cat /proc/mounts

Last edited by catkin; 04-23-2012 at 08:37 AM.
 
Old 04-23-2012, 08:39 AM   #9
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
the lvcreate statement i used was lvcreate -L 100G --name /u03 volgroup02..

are you saying it should be lvcreate -L 110G --name u03 volgroupe02 ?
 
Old 04-23-2012, 08:46 AM   #10
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
[root@PHOENIX ~]# /bin/ls -l /dev/VolGroup*/*
lrwxrwxrwx 1 root root 31 Apr 16 07:31 /dev/VolGroup00/LogVol00 -> /dev/mapper/VolGroup00-LogVol00
lrwxrwxrwx 1 root root 31 Apr 16 07:31 /dev/VolGroup00/LogVol01 -> /dev/mapper/VolGroup00-LogVol01
lrwxrwxrwx 1 root root 26 Apr 16 11:31 /dev/VolGroup01/u02 -> /dev/mapper/VolGroup01-u02
lrwxrwxrwx 1 root root 26 Apr 16 11:31 /dev/VolGroup02/u03 -> /dev/mapper/VolGroup02-u03
lrwxrwxrwx 1 root root 26 Apr 16 11:31 /dev/VolGroup03/u04 -> /dev/mapper/VolGroup03-u04
lrwxrwxrwx 1 root root 26 Apr 16 11:31 /dev/VolGroup03/u05 -> /dev/mapper/VolGroup03-u05
lrwxrwxrwx 1 root root 26 Apr 16 11:31 /dev/VolGroup03/u06 -> /dev/mapper/VolGroup03-u06
[root@PHOENIX ~]# /bin/ls -l /dev/mapper/
total 0
crw------- 1 root root 10, 62 Apr 16 07:31 control
brw-rw---- 1 root disk 253, 0 Apr 16 11:31 VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 1 Apr 16 07:31 VolGroup00-LogVol01
brw-rw---- 1 root disk 253, 6 Apr 16 11:31 VolGroup01-u02
brw-rw---- 1 root disk 253, 5 Apr 16 11:31 VolGroup02-u03
brw-rw---- 1 root disk 253, 2 Apr 16 11:31 VolGroup03-u04
brw-rw---- 1 root disk 253, 3 Apr 16 11:31 VolGroup03-u05
brw-rw---- 1 root disk 253, 4 Apr 16 11:31 VolGroup03-u06
[root@PHOENIX ~]# /bin/ls -l /dev/dm-*
brw-rw---- 1 root root 253, 0 Apr 16 07:31 /dev/dm-0
brw-rw---- 1 root root 253, 1 Apr 16 07:31 /dev/dm-1

[root@PHOENIX ~]# /bin/df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
455620456 181624492 250478372 43% /
/dev/sda1 147764 59608 80527 43% /boot
tmpfs 12363088 9940 12353148 1% /dev/shm
[root@PHOENIX ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,data=ordered 0 0
/dev /dev tmpfs rw,relatime,mode=755 0 0
/proc /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/sda1 /boot ext3 rw,relatime,errors=continue,user_xattr,acl,data=ordered 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw,relatime 0 0
/etc/auto.misc /misc autofs rw,relatime,fd=7,pgrp=5318,timeout=300,minproto=5,maxproto=5,indirect 0 0
-hosts /net autofs rw,relatime,fd=13,pgrp=5318,timeout=300,minproto=5,maxproto=5,indirect 0 0
nfsd /proc/fs/nfsd nfsd rw,relatime 0 0
 
Old 04-23-2012, 08:47 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the LV's aren't mounted at all there...
 
Old 04-23-2012, 08:47 AM   #12
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
[root@PHOENIX ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
455620456 181624492 250478372 43% /
/dev/sda1 147764 59608 80527 43% /boot
tmpfs 12363088 9940 12353148 1% /dev/shm
[root@PHOENIX ~]# df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
455620456 181624492 250478372 43% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
/dev/sda1 147764 59608 80527 43% /boot
tmpfs 12363088 9940 12353148 1% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
nfsd 0 0 0 - /proc/fs/nfsd
 
Old 04-23-2012, 08:48 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
and that's no better
 
Old 04-23-2012, 08:57 AM   #14
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
[root@PHOENIX ~]# vgdisplay -A
--- Volume group ---
VG Name VolGroup03
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 3
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.27 TB
PE Size 4.00 MB
Total PE 594853
Alloc PE / Size 76800 / 300.00 GB
Free PE / Size 518053 / 1.98 TB
VG UUID j3swXv-Y9Ho-Yr4A-rpkC-Qr7c-J8hD-14QXAJ

--- Volume group ---
VG Name VolGroup02
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.27 TB
PE Size 4.00 MB
Total PE 594853
Alloc PE / Size 25600 / 100.00 GB
Free PE / Size 569253 / 2.17 TB
VG UUID mTCrk5-XwLc-gQ9X-DZ8S-Uu8L-G1XU-5pSLxI

--- Volume group ---
VG Name VolGroup01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.27 TB
PE Size 4.00 MB
Total PE 594853
Alloc PE / Size 38400 / 150.00 GB
Free PE / Size 556453 / 2.12 TB
VG UUID Vm9duj-QEy2-UwEl-DLUy-mCCA-akeM-U16bj3

--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 464.56 GB
PE Size 32.00 MB
Total PE 14866
Alloc PE / Size 14866 / 464.56 GB
Free PE / Size 0 / 0
VG UUID pTNc9x-y1dm-f9Bk-zVgp-ZSEg-1mMm-l4w1IX
 
Old 04-23-2012, 08:59 AM   #15
dthaler
Member
 
Registered: Apr 2011
Posts: 79

Original Poster
Rep: Reputation: 0
so what should the mount command look like, i did this "mount /dev/volgroup01/u02", is this not correct ??
 
  


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
Are logical volumes images ? vzxen Linux - Newbie 2 07-05-2010 07:43 AM
creating logical volumes... mtsm Linux - Newbie 1 01-31-2009 07:38 AM
Can't delete logical volumes gnoop Linux - Enterprise 6 01-23-2009 12:54 PM
Mounting Logical Volumes acidblue Fedora 6 01-28-2006 11:02 PM
I did not know about logical volumes gezi Linux - Newbie 5 04-27-2005 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:52 PM.

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
Open Source Consulting | Domain Registration