Unix

HOME

Valid HTML 4.01!
xemacs powered

First Previous | Next Last

Displaying entries 1-2 of 3

LVM

vgcreate -v pig /dev/hda3 /dev/hdc1 /dev/hdd1
lvcreate -L1T -npig pig
mkfs.ext3 /dev/pig/pig
tune2fs -c0 -i0 -r0 /dev/pig/pig

ext3

This is a quick list for creating an ext3 filesystem.
For barrier=1 a kernel 2.6.17 or newer is needed.
After the usual fdisk stuff we do this:

mkfs.ext2 -J /dev/hda1
tune2fs -c0 -i0 -O DIR_INDEX /dev/hda1


And this line is for our fstab:

/dev/hda1 / ext3,ext2 defaults,barrier=1 1 1


If you have already an ext3 and want to add directory indexing
for more speed you have to do this:


tune2fs -o DIR_INDEX /dev/hda1
umount /dev/hda1 || mount -o remount,ro /dev/hda1
fsck -fD /dev/hda1


after mounting with barrier=1 check your logs.
If it doesn't work use hdparm to disable caching of your harddrive.


First Previous | Next Last

Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de> - Last modified: Sat 31 Jul 13:58:08 UTC 2010