I installed a Deb 7 Srv w LVM w following partitions:
The end product should become a mail server (Citadel) and in time also a Web server.
Code:
df -hT Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 322M 141M 165M 46% / udev devtmpfs 10M 0 10M 0% /dev tmpfs tmpfs 100M 260K 100M 1% /run /dev/mapper/deb--srv-root ext4 322M 141M 165M 46% / tmpfs tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs tmpfs 200M 0 200M 0% /run/shm /dev/sda1 ext2 228M 18M 199M 9% /boot /dev/mapper/deb--srv-home ext4 233G 188M 221G 1% /home /dev/mapper/deb--srv-tmp ext4 368M 11M 339M 3% /tmp /dev/mapper/deb--srv-usr ext4 8,3G 481M 7,4G 6% /usr /dev/mapper/deb--srv-var ext4 2,8G 236M 2,4G 9% /var fdisk -l Disk /dev/sda: 268.4 GB, 268435456000 bytes 255 heads, 63 sectors/track, 32635 cylinders, total 524288000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00064033 Device Boot Start End Blocks Id System /dev/sda1 * 2048 499711 248832 83 Linux /dev/sda2 501758 524285951 261892097 5 Extended /dev/sda5 501760 524285951 261892096 8e Linux LVM Disk /dev/mapper/deb--srv-root: 348 MB, 348127232 bytes 255 heads, 63 sectors/track, 42 cylinders, total 679936 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-root doesn't contain a valid partition table Disk /dev/mapper/deb--srv-swap_1: 2143 MB, 2143289344 bytes 255 heads, 63 sectors/track, 260 cylinders, total 4186112 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-swap_1 doesn't contain a valid partition table Disk /dev/mapper/deb--srv-usr: 8996 MB, 8996782080 bytes 255 heads, 63 sectors/track, 1093 cylinders, total 17571840 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-usr doesn't contain a valid partition table Disk /dev/mapper/deb--srv-var: 2998 MB, 2998927360 bytes 255 heads, 63 sectors/track, 364 cylinders, total 5857280 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-var doesn't contain a valid partition table Disk /dev/mapper/deb--srv-tmp: 398 MB, 398458880 bytes 255 heads, 63 sectors/track, 48 cylinders, total 778240 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-tmp doesn't contain a valid partition table Disk /dev/mapper/deb--srv-home: 253.3 GB, 253289824256 bytes 255 heads, 63 sectors/track, 30794 cylinders, total 494706688 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/mapper/deb--srv-home doesn't contain a valid partition table pvs PV VG Fmt Attr PSize PFree /dev/sda5 deb-srv lvm2 a-- 249,76g 0 lvs LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert home deb-srv -wi-ao-- 235,89g root deb-srv -wi-ao-- 332,00m swap_1 deb-srv -wi-ao-- 2,00g tmp deb-srv -wi-ao-- 380,00m usr deb-srv -wi-ao-- 8,38g var deb-srv -wi-ao-- 2,79g
Now i want to _shrink_ the HOME partition so I can expand my VAR partition. Looked for guides but haven't found any site useful so far
I tried to find a way to do it when I installed it but it didn't seem to offer me this at this time even I looked around for a while.
How do I do this shrinking of HOME and extending of VAR partition??
please be fairly specific as Im not a pro yet