[Starlingx-discuss] MultiOS: Short cut to create compliant logical volumes to ease StartlingX testing
Hello, I have created a small script that can be used to recreate the set of logical volumes expected by StartlingX. It can be handy to manually create compatible LV environment. WARNING: Please note that it will wipe out all pointed devices. Size repartition is done in automatically % of the available space following CentOS provided example. It might not be realistic is a real environment but still good enough for test. Enjoy. Dominig --------- syntax ------------------- sudo sh create-lvm.sh -f -c /dev/sda1,/dev/sda2 -n /dev/sda3,/dev/sda4^C dominig@dominig-t480:~/starlingx/scripts> sudo sh create-lvm.sh -h Creates multiple Logical Volume as required by StartlinX project WARNING: it will wipe out ALL devices pointed by the command Usage: create-lvm.sh [-v] [-f] [-t fstype] -c Device1[,Device2] -n DeviceA[,DeviceB] -v: Verbose debug -f: Format logical vomumes after creation -t fstype change the default fstype from btrfs -c harddrive device comma seprated list (no space) to be used for cgts logical drive -n harddrive device comma seprated list (no space) to be used for nova logical drive NOTE: Requires to be run as root and all targetted devices to be unmounted ex: sudo sh create-lvm.sh -v -c /dev/sda1 -n /dev/sda3 sudo sh create-lvm.sh -f -t ext4 -c /dev/sda1,/dev/sda2 -n /dev/sda3,/dev/sda4 -- Dominig ar Foll Senior Software Architect Intel Open Source Technology Centre
participants (1)
-
Dominig ar Foll (Intel Open Source)