I am trying to backup an LVM on one of my servers with the following command:
dd bs=4M conv=noerror,sync if=/dev/vg_volgroup/LvmName | ssh myuer@myip "dd of=/home/myuser/LvmName bs=4M conv=noerror,sync"
The disk from which I am reading this LVM has a bad sector returning:
dd: reading `/dev/vg_volgroup/Lvmname': Input/output error
224+1 records in
225+0 records out
943718400 bytes (944 MB) copied, 1313.12 s, 719 kB/s
Due to this bad sector I use conv=noerror,sync
The origianl LVM is 100GB and the output LVM is 130GB and growing. Does anyone know why this is or what I am doing wrong?
As far as I know noerror fills the defective blocks with zeros but I am unclear as to how this would make the LVM larger.
Does anyone have any tips or ideas?
Using kill -USR1 pid
Where pid is the pid of the dd process sending data returns the following:
601+1 records in
601+0 records out
2520776704 bytes (2.5 GB) copied, 4457.14 s, 566 kB/s
Yet the output file is now 154GB in size.