From: Friedrich L. <fl...@fl...> - 2002-02-20 01:12:15
|
HOWTO harddisk support: 1) create _one_ partition on the harddisk you want to use The result ("fdisk -l") should look like this: Disk /dev/hdc: 16 heads, 63 sectors, 8126 cylinders Units = cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 8126 4095472+ 8e Linux LVM 2) create a physical volume (PV) from the partiton create in step 1.: # pvcreate /dev/hdc1 3) create a volume group (VG) named "devil-linux" using the PV /dev/hdc1 # vgcreate -s 8M devil-linux /dev/hdc1 (increase the PhysicalExtentSize of 8M to make use of more than 512GB) 4) now we are going to create the "partitions" (=logical volumes) each is optional, so just create the ones you need * swap: lvcreate -C y -L 256M -n swap devil-linux mkswap /dev/devil-linux/swap * log (/var/log): lvcreate -L 512M -n log devil-linux mkreiserfs -v 2 /dev/devil-linux/log * spool (/var/spool): lvcreate -L 512M -n spool devil-linux mkreiserfs -v 2 /dev/devil-linux/spool * squid (/var/squid): lvcreate -L 512M -n squid devil-linux mkreiserfs -v 2 /dev/devil-linux/squid 5) save your configuration (so you have a least one lvm backupfile) # save-config Now reboot to test if all logical volumes get mounted correctly. Comments welcome. PS: Because of a mismatch in the sysvinit system no filesystems get currently unmounted on reboot. So take care for now. -- MfG / Regards Friedrich Lobenstock |