Peter Humphrey wrote:
On Friday 16 September 2011 17:58:11 Dale wrote:
> Hmm, maybe I am thinking of ext4? Life's confusing. :/
In case it helps, here's the relevant part of my fstab:
/dev/sda1 /boot ext2 noatime,noauto 1 2
/dev/md3 / ext4 noatime 1 1
/dev/vg1/home /home ext4 noatime 1 2
/dev/vg1/common /home/prh/common ext4 noatime 1 3
/dev/vg1/boinc /home/prh/boinc ext4 noatime 1 3
/dev/vg1/virt /home/prh/.VirtualBox ext4 noatime 1 3
/dev/vg1/portage /usr/portage ext4 noatime 1 2
/dev/vg1/packages /usr/portage/packages ext4 noatime 1 3
/dev/vg1/distfiles /usr/portage/distfiles ext4 noatime 1 3
/dev/vg1/local /usr/local ext4 noatime 1 2
/dev/vg1/opt /opt ext4 noatime 1 2
/dev/vg1/srv /srv ext4 noatime 1 2
/dev/vg1/chroot /mnt/atom ext4 noatime 1 2
The common partition is where I keep my user stuff that is common
among distros. Boinc is where boinc runs, and virt is where VirtualBox
runs. I don't know why I still have a srv there, as Gentoo doesn't use
it (maybe I should reallocate it to /var or /var/tmp). Chroot is where
I mount my Atom box's portage directory so that I can use the
workstation to build packages for binary installation on the Atom box
- saves oodles of time and heat.
I have a /dev/vg2 as well, for experimental installation of other
distros; those that can be installed into virtual partitions, that is.
The following commands would re-create those partitions and file
systems, having created the physical volume and the volume group vg1:
lvcreate -L 10G -n opt vg1
lvcreate -L 12G -n distfiles vg1
lvcreate -L 12G -n srv vg1
lvcreate -L 15G -n home vg1
lvcreate -L 15G -n virt vg1
lvcreate -L 20G -n boinc vg1
lvcreate -L 20G -n chroot vg1
lvcreate -L 20G -n packages vg1
lvcreate -L 2G -n local vg1
lvcreate -L 50G -n common vg1
lvcreate -L 8G -n portage vg1
mkfs.ext4 -j -O dir_index /dev/vg1/boinc
mkfs.ext4 -j -O dir_index /dev/vg1/chroot
mkfs.ext4 -j -O dir_index /dev/vg1/common
mkfs.ext4 -j -O dir_index /dev/vg1/distfiles
mkfs.ext4 -j -O dir_index /dev/vg1/home
mkfs.ext4 -j -O dir_index /dev/vg1/local
mkfs.ext4 -j -O dir_index /dev/vg1/opt
mkfs.ext4 -j -O dir_index /dev/vg1/packages
mkfs.ext4 -j -O dir_index /dev/vg1/portage
mkfs.ext4 -j -O dir_index /dev/vg1/srv
mkfs.ext4 -j -O dir_index /dev/vg1/virt
That list was created by David Noon's zsh script, which he posted here
recently. In fact I have file-systm labels written by mkfs.ext4 as
well, but David's script doesn't notice those.
Sda and sdb are 1TB SATA Samsung devices.
HTH.
--
Rgds
Peter Linux Counter 5290, 1994-04-23
Interesting read and it helps. I sort of understand LVM and realize its
benefits but just concerned about something breaking and me sitting here
with no clue how to fix it. Of course, Knoppix and gmails web mail may
help tho. ;-) Thanks for posting fstab too. That gives me some clues
on how to do mine. Clues are good.
I have copied over with the following:
/boot on its partition
/ on its partition
/home on LVM
/usr on LVM
/var on LVM
Then I ran into this:
/dev/sdb3 9614148 1526468 7599304 17% /mnt/gentoo
/dev/sdb1 280003 11568 253979 5% /mnt/gentoo/boot
/dev/mapper/test-home
51606140 10289244 38695456 22% /mnt/gentoo/home
/dev/mapper/test-usr 14449712 10841540 2874172 80% /mnt/gentoo/usr
/dev/mapper/test-var 12385456 6405360 5350952 55% /mnt/gentoo/var
Ooops, /usr is almost full. Well that ain't good at all is it? Well
looky here:
/dev/sdb3 9614148 1526468 7599304 17% /mnt/gentoo
/dev/sdb1 280003 11568 253979 5% /mnt/gentoo/boot
/dev/mapper/test-home
51606140 10289244 38695456 22% /mnt/gentoo/home
/dev/mapper/test-usr 20642428 10845076 8748856 56% /mnt/gentoo/usr
/dev/mapper/test-var 12385456 6405360 5350952 55% /mnt/gentoo/var
That was like 5 minutes later and it was mounted the whole time too.
Yep, it's pretty neat. Now to work on this init crap. I read a couple
howtos but it is still murky. It'll sort out as I get started I guess.
I'm using ext4 by the way. It's been out a while and sounds like it is
stable.
Does LVM make the heads move around more or anything like that? I'm
just thinking it would depending on what lv are on what drives. I
dunno, just curious.
Thanks.
Dale
:-) :-)