View previous topic :: View next topic |
Author |
Message |
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Mon Apr 22, 2002 3:13 am Post subject: LVM + XFS + Reiserfs? |
|
|
Has anyone tried using LVM + XFS + Reiserfs?
Will I lose preformance (I realize it will utilize a little more CPU)? My partitions would be faster if kept them smaller right? I want to make my / and /home XFS, /var and /tmp Reiserfs. All would be LVM lv's with the exception of a 50 MB /boot created as ext3. LVM will allow me to resize the partitions if I need to do so right?
Any suggestions? This is going to be running on a server and running Gentoo of course! _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
lude Retired Dev
Joined: 18 Apr 2002 Posts: 114 Location: New York, NY
|
Posted: Mon Apr 22, 2002 10:15 am Post subject: Re: LVM + XFS + Reiserfs? |
|
|
Nitro wrote: | Has anyone tried using LVM + XFS + Reiserfs? |
I got an 'almost'. I run Software Raid0 + ReiserFS on a production server. Gave it a huge performance boost, and from what I can tell it's solid as a rock.
Please power, don't go out... |
|
Back to top |
|
|
rawlz n00b
Joined: 18 Apr 2002 Posts: 1
|
Posted: Mon Apr 22, 2002 10:40 am Post subject: |
|
|
My setup is quite similar to the one you describe, although I ditched reiserfs and decided to go with xfs. I haven't noticed a performance drop at all. My /portage fs is a 4Kb swidth striped volume on 2 IDE disks and it at least 'feels' fast...
Quote: | LVM will allow me to resize the partitions if I need to do so right? |
This is the main advantage of lvm: resizing a volume is very easy and space can be allocated from different resources (disks).
my .02 |
|
Back to top |
|
|
gilgames n00b
Joined: 18 Apr 2002 Posts: 12 Location: Edam - The Netherlands
|
Posted: Mon Apr 22, 2002 6:31 pm Post subject: Re: LVM + XFS + Reiserfs? |
|
|
Nitro wrote: | All would be LVM lv's with the exception of a 50 MB /boot created as ext3. |
this might be hard. I stuck to a 50MiB /boot and a 200MiB / because I just couldn't make booting from an initrd work(which lvmcreate_initrd should set up properly but apparently doens't )
Nitro wrote: | LVM will allow me to resize the partitions if I need to do so right? |
Sure, LVM is made for that (I think), but remember that XFS filesystems can only grow larger (in-place that is). |
|
Back to top |
|
|
daos n00b
Joined: 18 Apr 2002 Posts: 50 Location: Virginia, USA
|
Posted: Mon Apr 22, 2002 7:06 pm Post subject: |
|
|
I use Reiserfs with kernel 2.4 and I have File system corruption many times. Ext3 or XFS may be more stable. Gentoo document does not recommend using Reiser fs with kernel 2.4.x |
|
Back to top |
|
|
mossmann n00b
Joined: 23 Apr 2002 Posts: 13
|
Posted: Tue Apr 23, 2002 8:37 pm Post subject: lvmcreate_initrd woes |
|
|
I'm running everything on LVM except for /boot (ext2). My root fs is XFS, and I'm also using some reiserfs logical volumes from a volume group that was originally created by a different distro.
Everything seems to run fine, although I have had some problems with the lvmcreate_initrd script. The initrd image I created during the Gentoo install process (in the chroot environment) works okay, although I had to ln -s /lib/modules/2.4.19-r1 /lib/modules/2.4.19 to get the script to create it. I can boot with it, but I get a bunch of modprobe errors during startup.
I have updated my kernel a couple times since then but have not been able to get a new initrd to boot. lvmcreate_initrd appears to work (with the -r1 now), but when I boot up, I get:
VFS: Cannot open root . . .
where I should be seeing a vgscan. I'm just starting to dig into this. I have a strong background with LVM under HP-UX but I'm new to booting to logical root volumes under Linux. If anyone has any fixes or tips, I'd love to hear them. |
|
Back to top |
|
|
gpwolfe Guest
|
Posted: Thu Apr 25, 2002 10:29 pm Post subject: Re: lvmcreate_initrd woes |
|
|
HOW did you get the vgcreate to work?
I have and have done:
1) hda1 = 100MB type 83, hda2=3.28GB type 8e, hda3=512MB type 82
2) vgscan to create lvmtab
3) pvcreate -v /dev/hda2
4) pvdisplay /devhda2 (says it's a new physical volume).
5) vgcreate -v /dev/vg00 /dev/hda2
OR
vgcreate -v vg00 /dev/hda2
dies saying that there was no physical volumes specificied on the command line. What *IS* the problem?
Under HPUX lvm you have to make the /dev/vg00 directory and the group file but I trying that just results in vgcreate bailing saying that vg00 already exists. Someone mentioned that vgcreate is supposed to take of that in linux. So what is the deal? Is it that the lvm tools aren't devfs aware? If so how do you disable devfs? The install documentation says (towards the end) to use gentoo=nodevfs. I tried that with the installation ISO but /dev still gets mounted as devfs.
PLEASE help.
Thanks,
Gary
wgary4@qwest.net
mossmann wrote: | I'm running everything on LVM except for /boot (ext2). My root fs is XFS, and I'm also using some reiserfs logical volumes from a volume group that was originally created by a different distro.
Everything seems to run fine, although I have had some problems with the lvmcreate_initrd script. The initrd image I created during the Gentoo install process (in the chroot environment) works okay, although I had to ln -s /lib/modules/2.4.19-r1 /lib/modules/2.4.19 to get the script to create it. I can boot with it, but I get a bunch of modprobe errors during startup.
I have updated my kernel a couple times since then but have not been able to get a new initrd to boot. lvmcreate_initrd appears to work (with the -r1 now), but when I boot up, I get:
VFS: Cannot open root . . .
where I should be seeing a vgscan. I'm just starting to dig into this. I have a strong background with LVM under HP-UX but I'm new to booting to logical root volumes under Linux. If anyone has any fixes or tips, I'd love to hear them. |
|
|
Back to top |
|
|
Nitro Bodhisattva
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Thu Apr 25, 2002 11:58 pm Post subject: |
|
|
Well, I got it to work! Now, only if XFS partitions could shrink.
gpwolfe wrote: | HOW did you get the vgcreate to work? |
Try using /dev/ide/host0/bus0/target0/lun0/part2 instead of /dev/hda2. Also check that you set the partition type to Linux LVM (8e i think...) in fdisk.
My fdisk looks like this: Code: | Disk /dev/hda: 255 heads, 63 sectors, 2482 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 6 48163+ 83 Linux
/dev/hda2 7 32 208845 83 Linux
/dev/hda3 33 1435 11269597+ 8e Linux LVM
/dev/hda4 * 1436 2482 8410027+ 7 HPFS/NTFS |
_________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
|
Guest
|
Posted: Sat Apr 27, 2002 2:18 am Post subject: Reiser all the way |
|
|
After reading several articles that compare current filesystems, ReiserFS smokes them all. If anything, you'll gain lots of performance over something like ext2 or ext3. |
|
Back to top |
|
|
|