I tried unsuccessfully to follow a recent suggestion on this forum as to transferring 1GB from vg1-tmp (5.4G) to vg1-root (922M) (the suggestion was for vg1-home in place of my vg1-tmp). I integrated backup. My Debian amd64 wheezy raid mirror was booted with live/rescue SystemRescueCD x86-4.2.0 Code and output follow.
Code:
dd if=/dev/vg1/tmp | ssh 192.168.#.## dd of=/home/chiendarret/tmp/vg1-tmp
The same for vg1-root. OK in both cases along my LAN.
Code:
e2fsck -f /dev/mapper/vg1-tmp
14/366480 files, 7.1% non contiguous, 58681/1464320 blocks
Code:
umount /dev/mapper/vg1-tmp
Not mounted
Code:
resize2fs /dev/mapper/vg1-tmp 4G
resizing to 1048576 blocks long
Code:
lvreduce -L -1G /dev/mapper/vg1-tmp
reducing active logical volume to 4.59GiB
Code:
e2fsck -f /dev/mapper/vg1-tmp
14/260608 files 7.1% non contiguous, 53038/1048576 blocks
Code:
resize2fs /dev/mapper/vg1-tmp
file syst /dev/mapper/vg1-tmp is now 1202176 blocks long
Code:
umount /dev/mapper/vg1-root
not mounted
Code:
e2fsck -f /dev/mapper/vg1-root
22812/60928 files, 5.9% non contiguous, 22258/243712 blocks
Code:
lvextend -l +100%FREE /dev/mapper/vg1-root
extending logical vol root to 14.05 GiB
Code:
resize2fs /dev/mapper/vg1-root
Code:
mount /dev/mapper/vg1-tmp /tmp
Code:
mount /dev/mapper/vg1-root /
Booting Debian, I found the same "df -h" as initially, with warning that vg1-root is nearly full:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg1-root 922M 839M 35M 97% /
udev 10M 0 10M 0% /dev
tmpfs 1.6G 860K 1.6G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.2G 80K 3.2G 1% /run/shm
/dev/mapper/vg1-home 770G 271G 461G 37% /home
/dev/mapper/vg1-opt 9.1G 3.1G 5.6G 36% /opt
/dev/mapper/vg1-tmp 5.4G 12M 5.1G 1% /tmp
/dev/mapper/vg1-usr 55G 6.4G 46G 13% /usr
/dev/mapper/vg1-var 19G 2.5G 15G 15% /var
none 4.0K 0 4.0K 0% /sys/fs/cgroup
What's wrong?
Thanks for advice