[Starlingx-discuss] MultiOS: Short cut to create compliant logical volumes to ease StartlingX testing
Dominig ar Foll (Intel Open Source)
dominig.arfoll at fridu.net
Thu Oct 10 17:25:22 UTC 2019
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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create-lvm.sh
Type: application/x-shellscript
Size: 8716 bytes
Desc: not available
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20191010/d3a12d28/attachment.bin>
More information about the Starlingx-discuss
mailing list