On 15/05/10 11:47, Mike Burns wrote:
On Sat, 2010-05-15 at 10:21 +1000, Geoff O'Callaghan wrote:
Hi There,


[snip]

Q2.

I did a build of the ovirt git next branch and created the
ovirt-node-iso to test and I noticed that it had an unexpected result
related to thinking that my single  standard local sata drive was part
of a multipath configuration.  This was due to a null
/etc/multipath.conf file which is created specifically as part of the
node/recipe/common-post.ks

What is the plan in this area?   Will multipath enablement be forced or
as an option to enable it on the ovirt-config-storage menu?

Multipath is the default for all devices that have wwids.  As of now,
there is no plan to change this.  The decision to use multipath for all
devices if possible makes the setup much cleaner and doesn't introduce
any negatives that I see.  It might be possible to make it configurable,
but I don't think that it's trivial to do so.

ok, that's fine and is probably a wise choice given the environment ovirt is likely to find itself :)

Anyway, the problem with my system is definitely related to how the multipath device gets set up as you can see in the attached log.



Q3.

If I change common-post.ks to add a /etc/multipath.conf with a blacklist
of '*' it then correctly identifies my local drive for the install -
however, when doing the storage allocation it gets the sizes wrong so
there is a calculation bug somewhere.  I didn't see it in bugzilla so
it's either a new  bug or something wrong with my specific setup or both
:)   Is it something someone has noticed?

I haven't noticed any calculation errors recently, though I admit that I
haven't looked that closely recently.  When using multipath, do you see
the same issue?

Can you provide the ovirt.log file from the install that shows the
incorrect size?

The incorrect size came when I had a multipath.conf file that blacklisted '*'.

In the case of the ovirt.log file attached I am running a vanilla build from the git next branch.

As you can see from the log it makes a bit of a mess of it. To supplement the log I have:

[r...@localhost ~]# multipath -ll
1ATA WDC WD1200JB-00FUA0 WD-WCAES102461 dm-1 ATA,WDC WD1200JB-00F
size=112G features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=1 status=active
  `- 6:0:0:0 sda 8:0 active ready running

[r...@localhost ~]# dmsetup ls --target=multipath
1ATA     WDC WD1200JB-00FUA0                     WD-WCAES1024619        (253, 1)

and attached as log.txt I have the output of a bash -x ovirt-config-storage

ps. sorry about the delay getting back to you - hopefully you can spot the problem.
May 18 06:57:30 Starting ovirt-early
oVirt Node release 1.9.3 Beta (0.fc12.20100518051459git1abef0a)
May 18 06:57:30 Updating /etc/default/ovirt
May 18 06:57:30 Updating OVIRT_BOOTPARAMS to 'console=tty0 console=ttyS0,115200n8'
May 18 06:57:31 Configuring the manangement interface.
May 18 06:57:31 Unmanaged node: no management interface to configure.
May 18 06:57:31 Completed ovirt-early
May 18 06:57:31 Node is operating in unmanaged mode.
May 18 06:57:31 Completed ovirt-awake: RETVAL=0
May 18 06:57:31 Starting ovirt
May 18 06:57:31 Completed ovirt
May 18 06:57:40 Starting ovirt-post
May 18 06:57:40 Waiting for libvirt to finish initializing...
May 18 06:57:42 Hardware virtualization detected
WARNING: persistent config storage not available
/etc/rc3.d/S98ovirt-post: line 71: /etc/libvirt/krb5.tab: No such file or directory
May 18 06:57:42 Completed ovirt-post




 Storage Configuration

1) Enable iSCSI Target	    4) Commit Changes And Quit
2) Configure Storage	    5) Return To Menu
3) Review
Choose an option: 

Please select the disk to use for the Root.

device-mapper: deps ioctl failed: No such device or address
Command failed
/dev/mapper/1ATA: No such file or directory

sfdisk: cannot open /dev/mapper/1ATA for reading
(standard_in) 1: syntax error
/dev/mapper/1ATA ( MB)
Disk Identifier: /dev/mapper/1ATA

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda
1) /dev/mapper/1ATA  3) Abort
2) /dev/sda	     4) Manual Selection
Choose an option: 
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda


Please select the disk to use for the HostVG.

device-mapper: deps ioctl failed: No such device or address
Command failed
/dev/mapper/1ATA: No such file or directory

sfdisk: cannot open /dev/mapper/1ATA for reading
(standard_in) 1: syntax error
/dev/mapper/1ATA ( MB)
Disk Identifier: /dev/mapper/1ATA

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda
1) /dev/mapper/1ATA  3) Abort
2) /dev/sda	     4) Manual Selection
Choose an option: 
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda
114473


Please configure storage partitions.

* Enter partition sizes in MB.
* A value of 0 indicates the partition should be disabled.
* If the partition is enabled, it will have a minimum valid size.
* Size remaining value is approximate due to cylinder rounding
  during partitioning.
* For the Data partition, a size of -1 indicates that the
  partition should use up the remaining space on the disk.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.


The selected disk will be repartitioned as follows:
================================================
                   Root Drive: /dev/sda (114473 MB)
Disk Identifier: /dev/sda
                 HostVG Drive: /dev/sda (114473 MB)
Disk Identifier: /dev/sda
          Swap partition size: 3052 MB
  Installation partition size: 256 * 2 MB
 Configuration partition size: 5 MB
       Logging partition size: 2048 MB
          Data partition size: 108856 MB

Use these default values ([Y]es/[N]o)? Y


 Storage Configuration

1) Enable iSCSI Target
2) Configure Storage
3) Review
4) Commit Changes And Quit
5) Return To Menu
Choose an option: !!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!    If you proceed, all data on your selected storage  !!WARNING!!
!!WARNING!!    device will be destroyed and your hard disk        !!WARNING!!
!!WARNING!!    will be irreversably reconfigured                  !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
Do you wish to proceed ([Y]es/[N]o)? Y


WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk doesn't support GPT. Use GNU Parted.

/dev/sda (114473 MB)
Disk Identifier: /dev/sda
Required Space : 5622 MB

May 18 07:03:15 Saving parameters
May 18 07:03:15 Removing old LVM partitions
May 18 07:03:15 Starting partitioning of /dev/sda
May 18 07:03:15 Partitioning drive: /dev/sda
May 18 07:03:15 Wiping old boot sector
1+0 records in
1+0 records out
1048576 bytes (1.0 MB) copied, 0.00556328 s, 188 MB/s
May 18 07:03:16 Labeling Drive: /dev/sda
May 18 07:03:16 Creating Root and RootBackup Partitions
mke2fs 1.41.9 (22-Aug-2009)
/dev/sda1 is apparently in use by the system; will not make a filesystem here!

ERROR: Disk Partitioning FAILED. See /var/log/ovirt.log


+ . /usr/libexec/ovirt-functions
++ OVIRT_LOGFILE=/var/log/ovirt.log
++ OVIRT_TMP_LOGFILE=/tmp/ovirt.log
++ _log_status=1
++ OVIRT_LABEL=OVIRT
++ NODE_SYSCONFIG=/etc/sysconfig/node-config
++ OVIRT_DEFAULTS=/etc/default/ovirt
++ '[' -f /etc/sysconfig/node-config ']'
++ . /etc/sysconfig/node-config
+++ OVIRT_RUNTIME_MODE=none
+++ OVIRT_MANAGEMENT_SERVER=
+++ OVIRT_MANAGEMENT_PORT=
+++ KEYTAB_FILE=/etc/libvirt/krb5.tab
++ '[' -f /etc/default/ovirt ']'
++ . /etc/default/ovirt
+++ OVIRT_BOOTPARAMS='console=tty0 console=ttyS0,115200n8'
++ OVIRT_STANDALONE=0
++ OVIRT_BACKUP_DIR=/var/lib/ovirt-backup
++ MANAGEMENT_SCRIPTS_DIR=/etc/node.d
++ OVIRT_CONFIG_FILES=' /etc/sysconfig/network-scripts/ifcfg-*          
/etc/rsyslog.conf                               /etc/libvirt/libvirtd.conf      
                /etc/sasl2/libvirt.conf                         
/etc/libvirt/passwd.db                          /etc/passwd                     
                /etc/shadow                                     
/etc/ssh/ssh_host*_key*                         /etc/default/ovirt              
                /etc/sysconfig/network                          
/etc/collectd.conf                              
/etc/logrotate.d/ovirt-logrotate.conf
'
+++ basename /usr/libexec/ovirt-config-storage
++ '[' ovirt-config-storage = ovirt-functions ']'
++ basename /usr/libexec/ovirt-config-storage
+ ME=ovirt-config-storage
+ trap '__st=$?; stop_log; exit $__st' 0
+ trap 'exit $?' 1 2 13 15
+ is_booted_from_local_disk
+ grep -q /dev/HostVG/ /proc/cmdline
+ default_overcommit=0.5
+ default_boot_size=50
+ default_root_size=256
+ default_config_size=5
+ default_logging_size=2048
+ default_data_size=-1
+ boot_min_size=50
+ root_min_size=256
+ config_min_size=5
+ logging_min_size=5
+ data_min_size=5
+ swap_min_size=5
++ awk '/MemTotal:/ { print $2 }' /proc/meminfo
+ MEM_SIZE_MB=2056620
+ case $MEM_SIZE_MB in
++ echo 'scale=0; 2056620 / 1024;'
++ bc -l
+ MEM_SIZE_MB=2008
+ overcommit=0.5
++ echo 'scale=0; (2008 * (0.5 * 10))/10;'
++ bc -l
+ OVERCOMMIT_SWAP_SIZE=1004
++ echo 'scale=0; 2008/1024;'
++ bc -l
+ MEM_SIZE_GB=1
+ '[' 1 -le 4 ']'
+ BASE_SWAP_SIZE=2048
++ echo 'scale=0; 2048 + 1004;'
++ bc -l
+ CALC_SWAP_SIZE=3052
+ BOOT_SIZE=50
+ SWAP_SIZE=3052
+ ROOT_SIZE=256
+ CONFIG_SIZE=5
+ LOGGING_SIZE=2048
+ DATA_SIZE=-1
+ '[' -n '' ']'
+ '[' -f /etc/fedora-release ']'
+ LABEL_TYPE=gpt
+ '[' '' == AUTO ']'
+ OPTIONS='"Enable iSCSI Target" "Configure Storage" "Review" "Commit Changes 
And Quit" "Return To Menu"'
+ eval set '"Enable' iSCSI 'Target"' '"Configure' 'Storage"' '"Review"' 
'"Commit' Changes And 'Quit"' '"Return' To 'Menu"'
++ set 'Enable iSCSI Target' 'Configure Storage' Review 'Commit Changes And 
Quit' 'Return To Menu'
+ PS3='Choose an option: '
+ true
+ printf '\n\n Storage Configuration\n\n'


 Storage Configuration

+ select OPTION in '"$@"'
1) Enable iSCSI Target      4) Commit Changes And Quit
2) Configure Storage        5) Return To Menu
3) Review
Choose an option: + case "$OPTION" in
+ do_configure
+ local name_and_size
+ '[' '' == y ']'
+ printf '\n\nPlease select the disk to use for the Root.\n\n'


Please select the disk to use for the Root.

++ get_dev_name
+++ find /dev/disk/by-id -mindepth 1 -not -name '*-part*'
++ local 'byid_list=/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WCAES1024619
/dev/disk/by-id/ata-WDC_WD1200JB-00FUA0_WD-WCAES1024619'
++ local devices=
+++ ls -db /sys/block/sda
++ for drive in '$(ls -db /sys/block/[hsv]d*)'
+++ basename /sys/block/sda
++ drive=/dev/sda
++ test -z ''
++ devices=/dev/sda
++ d=
++ for d in '$byid_list'
+++ readlink -f /dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WCAES1024619
++ local devicename=/dev/sda
+++ awk '/^ID_BUS=/ { print $1 }'
++++ basename /dev/sda
+++ udevadm info --path=/sys/block/sda --query=property
++ local bus=ID_BUS=ata
++ '[' -n ID_BUS=ata ']'
++ devices='/dev/sda /dev/sda'
++ for d in '$byid_list'
+++ readlink -f /dev/disk/by-id/ata-WDC_WD1200JB-00FUA0_WD-WCAES1024619
++ local devicename=/dev/sda
+++ awk '/^ID_BUS=/ { print $1 }'
++++ basename /dev/sda
+++ udevadm info --path=/sys/block/sda --query=property
++ local bus=ID_BUS=ata
++ '[' -n ID_BUS=ata ']'
++ devices='/dev/sda /dev/sda /dev/sda'
+++ ls /dev/cciss
++ local devs_to_remove
+++ dmsetup ls --target=multipath
+++ awk '{print $1}'
++ for dev in '$(dmsetup ls --target=multipath | awk '\''{print $1}'\'')'
++ devices='/dev/sda /dev/sda /dev/sda /dev/mapper/1ATA'
++ local sd_devs=
++ get_multipath_devices 1ATA sd_devs
+++ basename 1ATA
++ local mpath_device=mpath-1ATA
++ local deplist_var=sd_devs
++ local deplist=
+++ dmsetup deps -u mpath-1ATA
+++ grep '[0-9]:[0-9]'
+++ sed -r 's/\(([0-9]+), ([0-9]+)\)/\1:\2/g'
device-mapper: deps ioctl failed: No such device or address
Command failed
+++ sed 's/ /\n/g'
++ local deps=
++ local device=
++ eval 'sd_devs=$deplist'
+++ sd_devs=
+++ multipath -ll 1ATA
+++ grep 1ATA
+++ sed -r 's/^.*(dm-[0-9]+ ).*$/\1/'
++ local dm_dev=
++ devs_to_remove='  '
++ local dev_list
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda'
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda /dev/sda'
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda /dev/sda /dev/sda'
++ for dev in '$devices'
+++ basename /dev/mapper/1ATA
++ [[ !    =~ 1ATA  ]]
++ dev_list=' /dev/sda /dev/sda /dev/sda /dev/mapper/1ATA'
+++ tr ' ' '\n'
+++ xargs
+++ echo /dev/sda /dev/sda /dev/sda /dev/mapper/1ATA
+++ sort -u
++ devices='/dev/mapper/1ATA /dev/sda'
+++ echo '/dev/mapper/1ATA /dev/sda'
+++ wc -w
++ local num_devices=2
++ case $num_devices in
++ for d in '$devices'
++ get_drive_size /dev/mapper/1ATA
++ local drive=/dev/mapper/1ATA
++ local space_var=
+++ sfdisk -s /dev/mapper/1ATA
/dev/mapper/1ATA: No such file or directory

sfdisk: cannot open /dev/mapper/1ATA for reading
++ local size=
+++ echo 'scale=0;  / 1024'
+++ bc -l
(standard_in) 1: syntax error
++ size=
++ echo '/dev/mapper/1ATA ( MB)'
/dev/mapper/1ATA ( MB)
++ echo 'Disk Identifier: /dev/mapper/1ATA'
Disk Identifier: /dev/mapper/1ATA
++ '[' -n '' ']'
++ for d in '$devices'
++ get_drive_size /dev/sda
++ local drive=/dev/sda
++ local space_var=
+++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

++ local size=117220824
+++ echo 'scale=0; 117220824 / 1024'
+++ bc -l
++ size=114473
++ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
++ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
++ '[' -n '' ']'
++ local 'choices=/dev/mapper/1ATA /dev/sda Abort'
++ select device in '$choices' '"Manual Selection"'
1) /dev/mapper/1ATA  3) Abort
2) /dev/sda          4) Manual Selection
Choose an option: ++ test /dev/sda = Abort
++ test /dev/sda = 'Manual selection'
++ test -z /dev/sda
++ echo /dev/sda
++ return 0
+ ROOTDRIVE=/dev/sda
+ get_drive_size /dev/sda ROOTDRIVESPACE
+ local drive=/dev/sda
+ local space_var=ROOTDRIVESPACE
++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

+ local size=117220824
++ echo 'scale=0; 117220824 / 1024'
++ bc -l
+ size=114473
+ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
+ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
+ '[' -n ROOTDRIVESPACE ']'
+ eval ROOTDRIVESPACE=114473
++ ROOTDRIVESPACE=114473
+ printf '\n\nPlease select the disk to use for the HostVG.\n\n'


Please select the disk to use for the HostVG.

++ get_dev_name
+++ find /dev/disk/by-id -mindepth 1 -not -name '*-part*'
++ local 'byid_list=/dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WCAES1024619
/dev/disk/by-id/ata-WDC_WD1200JB-00FUA0_WD-WCAES1024619'
++ local devices=
+++ ls -db /sys/block/sda
++ for drive in '$(ls -db /sys/block/[hsv]d*)'
+++ basename /sys/block/sda
++ drive=/dev/sda
++ test -z ''
++ devices=/dev/sda
++ d=
++ for d in '$byid_list'
+++ readlink -f /dev/disk/by-id/scsi-SATA_WDC_WD1200JB-00WD-WCAES1024619
++ local devicename=/dev/sda
+++ awk '/^ID_BUS=/ { print $1 }'
++++ basename /dev/sda
+++ udevadm info --path=/sys/block/sda --query=property
++ local bus=ID_BUS=ata
++ '[' -n ID_BUS=ata ']'
++ devices='/dev/sda /dev/sda'
++ for d in '$byid_list'
+++ readlink -f /dev/disk/by-id/ata-WDC_WD1200JB-00FUA0_WD-WCAES1024619
++ local devicename=/dev/sda
+++ awk '/^ID_BUS=/ { print $1 }'
++++ basename /dev/sda
+++ udevadm info --path=/sys/block/sda --query=property
++ local bus=ID_BUS=ata
++ '[' -n ID_BUS=ata ']'
++ devices='/dev/sda /dev/sda /dev/sda'
+++ ls /dev/cciss
++ local devs_to_remove
+++ dmsetup ls --target=multipath
+++ awk '{print $1}'
++ for dev in '$(dmsetup ls --target=multipath | awk '\''{print $1}'\'')'
++ devices='/dev/sda /dev/sda /dev/sda /dev/mapper/1ATA'
++ local sd_devs=
++ get_multipath_devices 1ATA sd_devs
+++ basename 1ATA
++ local mpath_device=mpath-1ATA
++ local deplist_var=sd_devs
++ local deplist=
+++ dmsetup deps -u mpath-1ATA
+++ grep '[0-9]:[0-9]'
+++ sed -r 's/\(([0-9]+), ([0-9]+)\)/\1:\2/g'
device-mapper: deps ioctl failed: No such device or address
Command failed
+++ sed 's/ /\n/g'
++ local deps=
++ local device=
++ eval 'sd_devs=$deplist'
+++ sd_devs=
+++ grep 1ATA
+++ sed -r 's/^.*(dm-[0-9]+ ).*$/\1/'
+++ multipath -ll 1ATA
++ local dm_dev=
++ devs_to_remove='  '
++ local dev_list
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda'
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda /dev/sda'
++ for dev in '$devices'
+++ basename /dev/sda
++ [[ !    =~ sda  ]]
++ dev_list=' /dev/sda /dev/sda /dev/sda'
++ for dev in '$devices'
+++ basename /dev/mapper/1ATA
++ [[ !    =~ 1ATA  ]]
++ dev_list=' /dev/sda /dev/sda /dev/sda /dev/mapper/1ATA'
+++ echo /dev/sda /dev/sda /dev/sda /dev/mapper/1ATA
+++ sort -u
+++ xargs
+++ tr ' ' '\n'
++ devices='/dev/mapper/1ATA /dev/sda'
+++ wc -w
+++ echo '/dev/mapper/1ATA /dev/sda'
++ local num_devices=2
++ case $num_devices in
++ for d in '$devices'
++ get_drive_size /dev/mapper/1ATA
++ local drive=/dev/mapper/1ATA
++ local space_var=
+++ sfdisk -s /dev/mapper/1ATA
/dev/mapper/1ATA: No such file or directory

sfdisk: cannot open /dev/mapper/1ATA for reading
++ local size=
+++ echo 'scale=0;  / 1024'
+++ bc -l
(standard_in) 1: syntax error
++ size=
++ echo '/dev/mapper/1ATA ( MB)'
/dev/mapper/1ATA ( MB)
++ echo 'Disk Identifier: /dev/mapper/1ATA'
Disk Identifier: /dev/mapper/1ATA
++ '[' -n '' ']'
++ for d in '$devices'
++ get_drive_size /dev/sda
++ local drive=/dev/sda
++ local space_var=
+++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

++ local size=117220824
+++ echo 'scale=0; 117220824 / 1024'
+++ bc -l
++ size=114473
++ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
++ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
++ '[' -n '' ']'
++ local 'choices=/dev/mapper/1ATA /dev/sda Abort'
++ select device in '$choices' '"Manual Selection"'
1) /dev/mapper/1ATA  3) Abort
2) /dev/sda          4) Manual Selection
Choose an option: ++ test /dev/sda = Abort
++ test /dev/sda = 'Manual selection'
++ test -z /dev/sda
++ echo /dev/sda
++ return 0
+ HOSTVGDRIVE=/dev/sda
+ local skipped=false
+ check_existing_hostvg /dev/sda devs
+ local install_dev=/dev/sda
+ local devices_var=devs
+ '[' -z /dev/sda ']'
++ pvs -o pv_name,vg_name --noheadings
++ /sbin/pvs -o pv_name,vg_name --noheadings
++ awk '{print $1}'
++ grep -v /dev/sda
++ grep HostVG
+ devices=
+ rc=1
+ '[' -n '' ']'
+ test -z devs
+ eval devs=
++ devs=
+ return 1
+ false
+ get_drive_size /dev/sda HOSTVGDRIVESPACE
+ local drive=/dev/sda
+ local space_var=HOSTVGDRIVESPACE
++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

+ local size=117220824
++ echo 'scale=0; 117220824 / 1024'
++ bc -l
+ size=114473
+ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
+ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
+ '[' -n HOSTVGDRIVESPACE ']'
+ eval HOSTVGDRIVESPACE=114473
++ HOSTVGDRIVESPACE=114473
+ echo 114473
114473
+ printf '\n\nPlease configure storage partitions.\n\n'


Please configure storage partitions.

+ printf '* Enter partition sizes in MB.\n'
* Enter partition sizes in MB.
+ printf '* A value of 0 indicates the partition should be disabled.\n'
* A value of 0 indicates the partition should be disabled.
+ printf '* If the partition is enabled, it will have a minimum valid size.\n'
* If the partition is enabled, it will have a minimum valid size.
+ printf '* Size remaining value is approximate due to cylinder rounding\n'
* Size remaining value is approximate due to cylinder rounding
+ printf '  during partitioning.\n'
  during partitioning.
+ printf '* For the Data partition, a size of -1 indicates that the\n'
* For the Data partition, a size of -1 indicates that the
+ printf '  partition should use up the remaining space on the disk.\n\n'
  partition should use up the remaining space on the disk.

+ do_review
+ [[ -z /dev/sda ]]
+ local is_negative=0
+ '[' '' '!=' y ']'
+ local 'data_size_display=-1 MB'
+ '[' -1 = -1 ']'
+ '[' /dev/sda == /dev/sda ']'
+ local remaining_mb=108856
+ test 108856 -lt 0
+ data_size_display='108856 MB'
+ cat
++ get_drive_size /dev/sda
++ local drive=/dev/sda
++ local space_var=
+++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

++ local size=117220824
+++ echo 'scale=0; 117220824 / 1024'
+++ bc -l
++ size=114473
++ echo '/dev/sda (114473 MB)'
++ echo 'Disk Identifier: /dev/sda'
++ '[' -n '' ']'
++ get_drive_size /dev/sda
++ local drive=/dev/sda
++ local space_var=
+++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

++ local size=117220824
+++ echo 'scale=0; 117220824 / 1024'
+++ bc -l
++ size=114473
++ echo '/dev/sda (114473 MB)'
++ echo 'Disk Identifier: /dev/sda'
++ '[' -n '' ']'

The selected disk will be repartitioned as follows:
================================================
                   Root Drive: /dev/sda (114473 MB)
Disk Identifier: /dev/sda
                 HostVG Drive: /dev/sda (114473 MB)
Disk Identifier: /dev/sda
          Swap partition size: 3052 MB
  Installation partition size: 256 * 2 MB
 Configuration partition size: 5 MB
       Logging partition size: 2048 MB
          Data partition size: 108856 MB

+ return 0
+ ask_yes_or_no 'Use these default values ([Y]es/[N]o)?'
+ local 'prompt=Use these default values ([Y]es/[N]o)?'
+ local required=true
+ local allow_abort=false
+ true
+ read -ep 'Use these default values ([Y]es/[N]o)? '
[?1034hUse these default values ([Y]es/[N]o)? Y
+ case $REPLY in
+ return 0
+ return
+ break
+ true
+ printf '\n\n Storage Configuration\n\n'


 Storage Configuration

+ select OPTION in '"$@"'
1) Enable iSCSI Target
2) Configure Storage
3) Review
4) Commit Changes And Quit
5) Return To Menu
Choose an option: + case "$OPTION" in
+ do_confirm
+ [[ -z /dev/sda ]]
+ true
+ sp='                                                    '
+ w='!!WARNING'
+ wb='!!WARNING!!'
+ w8='!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING'
+ printf '%s!!\n' 
'!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING' 
'!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING' 
'!!WARNING!!                                                    !!WARNING' 
'!!WARNING!!                                                    !!WARNING' 
'!!WARNING!!    If you proceed, all data on your selected storage  !!WARNING' 
'!!WARNING!!    device will be destroyed and your hard disk        !!WARNING' 
'!!WARNING!!    will be irreversably reconfigured                  !!WARNING' 
'!!WARNING!!                                                    !!WARNING' 
'!!WARNING!!                                                    !!WARNING' 
'!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING' 
'!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING'
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!    If you proceed, all data on your selected storage  !!WARNING!!
!!WARNING!!    device will be destroyed and your hard disk        !!WARNING!!
!!WARNING!!    will be irreversably reconfigured                  !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!                                                    !!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!WARNING!!
+ ask_yes_or_no 'Do you wish to proceed ([Y]es/[N]o)?'
+ local 'prompt=Do you wish to proceed ([Y]es/[N]o)?'
+ local required=true
+ local allow_abort=false
+ true
+ read -ep 'Do you wish to proceed ([Y]es/[N]o)? '
Do you wish to proceed ([Y]es/[N]o)? Y
+ case $REPLY in
+ return 0
+ check_partition_sizes
+ local disk_size need_size
+ local min_data_size=-1
+ '[' -1 = -1 ']'
+ min_data_size=5
+ printf '\n'

+ '[' '' == y ']'
+ get_drive_size /dev/sda ROOTDRIVESPACE
+ local drive=/dev/sda
+ local space_var=ROOTDRIVESPACE
++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

+ local size=117220824
++ echo 'scale=0; 117220824 / 1024'
++ bc -l
+ size=114473
+ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
+ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
+ '[' -n ROOTDRIVESPACE ']'
+ eval ROOTDRIVESPACE=114473
++ ROOTDRIVESPACE=114473
+ get_drive_size /dev/sda HOSTVGDRIVESPACE
+ local drive=/dev/sda
+ local space_var=HOSTVGDRIVESPACE
++ sfdisk -s /dev/sda

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util sfdisk 
doesn't support GPT. Use GNU Parted.

+ local size=117220824
++ echo 'scale=0; 117220824 / 1024'
++ bc -l
+ size=114473
+ echo '/dev/sda (114473 MB)'
/dev/sda (114473 MB)
+ echo 'Disk Identifier: /dev/sda'
Disk Identifier: /dev/sda
+ '[' -n HOSTVGDRIVESPACE ']'
+ eval HOSTVGDRIVESPACE=114473
++ HOSTVGDRIVESPACE=114473
++ echo 'scale=0; 256 * 2'
++ bc -l
+ ROOT_NEED_SIZE=512
++ echo 'scale=0;' '3052 + 5 + 2048 + 5'
++ bc -l
+ HOSTVG_NEED_SIZE=5110
+ '[' /dev/sda == /dev/sda ']'
+ drive_list=ROOT
++ echo 'scale=0; 256 * 2 + 5110'
++ bc -l
+ ROOT_NEED_SIZE=5622
+ for drive in '$drive_list'
+++ echo ROOT_NEED_SIZE
++ eval 'echo ${ROOT_NEED_SIZE}'
+++ echo 5622
+ drive_need_size=5622
+++ echo ROOTDRIVESPACE
++ eval 'echo ${ROOTDRIVESPACE}'
+++ echo 114473
+ drive_disk_size=114473
+ '[' 5622 -gt 114473 ']'
+ printf 'Required Space : 5622 MB\n\n'
Required Space : 5622 MB

+ '[' '' '!=' y ']'
++ pvs -o pv_name,vg_name --noheadings
++ /sbin/pvs -o pv_name,vg_name --noheadings
++ awk '{ print $1 }'
++ grep HostVG
++ grep -v /dev/sda
+ devices=
+ rc=0
+ '[' -n '' ']'
+ return 0
+ perform_partitioning
+ [[ -z /dev/sda ]]
+ [[ -z '' ]]
+ [[ '' == \y ]]
+ start_log
+ '[' 1 = 1 ']'
+ exec
+ exec
+ exec
+ exec
Saving parameters
Removing old LVM partitions
Starting partitioning of /dev/sda
Partitioning drive: /dev/sda
Wiping old boot sector
Labeling Drive: /dev/sda
Creating Root and RootBackup Partitions
+ _log_status=1
+ exit 1
_______________________________________________
Ovirt-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ovirt-devel

Reply via email to