Given : SLES 11 SP1
Task: Create a LVM partition on /dev/sdb. In case the partition already exist just mount/import the LV.
Problem: I am able to create the LVM partition but i do not know how "import" a already existing partition nor how to prevent autoyast to overwrite the existing one.
Ny current thoughts are using a pre-script or rule to check if there is a already configured /dev/sdb with lvm . In case none exist the following config will be applied , in case a LVM partiton already exist a post script will import these partition from /dev/sdb
Still i would like to let autoyast do this but i do not know how ?
Any tips or already working config ?
It works with a pre-script and some sed trickery. I have a non-destructive default in partitioning section and change it when no lvm vg is detected in pre-script. I expect volume group rootvg on disk /dev/sdb
I will take your approach and i will add a importvg (logic) to a post script in case a datavg (lvm) exist already on /dev/sdb Thx Hajo -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner@opensuse.org