Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

is there a way to resize a lvm partition after processing dd command?

/dev/vg0/disk1 is 1G /dev/vg0/disk2 is 5G

after a dd partition, the size of /dev/vg0/disk2 become 1G.

dd if=/dev/vg0/disk1 of=/dev/vg0/disk2 bs=1M 

The issue here is that the logical volume partition size is reduced to the partition witch is backed up.

thx.

share|improve this question

1 Answer 1

The 1G size on /dev/vg0/disk2 is not the size of the vg, but the partion, i mind it is not a lvm problem. Like you said you have to resize the partition.

If you are in linux you can install the ufstools and try growfs.ufs.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.