LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-04-2006, 01:36 PM   #1
lord_darkhelmet
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Rep: Reputation: 0
LVM not visible after reboot


I'm setting up a FC5 box for use with myth tv. I created a LVM on /dev/hd4 for recording use. after a reboot my LVM is not there. I checked the fstab and there is nothing in there for /dev/hda4.

The volume group I set up is called VGforMyth and the logical volume is called video.

[root@mythbox VGforMyth]# ls -alt
total 0
drwxr-xr-x 12 root root 3660 Oct 4 12:00 ..
drwx------ 2 root root 60 Oct 4 12:00 .
lrwxrwxrwx 1 root root 27 Oct 4 12:00 video -> /dev/mapper/VGforMyth-video

here is the output from fstab:

[root@mythbox etc]# more fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=SWAP-hda2 swap swap defaults 0 0
[root@mythbox etc]#


here is mtab:

[root@mythbox etc]# more mtab
/dev/hda3 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/hda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
automount(pid1711) /net autofs rw,fd=4,pgrp=1711,minproto=2,maxproto=4 0 0
/dev/mapper/VGforMyth-video /video ext3 rw 0 0
[root@mythbox etc]#
 
Old 10-04-2006, 02:29 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Did you read up on how LVM works? And fstab? For one, if /dev/hda4 is an LVM physical volume you will not be mounting that directly. So it should not be in /etc/fstab. If it is, it won't work. Two, your /etc/fstab will not be automagically updated when you create a new filesystem (be it on LVM or not). So if you didn't manually put the mount in there, it's not going to be there.

I imagine you are missing a line similar to the one below in your /etc/fstab. This is something that you would have needed to put there manually. It wouldn't just have automagically appeared!
Code:
/dev/mapper/VGforMyth-video        /mythtv/recordings       xfs   defaults 0 2
The above example assumes your filesystem type is XFS and your mountpoint is /mythtv/recordings. You will need to change these as needed for your specifics.

Once you've added the appropriate line to your /etc/fstab, as root, run mount /mythtv/recordings to see if it works. Again, this example command assumes your mountpoint is /mythtv/recordings ... adjust as necessary.
 
Old 10-04-2006, 11:53 PM   #3
lord_darkhelmet
LQ Newbie
 
Registered: Oct 2005
Posts: 12

Original Poster
Rep: Reputation: 0
I read a bit about LVM, guess I have MUCH more to go !

I updated the fstab as you suggested (for my specifics of course) and it is working well. Thanks for your help.

As a side question, would it be worth the effort to change the filesystem from ext3 to XFS for mythtv ?

Thanks again.
 
Old 10-05-2006, 12:48 AM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by lord_darkhelmet
would it be worth the effort to change the filesystem from ext3 to XFS for mythtv ?
I use XFS myself, but who knows if I made the best choice?! I like the way it is very fast to delete large files. On the downside, XFS cannot be shrunk. So once you make is so big, or increase it with LVM and resizing, then you cannot later shrink it. I've never had a need to shrink a filesystem dedicated to MythTV recordings however. They just keep gowing and growing and growing...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 03:47 AM
LVM disk is offline after reboot Lada Red Hat 2 08-20-2006 06:05 PM
FC4 hangs after reboot. Is it possible to manually reboot to find problem hathmann Fedora 5 08-13-2006 03:57 AM
No keyboard/mouse after reboot. Requires second reboot to work. rottie Linux - Hardware 6 01-16-2006 05:04 AM
LVM visible after booting with Systemrescue CD jhnsegers Linux - General 0 12-07-2004 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 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
Open Source Consulting | Domain Registration