Ubuntu – Unable to automatically remove LVM data

installationlvmpartitionUbuntuubuntu-12.04

I am trying to install ubuntu 12.04 via preceed config onto Dell PowerEdge R710. I had RedHat installed on the box then I tried installing ubuntu 12.04, then auto install popping with Unable to automatically remove LVM data message.

Complete Message: Because the volume groups on the selected device also consist of physical volumes on other devices. it is not considered safe to remove its lvm data automatically. If you wish to use this device for paritioning, please remove its lvm data first.

couple of blogs suggested to use this preceed option

d-i partman-lvm/device_remove_lvm_span boolean true

But no use, I still get the same message.

Also one more question: Ubuntu preceed auto install on dell servers showing first disk as /dev/sdc not /dev/sda. Any idea.

Appreciate for your answer.

Best Answer

This is what helped me to have in my zesty.preseed to automatically reinstall machines with ubuntu that had centos on them:

d-i partman/early_command string lvremove --select all -ff -y; vgremove --select all -ff -y; pvremove /dev/sd* -ff -y