LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-15-2004, 12:43 PM   #1
Stanley56
Member
 
Registered: May 2003
Location: Belgium
Distribution: Gentoo, Debian
Posts: 44

Rep: Reputation: 15
Does anyone have experience installing lvm in debian


I was wondering if anyone has installed lvm in debian.

I've already installed gentoo with lvm and put following on it:
/usr
/home
/opt
/var
/tmp
swap

I'm planning to install a new server with debian stable, but have few experience with the install.

Any tips?
 
Old 02-16-2004, 08:08 AM   #2
sandesh_hs
LQ Newbie
 
Registered: Feb 2004
Distribution: Fedora,redhat linux
Posts: 4

Rep: Reputation: 0
Smile try install latest lvm

try idownloading latest lvm-2 version and follow instructons from site to install click here !
 
Old 02-16-2004, 12:13 PM   #3
Stanley56
Member
 
Registered: May 2003
Location: Belgium
Distribution: Gentoo, Debian
Posts: 44

Original Poster
Rep: Reputation: 15
I'm going to try it next week.
To bad that debian doesn't has such good docs like gentoo.
With gentoo its just a subdoc to the install-guide.
If things don't work out the way they should, you'll be the first to hear.

The setup of the server won't be that special, just apache, mysql, cups and samba.
Now only to get used to apt-get again...
 
Old 02-16-2004, 04:30 PM   #4
AnswerGuy
LQ Newbie
 
Registered: Jun 2003
Location: Campbell, CA, US
Distribution: Debian
Posts: 2

Rep: Reputation: 0
I have installed Debian testing/unstable on an LVM substrate using
my own procedure (documented on my MoinMoin/Wiki pages at:
http://www.starshine.org/sysadmoin/D...apInstallation)

Note: this method is for performing a fresh installation, manually,
using nothing but a net connection and an LNX-BBC (or any other rescue
disc or diskette with suitable fdisk, mkfs, mount, and wget commands).

To simply add LVM to an existing system and migrate some files to it
is potentially a little simpler. I should write that up as another Wiki
page. Basically:

* install the LVM package (in my case just lvm10 and the lvm-common
Debian packages),
* fdisk to mark your PV (physical volume partitions)
* run pvcreate /dev/hdXY or /dev/sdXY where X is the device and Y
is the partition

(or you can use whole disks with no PC compatible partition table
on them --- by running the pvcreate command on the whole disk node:
/dev/hdb or whatever. Of course you can also run LVM over the
soft RAID metadisk (md) drivers --- setting up your RAID volumes
using mdadm or the old /etc/raidtab and suite --- then run pvcreate
on the /dev/md* device(s))

* run vgscan (to create/updage an /dev/lvmtab file)
* run vgchange -a y (to activate the LVM subsystem)
* run vgcreate (to create your volume group)
* ls -l /dev/$VOLUME_GROUP_NAME (make sure it created its VG directory
and device nodes thereunder
* run your series of lvcreate commands (creates more device nodes under
the specified VG directory and wires up the metadata for the volumes,
use 'ls' to check)
* run mkfs (for any filesystem type you like) on each LV
* create your temporary mount points
* migrate your data (using cp -ax, rsync, cpio -p,
(tar cf - | tar xpvf -), dump | restore or your favorite method)
* update your /etc/fstab
* check to make sure /etc/init.d/lvm was created and will be running
the vgchange command upon boot (was done as part of the apt-get
install lvm10 in my case)
* reboot or simply umount and remount all of your newly migrated
filesystems manually (might have to bounce down into single user
mode and back up if you're migrating busy filesystems like /var).
* at your leisure reclaim your old partitions, mark them as type
8e (Linux LVM) in fdisk, run pvcreate on each of them and then
vgextend to add them to a volume group; you can then dole out
space therefrom as needed (using e2fsadm to enlarge existing
ext2/ext3 volume, or the underlying lvextend command and suitable
other utilities to grow other types of fileystems, or using the
lvcreate command to create new volumes, of course).

If you read the page I describe you'll see most of these same steps
interspersed into it. (The difference was that I was installing a
fresh copy of Debian for other reasons that were unrelated to the
use of LVM --- so I didn't have to migrate filesystems through the
process.

Note that this assumes that the rootfs and /boot (assuming you follow
the Linux traditions of keeping /boot separate) are on non-LVM volumes.
If you want your rootfs on LVM --- which I don't recommend --- then you'd
have to create an initrd (for each new kernel you build) to contain and
run the vgscan and vgchange utilities.

I hope this helps.
 
Old 02-17-2004, 05:47 AM   #5
Stanley56
Member
 
Registered: May 2003
Location: Belgium
Distribution: Gentoo, Debian
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks for the reply. I'll try that next week.
This doc will certainly be a great help.
Nice doc btw, keep up the good work.

Debian is great for servers, but for desktops I prefer gentoo.
 
  


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
debian experience thick_guy_9 Debian 1 10-25-2005 08:33 AM
Does any have experience with installing two linux and one FreeBSD on one Harddrive? babyboss Fedora 2 10-24-2004 03:13 AM
Debian vs Gentoo -- my experience t2701 Debian 10 08-26-2004 05:16 AM
debian installer LVM powadha Debian 3 05-07-2004 03:44 PM
Softwareraid + lvm + Samba + cups + debian installation Cybercool Linux - Newbie 0 05-04-2004 04:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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