Description of problem: parted reported the partition size as 100GB, so I used that size for the new volume, bu apparently 100GB is not recognized by ssm. I do not know whether parted or ssm or both need to be changed, but it would be very nice if they both used the same size syntax. [root@host ~]# parted /dev/sdb1 print Error: /dev/sdb1: unrecognised disk label Model: Unknown (unknown) Disk /dev/sdb1: 100GB Sector size (logical/physical): 512B/4096B Partition Table: unknown Disk Flags: [root@host ~]# ssm create --pool Setup --name ISO --size 100GB --fstype ext4 /dev/sdb1 /home/qemu/ISO Traceback (most recent call last): File "/usr/bin/ssm", line 33, in <module> sys.exit(main.main()) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main args.func(args) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create args.size = misc.get_real_size(args.size) File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size "size \'{}\' argument.".format(size)) Exception: Not supported unit in the size '100GB' argument. [root@host ~]# Version-Release number of selected component: system-storage-manager-0.2-1.fc18 Additional info: cmdline: /usr/bin/python /usr/bin/ssm create --pool Setup --name ISO --size 100GB --fstype ext4 /dev/sdb1 /home/qemu/ISO executable: /usr/bin/ssm kernel: 3.8.1-201.fc18.x86_64 uid: 0 Truncated backtrace: misc.py:140:get_real_size:Exception: Not supported unit in the size '100GB' argument. Traceback (most recent call last): File "/usr/bin/ssm", line 33, in <module> sys.exit(main.main()) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main args.func(args) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create args.size = misc.get_real_size(args.size) File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size "size \'{}\' argument.".format(size)) Exception: Not supported unit in the size '100GB' argument. Local variables in innermost frame: size: '100GB'
Created attachment 707994 [details] File: backtrace
Created attachment 707995 [details] File: core_backtrace
Created attachment 707996 [details] File: environ
The units do not agree even within ssm: [root@host ~]# ssm list devices ----------------------------------------------------------------------------- Device Free Used Total Pool Mount point ----------------------------------------------------------------------------- /dev/sda 149.05 GB PARTITIONED /dev/sda1 500.00 MB /boot /dev/sda2 0.00 KB 148.56 GB 148.56 GB fedora_host /dev/sdb 1.82 TB /dev/sdb1 931.32 GB 0.00 KB 93.13 GB Setup /dev/sdb2 838.19 GB /dev/sdc 3.75 GB /dev/sdc1 3.74 GB /run/media/root/LIVE ----------------------------------------------------------------------------- [root@host ~]# ssm create --pool Setup --name ISO --size 93.13GB --fstype ext4 /dev/sdb1 /home/qemu/ISO Traceback (most recent call last): File "/usr/bin/ssm", line 33, in <module> sys.exit(main.main()) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 1485, in main args.func(args) File "/usr/lib/python2.7/site-packages/ssmlib/main.py", line 904, in create args.size = misc.get_real_size(args.size) File "/usr/lib/python2.7/site-packages/ssmlib/misc.py", line 140, in get_real_size "size \'{}\' argument.".format(size)) Exception: Not supported unit in the size '93.13GB' argument. [root@host ~]#
This message is a reminder that Fedora 18 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 18. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '18'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 18's end of life. Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 18 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior to Fedora 18's end of life. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Please see the ssm manual page: "Gives the size to allocate for the new logical volume A size suffix K|k, M|m, G|g, T|t, P|p, E|e can be used to define 'power of two' units. If no unit is provided, it defaults to kilobytes. This is optional if if not given maximum possible size will be used." It means that units in format such as GB are not supported. Although this might change in the new version of ssm, we're not going to change it in f18. Thanks! -Lukas