The Resolution process documented below using the attached remove-disks-lvm script can be used to remove disk volumes that have already been assigned to a MOI appliance LVM in either the x86 or s390 Linux environments. There are also manual steps that accomplish the same disk removal if the script does not work correctly.
Mainframe Operational Intelligence Release : 2.0
Service Pack: 2.0.*
Component : MFOPIN
Due to an internal DASD migration, customer was able to format new DASD volumes for his zLinux MOI appliance and complete the appliance installation. In addition, the customer was able to remove unwanted DASD volumes that had been incorrectly assigned to LVM's using the following process with the attached script. There are also manual steps documented after the script process below.
Removing disk storage devices from MOI LVMs
Backups are strongly recommended prior to removing storage. If possible, we recommend you take a VM snapshot.
Automated process for removing storage
sudo chmod +x remove-disks-lvm_1606795749367.sh
$ ./remove-disks-lvm_1606795749367.sh /lvm1 /dev/sdf1 /dev/sdk1
$ ./remove-disks-lvm_1606795749367.sh /lvm2 /dev/sdg1 /dev/sdj1
$ ./remove-disks-lvm_1606795749367.sh /lvm3 /dev/sdh1 /dev/sdi1
where /dev/sdf1, /dev/sdk1,... are the disks to be removed.
Manual process for removing storage
The following process can be used to manually remove disks. For example, you want to remove the disk /dev/dasdg1 from the LVM mounted at /lvm1
Mounted at /lvm1 is the following LVM: /dev/lvm1_vg/lvm1_lv where the LVM name is lvm1_lv and the LVM volume group is lvm1_vg.
$ bin/plex startup -d --bg=wait