# dd if=/dev/zero of=/swapfile1 bs=1024 count=$[512*1024] # mkswap /swapfile1 # swapon /swapfile1 # chmod 640 /swapfile1
/swapfile1 swap swap defaults 0 0
system-config-kickstart noarch 2.6.19.1-1.el5 base 985 k Installing for dependencies: comps-extras noarch 11.1-1.1.el5.centos base 46 k notify-python x86_64 0.1.0-3.fc6 base 13 k pirut noarch 1.2.10-1.el5.centos.1 base 246 k pykickstart noarch 0.43-1.el5 base 127 k system-config-language noarch 1.1.18-1.el5 base 68 k
Results plain 4G partition, formatted as ext3:
$ bonnie++ -d /mnt/tmp/blah/ -s 2048
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
dv1 2G 45833 95 72654 29 31361 3 44004 77 75138 1 187.4 0Results RAID-1 4G partition, formatted as ext3:
$ bonnie++ -d /mnt/tmp/blah/ -s 2048
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
dv1 2G 43924 93 66645 29 31763 3 49976 93 71902 1 329.0 0Results RAID-1 4G partition, LVM on top of it (one PV, one VG, one LV), formatted as ext3:
$ bonnie++ -d /mnt/tmp/blah/ -s 2048
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
dv1 2G 45236 95 62809 29 34264 4 48406 91 71589 2 347.9 0As previously, but now running in Xen, where root is an ext3 image in a logical volume:
# mdadm -A /dev/md2 /dev/sda3 /dev/sdb3
Outside:
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
dv1 1G 45744 95 73869 30 30175 3 45599 84 71956 2 309.4 0Inside:
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
localhost.locald 1G 45288 94 66781 25 25768 2 41047 39 58338 1 397.4 0Inside, now in a volume group consisting of two partitions:
Version 1.03 ------Sequential Output------ --Sequential Input- --Random-
-Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
parttest 1G 44894 93 71689 27 26850 2 43208 41 63040 1 353.1 0
Todo:
If you do a straight install of CentOS to an image with virt-manager, you'll get partitions in there. To mount the first partition:
# lomount -t ext3 -partition 1 -diskimage /var/lib/xen/images/testimage /mnt/image
See also Fedora Wiki