Hi everyone,<br><br>I'm interested in taking 100gb from my /var partition and giving it to my /home partition. Both partitions are using the ext3 file system and it's all being co-ordinated by lvm. Here's my partition setups:<br>
<br><span style="font-family: courier new,monospace;">monad:~# df</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Filesystem 1K-blocks Used Available Use% Mounted on</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dev/mapper/vg00-root</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 19682584 1130420 17552332 7% /</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">tmpfs 4056128 0 4056128 0% /lib/init/rw</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">udev 10240 128 10112 2% /dev</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">tmpfs 4056128 0 4056128 0% /dev/shm</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/dev/md0 482090 58405 398793 13% /boot</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dev/mapper/vg00-home</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 196861252 186862044 0 100% /home</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dev/mapper/vg00-tmp 49214272 184428 46529852 1% /tmp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/dev/mapper/vg00-usr 49214272 3638008 43076272 8% /usr</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dev/mapper/vg00-usrlocal</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> 153796644 4885652 141098488 4% /usr/local</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/dev/mapper/vg00-var 196861252 621272 186240008 1% /var</span><br><br>(There's a mirroring RAID-1 underneath all that too, but I don't think this is an issue I need to concern myself with.)<br>
<br>Since I've not done this before, I wanted to get a basic sanity check out there from people who are hopefully more familiar with this kind of thing. My plan is (in pseudocode):<br><br>umount /var<br>resize2fs /dev/mapper/vg00-var -100G<br>
lvreduce /dev/mapper/vg00-var -100G<br>umount /home<br>lvextend /dev/mapper/vg00-home +100G<br>resize2f /dev/mapper/vg00-home +100G<br>mount /home<br>mount /var<br><br>Does this make sense? Do I need to worry about whether the /home and /var partitions are adjacent, given that I'm doing this all under lvm?<br>
<br>Thanks,<br> - Richard<br><br>