LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 11-13-2005, 10:25 AM   #1
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
Swap Files and LVMs


I just installed FC4 and am curious about a few things.

Rather than referring to hda1, hda2, and hda3, like RH9 did, (where hda2 was / and hda3 was swap), FC4 appears to have the old hda2 and hda3 as two parts of a physical volume (LVM).

1. Is this the prefered set-up?

2. Will I get get better performance if I make the swap file something other than a part of the LVM group?

3. Why does the FSTAB and KDiskFree show the file type for the logical volume as LVM, and not as ext3, which I know it is?

Thanks,

Moxieman99
 
Old 11-13-2005, 10:31 AM   #2
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
1. it's a lot more flexible for the end user, so can have substantial benefits in either the desktop or server roles.

2. I would not believe so, but don't have any evidence either way.

3. can you show us these? my lvm partitions are mounted as ext3 / resierfs / swap etc...
 
Old 11-14-2005, 07:06 PM   #3
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Original Poster
Rep: Reputation: 147Reputation: 147
3. can you show us these? my lvm partitions are mounted as ext3 / resierfs / swap etc...
_____________________________________________
I have to drill down through various layers of options or use various other applications (not the ones initially offered up when check on the disk) to find that the LVM (both swap and primary) is, in fact, ext3 (My fstab file doesn't break out the LVM into two (swap and primary) components, either, which I found vaguely peturbing for some reason).

I am simply curious because as I experiment more and more with the nuts-and-bolts of Linux, I want to understand what is going on (I don't mind trashing my system in the process, I just want to understand in the end why it was trashed in the process).

I wanted to see how I could split my hard drive (80 gig) into 2 40s, and make one a FAT drive so that when I tried dual booting/networking/whatever, a Windows system and Linux could read/write the common FAT drive. Unfortunately, just as WinXP insists on formatting every partition it touches as NTFS, Fedora Core 4 only gave me the option of formatting both partitions that I wanted to create as ext3 or ext2. Yes, I could eventually reach an option to format a portion as vFAT, but it was neither easy nor unintuitive (Bear in mind that I have zero experience in disc partitioning).

Then there's the small question of someone on the board stating that more than one install of Linux can shall the same swap partition, and by understanding the concept of LVMs, I can understand why and how I can have two installs share the same swap. I don't have a problem with the concept (like the possibility of using one ground for the electrical system of an entire house), I just want to understand the hows, whys, and wherefores, of sharing a logical partition group.

Finally and most importantly, there's the fact that I'm a very concrete kind of person. I want to understand how they (LVMs) work so I can get comfortable with engineering a hard disk to share what appears to be a concept and not physical sections x to x+n of a disc.

Purely curiousity, nothing more.

Moxieman99
 
Old 11-14-2005, 11:53 PM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Quote:
Originally posted by moxieman99 ...
I wanted to see how I could split my hard drive (80 gig) into 2 40s, and make one a FAT drive so that when I tried dual booting/networking/whatever, a Windows system and Linux could read/write the common FAT drive. Unfortunately, just as WinXP insists on formatting every partition it touches as NTFS, Fedora Core 4 only gave me the option of formatting both partitions that I wanted to create as ext3 or ext2. Yes, I could eventually reach an option to format a portion as vFAT, but it was neither easy nor unintuitive (Bear in mind that I have zero experience in disc partitioning).
Use fdisk to create a partition and use mkdosfs to format it as vfat.

See:
man fdisk
man mkdosfs

Examples:
fdisk /dev/hda
(followed by “m” to see a listing of options)
(be sure to “w” write your final selections or “q” to bailout and save nothing)
mkdosfs -F 32 /dev/hda...
Quote:
Then there's the small question of someone on the board stating that more than one install of Linux can shall the same swap partition, and by understanding the concept of LVMs, I can understand why and how I can have two installs share the same swap. I don't have a problem with the concept (like the possibility of using one ground for the electrical system of an entire house), I just want to understand the hows, whys, and wherefores, of sharing a logical partition group.
See the Linux Partition HowTo: http://www.ibiblio.org/pub/Linux/doc...Partition.html Pay extra attention to section 3.5 “Swap Partitions”. Swap space is essentially very slow memory, which like the RAM in your system, can be reused by the next linux OS that you run.
Quote:
Finally and most importantly, there's the fact that I'm a very concrete kind of person. I want to understand how they (LVMs) work so I can get comfortable with engineering a hard disk to share what appears to be a concept and not physical sections x to x+n of a disc.
See the LVM HowTo: http://www.ibiblio.org/pub/Linux/doc...LVM-HOWTO.html Pay extra attention to Chapter 11 “Common Tasks”. FC4 uses LVM2.

Last edited by WhatsHisName; 11-14-2005 at 11:58 PM.
 
Old 11-15-2005, 05:07 PM   #5
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Original Poster
Rep: Reputation: 147Reputation: 147
Thanks, WHN, I'll check the sources out.

mm99
 
  


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
trouble with swap files kbf Linux - Newbie 1 08-23-2005 11:14 PM
swap-files after emergency exit? ungua SUSE / openSUSE 8 08-23-2005 01:58 PM
How do you use and configure LVMs? bondsteveg Linux - Newbie 2 04-14-2005 06:29 PM
how do you swap files from windows to fedora core 2 lyonzy Linux - Newbie 3 03-17-2005 11:59 AM
Stopping Creation of Swap Files SaTaN Linux - General 4 09-02-2003 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 11:49 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