Error: at /usr/share/fai/setup-storage//Parser.pm line 382

Karl Koch cypher_head at gmx.net
Wed Sep 4 09:29:16 CEST 2013


Am 03.09.2013 14:46, schrieb Thomas Neumann:
> Which locale are you using? "42,75TiB" looks very much like a german locale
> has crept in there somewhere. The setup-storage parser complains it can not
> parse the value. (The parser expects '42.75TiB'.)
>
> possible QuickFix: add 'LC_ALL=C' to class/LAST.var (in your config space)
>
> This overwrite all locale specific variables to use the english locale. FAI
> automatically adds the class LAST to all clients, defining the variable
> there makes sure it is not overwritten by some other class.
>
>
> Strictly speaking this is a bug (or at least a serious coding flaw) in
> setup-storage. One should never parse command output without setting the
> desired locale beforehand.
Good Morning, is the same Problem with 'C':

# setup-storage >> store.txt
setup-storage is running in test-only mode
Starting setup-storage 1.4
     Finding all volume groups
     Finding volume group "vg_01"
     Finding all volume groups
     Finding volume group "vg_01"
     Finding all volume groups
     Finding volume group "vg_01"
     Finding all volume groups
     Finding volume group "vg_01"
Use of uninitialized value in string eq at 
/usr/share/fai/setup-storage//Commands.pm line 1142.
Cannot satisfy pre-depends for true: 
cleared2_/dev/sdb,exist_/dev/sdb1,flag_lvm_/dev/sdb1 -- system left 
untouched.

# locale -a
C
C.UTF-8
POSIX

/# locale
LANG=
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


Now exists on the server a Volume Group.

A log file is appended in


-------------- n?chster Teil --------------
disklist: sda
sdb
Using config file: /var/lib/fai/config/disk_config/ori-fra4
Input was:

## disk_config disk1
disk_config /dev/sda disklabel:msdos
primary /               16GiB  ext4 rw
primary swap            24GiB  swap defaults
logical /var/log        50GiB- ext4 rw


## disk_config disk2
disk_config sdb disklabel:gpt
primary -       4096-   -       -

disk_config lvm
vg vg_01    sdb1
vg_01-lv_01 /web  1GiB-    xfs    rw
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/0MMJ46TdOt 2> /tmp/ig5grBuJds
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 0.27TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start    End      Size     Type      File system     Flags
(STDOUT)  1      0.00TiB  0.02TiB  0.02TiB  primary   ext4
(STDOUT)  2      0.02TiB  0.04TiB  0.02TiB  primary   linux-swap(v1)
(STDOUT)  3      0.04TiB  0.27TiB  0.23TiB  extended                  lba
(STDOUT)  5      0.04TiB  0.27TiB  0.23TiB  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sda unit B print free 1> /tmp/5I89S4A2FO 2> /tmp/LhcOJJOnl_
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 299966445568B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start         End            Size           Type      File system     Flags
(STDOUT)         32256B        1048575B       1016320B                 Free Space
(STDOUT)  1      1048576B      17180917759B   17179869184B   primary   ext4
(STDOUT)  2      17180917760B  42950721535B   25769803776B   primary   linux-swap(v1)
(STDOUT)  3      42950721536B  299966445567B  257015724032B  extended                  lba
(STDOUT)  5      42950722560B  299966445567B  257015723008B  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sda unit chs print free 1> /tmp/5I_1TIzOP4 2> /tmp/YVX1kEgDgH
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sda: 36468,214,61
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 36468,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start        End           Type      File system     Flags
(STDOUT)         0,1,0        0,32,31                 Free Space
(STDOUT)  1      0,32,32      2088,202,33   primary   ext4
(STDOUT)  2      2088,202,34  5221,202,36   primary   linux-swap(v1)
(STDOUT)  3      5221,202,37  36468,214,61  extended                  lba
(STDOUT)  5      5221,202,39  36468,214,61  logical   ext4
(STDOUT) 
(CMD) parted -s /dev/sdb unit TiB print 1> /tmp/AiR4rO5VjZ 2> /tmp/_FPwax5ugK
Executing: parted -s /dev/sdb unit TiB print
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sdb: 42.8TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: gpt
(STDOUT) 
(STDOUT) Number  Start    End      Size     File system  Name     Flags
(STDOUT)  1      0.00TiB  42.8TiB  42.8TiB               primary  lvm
(STDOUT) 
(CMD) parted -s /dev/sdb unit B print free 1> /tmp/5UYTA9b9o1 2> /tmp/Y0_2daIp8a
Executing: parted -s /dev/sdb unit B print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sdb: 47008018292736B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: gpt
(STDOUT) 
(STDOUT) Number  Start     End              Size             File system  Name     Flags
(STDOUT)         17408B    1048575B         1031168B         Free Space
(STDOUT)  1      1048576B  47008018275839B  47008017227264B               primary  lvm
(STDOUT) 
(CMD) parted -s /dev/sdb unit chs print free 1> /tmp/Uc07VcmIW2 2> /tmp/xL5uKSv6WF
Executing: parted -s /dev/sdb unit chs print free
(STDOUT) Model: HP LOGICAL VOLUME (scsi)
(STDOUT) Disk /dev/sdb: 5715066,6,59
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 5715066,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: gpt
(STDOUT) 
(STDOUT) Number  Start    End           File system  Name     Flags
(STDOUT)         0,0,34   0,32,31       Free Space
(STDOUT)  1      0,32,32  5715066,6,26               primary  lvm
(STDOUT) 
(CMD) mdadm --examine --scan --verbose -c partitions 1> /tmp/ytX2_9RgbU 2> /tmp/6awq6rvlr3
Executing: mdadm --examine --scan --verbose -c partitions
Current disk layout
$VAR1 = {
          '/dev/sda' => {
                          'bios_heads' => '255',
                          'disklabel' => 'msdos',
                          'partitions' => {
                                            '1' => {
                                                     'count_byte' => '17179869184',
                                                     'flags' => '',
                                                     'filesystem' => 'ext4',
                                                     'begin_byte' => '1048576',
                                                     'is_extended' => 0,
                                                     'end_byte' => '17180917759'
                                                   },
                                            '3' => {
                                                     'count_byte' => '257015724032',
                                                     'flags' => 'lba',
                                                     'filesystem' => '',
                                                     'begin_byte' => '42950721536',
                                                     'is_extended' => 1,
                                                     'end_byte' => '299966445567'
                                                   },
                                            '2' => {
                                                     'count_byte' => '25769803776',
                                                     'flags' => '',
                                                     'filesystem' => 'linux-swap(v1)',
                                                     'begin_byte' => '17180917760',
                                                     'is_extended' => 0,
                                                     'end_byte' => '42950721535'
                                                   },
                                            '5' => {
                                                     'count_byte' => '257015723008',
                                                     'flags' => '',
                                                     'filesystem' => 'ext4',
                                                     'begin_byte' => '42950722560',
                                                     'is_extended' => 0,
                                                     'end_byte' => '299966445567'
                                                   }
                                          },
                          'bios_cylinders' => '36468',
                          'size' => '299966445568',
                          'sector_size' => '512',
                          'begin_byte' => 0,
                          'bios_sectors_per_track' => '63',
                          'end_byte' => '299966445567'
                        },
          '/dev/sdb' => {
                          'bios_heads' => '255',
                          'disklabel' => 'gpt',
                          'partitions' => {
                                            '1' => {
                                                     'count_byte' => '47008017227264',
                                                     'flags' => 'lvm',
                                                     'filesystem' => '',
                                                     'begin_byte' => '1048576',
                                                     'is_extended' => 0,
                                                     'end_byte' => '47008018275839'
                                                   }
                                          },
                          'bios_cylinders' => '5715066',
                          'size' => '47008018292736',
                          'sector_size' => '512',
                          'begin_byte' => 0,
                          'bios_sectors_per_track' => '63',
                          'end_byte' => '47008018292735'
                        }
        };
Current LVM layout
$VAR1 = {
          'vg_01' => {
                       'volumes' => {
                                      'lv_01' => {
                                                   'size' => '44386222.08'
                                                 }
                                    },
                       'physical_volumes' => [
                                               '/dev/sdb1'
                                             ],
                       'size' => '44826624'
                     }
        };
Current RAID layout
$VAR1 = {};
Current device tree
$VAR1 = {
          'VG_vg_01' => [
                          'lv_01'
                        ],
          '/dev/sdb1' => [
                           'VG_vg_01'
                         ],
          '/dev/sda' => [
                          '/dev/sda1',
                          '/dev/sda2',
                          '/dev/sda3',
                          '/dev/sda5'
                        ],
          '/dev/sdb' => [
                          '/dev/sdb1'
                        ]
        };
Desired disk layout
$VAR1 = {
          'PHY_/dev/sdb' => {
                              'opts_all' => {},
                              'preserveparts' => 0,
                              'disklabel' => 'gpt',
                              'partitions' => {
                                                '1' => {
                                                         'encrypt' => 0,
                                                         'start_byte' => 1048576,
                                                         'filesystem' => '-',
                                                         'mountpoint' => '-',
                                                         'mount_options' => '-',
                                                         'end_byte' => '47008018275839',
                                                         'size' => {
                                                                     'resize' => 0,
                                                                     'always_format' => 0,
                                                                     'range' => '47008017227264-47008017227264',
                                                                     'preserve' => 0,
                                                                     'eff_size' => '47008017227264',
                                                                     'extended' => 0
                                                                   }
                                                       }
                                              },
                              'fstabkey' => 'device',
                              'bootable' => -1,
                              'virtual' => 0
                            },
          'VG_vg_01' => {
                          'volumes' => {
                                         'lv_01' => {
                                                      'journal_dev' => undef,
                                                      'encrypt' => 0,
                                                      'filesystem' => 'xfs',
                                                      'mountpoint' => '/web',
                                                      'mount_options' => 'rw',
                                                      'size' => {
                                                                  'resize' => 0,
                                                                  'always_format' => 0,
                                                                  'range' => '1024-44382035.3078766',
                                                                  'preserve' => 0,
                                                                  'eff_size' => '46537937054991.4'
                                                                }
                                                    }
                                       },
                          'ordered_lv_list' => [
                                                 'lv_01'
                                               ],
                          'devices' => {
                                         '/dev/sdb1' => {}
                                       }
                        },
          'VG_--ANY--' => {
                            'opts_all' => {},
                            'fstabkey' => 'device'
                          },
          'PHY_/dev/sda' => {
                              'opts_all' => {},
                              'preserveparts' => 0,
                              'disklabel' => 'msdos',
                              'partitions' => {
                                                '1' => {
                                                         'journal_dev' => undef,
                                                         'encrypt' => 0,
                                                         'start_byte' => 1048576,
                                                         'mountpoint' => '/',
                                                         'mount_options' => 'rw',
                                                         'size' => {
                                                                     'resize' => 0,
                                                                     'always_format' => 0,
                                                                     'range' => '17179869184-17179869184',
                                                                     'preserve' => 0,
                                                                     'eff_size' => '17179869184',
                                                                     'extended' => 0
                                                                   },
                                                         'filesystem' => 'ext4',
                                                         'end_byte' => '17180917759'
                                                       },
                                                '3' => {
                                                         'start_byte' => '42950721536',
                                                         'end_byte' => '299966445567',
                                                         'size' => {
                                                                     'resize' => 0,
                                                                     'always_format' => 0,
                                                                     'preserve' => 0,
                                                                     'eff_size' => '257015724032',
                                                                     'extended' => 1
                                                                   }
                                                       },
                                                '2' => {
                                                         'encrypt' => 0,
                                                         'start_byte' => '17180917760',
                                                         'filesystem' => 'swap',
                                                         'mountpoint' => 'none',
                                                         'mount_options' => 'defaults',
                                                         'end_byte' => '42950721535',
                                                         'size' => {
                                                                     'resize' => 0,
                                                                     'always_format' => 0,
                                                                     'range' => '25769803776-25769803776',
                                                                     'preserve' => 0,
                                                                     'eff_size' => '25769803776',
                                                                     'extended' => 0
                                                                   }
                                                       },
                                                '5' => {
                                                         'journal_dev' => undef,
                                                         'encrypt' => 0,
                                                         'start_byte' => '42950722560',
                                                         'mountpoint' => '/var/log',
                                                         'mount_options' => 'rw',
                                                         'size' => {
                                                                     'resize' => 0,
                                                                     'always_format' => 0,
                                                                     'range' => '257015723008-257015723008',
                                                                     'preserve' => 0,
                                                                     'eff_size' => '257015723008',
                                                                     'extended' => 0
                                                                   },
                                                         'filesystem' => 'ext4',
                                                         'end_byte' => '299966445567'
                                                       }
                                              },
                              'fstabkey' => 'device',
                              'bootable' => -1,
                              'virtual' => 0
                            }
        };
Desired device tree
$VAR1 = {
          'VG_vg_01' => [
                          '/dev/vg_01/lv_01'
                        ],
          '/dev/sdb1' => [
                           'VG_vg_01'
                         ],
          '/dev/sda' => [
                          '/dev/sda1',
                          '/dev/sda2',
                          '/dev/sda3',
                          '/dev/sda5'
                        ],
          '/dev/sdb' => [
                          '/dev/sdb1'
                        ]
        };
Erased devices: /dev/sdb1
Trying to add CMD: true
PRE: 
POST: exist_/dev/sda
Trying to add CMD: true
PRE: 
POST: exist_/dev/sdb
Trying to add CMD: wipefs -a /dev/sdb1
PRE: exist_/dev/sdb,self_cleared_VG_vg_01
POST: wipefs_/dev/sdb1
Trying to add CMD: true
PRE: exist_/dev/sdb,self_cleared_VG_vg_01,wipefs_/dev/sdb1
POST: cleared1_/dev/sdb
Trying to add CMD: parted -s /dev/sdb mklabel gpt
PRE: cleared1_/dev/sdb
POST: cleared2_/dev/sdb
Trying to add CMD: parted -s /dev/sdb mkpart primary "" 1048576B 47008018275839B
PRE: cleared2_/dev/sdb
POST: prep2_/dev/sdb1
Trying to add CMD: true
PRE: prep2_/dev/sdb1
POST: exist_/dev/sdb1
Trying to add CMD: wipefs -a /dev/sda1
PRE: exist_/dev/sda
POST: wipefs_/dev/sda1
Trying to add CMD: wipefs -a /dev/sda2
PRE: exist_/dev/sda,wipefs_/dev/sda1
POST: wipefs_/dev/sda2
Trying to add CMD: true
PRE: exist_/dev/sda,wipefs_/dev/sda1,wipefs_/dev/sda2
POST: wipefs_/dev/sda3
Trying to add CMD: wipefs -a /dev/sda5
PRE: exist_/dev/sda,wipefs_/dev/sda1,wipefs_/dev/sda2,wipefs_/dev/sda3
POST: wipefs_/dev/sda5
Trying to add CMD: true
PRE: exist_/dev/sda,wipefs_/dev/sda1,wipefs_/dev/sda2,wipefs_/dev/sda3,wipefs_/dev/sda5
POST: cleared1_/dev/sda
Trying to add CMD: parted -s /dev/sda mklabel msdos
PRE: cleared1_/dev/sda
POST: cleared2_/dev/sda
Trying to add CMD: parted -s /dev/sda mkpart primary "ext3" 1048576B 17180917759B
PRE: cleared2_/dev/sda
POST: prep2_/dev/sda1
Trying to add CMD: true
PRE: prep2_/dev/sda1
POST: exist_/dev/sda1
Trying to add CMD: parted -s /dev/sda mkpart primary "linux-swap" 17180917760B 42950721535B
PRE: cleared2_/dev/sda,exist_/dev/sda1
POST: prep2_/dev/sda2
Trying to add CMD: true
PRE: prep2_/dev/sda2
POST: exist_/dev/sda2
Trying to add CMD: parted -s /dev/sda mkpart extended "" 42950721536B 299966445567B
PRE: cleared2_/dev/sda,exist_/dev/sda2
POST: prep2_/dev/sda3
Trying to add CMD: true
PRE: prep2_/dev/sda3
POST: exist_/dev/sda3
Trying to add CMD: parted -s /dev/sda mkpart logical "ext3" 42950722560B 299966445567B
PRE: cleared2_/dev/sda,exist_/dev/sda3
POST: prep2_/dev/sda5
Trying to add CMD: true
PRE: prep2_/dev/sda5
POST: exist_/dev/sda5
Trying to add CMD: mkfs.ext4  /dev/sda1
PRE: exist_/dev/sda1
POST: has_fs_/dev/sda1
Trying to add CMD: mkswap  /dev/sda2
PRE: exist_/dev/sda2
POST: has_fs_/dev/sda2
Trying to add CMD: mkfs.ext4  /dev/sda5
PRE: exist_/dev/sda5
POST: has_fs_/dev/sda5
Trying to add CMD: vgchange -a n vg_01
PRE: 
POST: vgchange_a_n_VG_vg_01
Trying to add CMD: wipefs -a vg_01/lv_01
PRE: vgchange_a_n_VG_vg_01
POST: wipefs_vg_01/lv_01
Trying to add CMD: lvremove -f vg_01/lv_01
PRE: wipefs_vg_01/lv_01
POST: lv_rm_vg_01/lv_01,self_cleared_/dev/vg_01/lv_01
Trying to add CMD: vgremove vg_01
PRE: vgchange_a_n_VG_vg_01,lv_rm_vg_01/lv_01
POST: vg_removed_vg_01
Trying to add CMD: pvremove  /dev/sdb1
PRE: vg_removed_vg_01
POST: pvremove_vg_01
Trying to add CMD: wipefs -a /dev/sdb1
PRE: pvremove_vg_01
POST: pv_sigs_removed_wipe_/dev/sdb1_vg_01
Trying to add CMD: true
PRE: pvremove_vg_01,pv_sigs_removed_wipe_/dev/sdb1_vg_01
POST: pv_sigs_removed_vg_01
Trying to add CMD: true
PRE: vgchange_a_n_VG_vg_01,pv_sigs_removed_vg_01,self_cleared_lv_01
POST: self_cleared_VG_vg_01
Trying to add CMD: parted -s /dev/sdb set 1 lvm on
PRE: exist_/dev/sdb1,cleared2_/dev/sdb
POST: flag_lvm_/dev/sdb1
Trying to add CMD: pvcreate -ff -y  /dev/sdb1
PRE: exist_/dev/sdb1,pt_complete_/dev/sdb
POST: pv_done_/dev/sdb1
Trying to add CMD: vgcreate  vg_01  /dev/sdb1
PRE: pv_done_/dev/sdb1
POST: vg_created_vg_01
Trying to add CMD: vgchange -a y vg_01
PRE: vg_created_vg_01
POST: vg_enabled_vg_01
Trying to add CMD: lvcreate  -n lv_01 -L 44382035.307876 vg_01
PRE: vg_enabled_vg_01
POST: exist_/dev/vg_01/lv_01
Trying to add CMD: mkfs.xfs  -f /dev/vg_01/lv_01
PRE: exist_/dev/vg_01/lv_01
POST: has_fs_/dev/vg_01/lv_01
Trying to add CMD: true
PRE: cleared2_/dev/sda,exist_/dev/sda5
POST: pt_complete_/dev/sda
Trying to add CMD: true
PRE: cleared2_/dev/sdb,exist_/dev/sdb1,flag_lvm_/dev/sdb1
POST: pt_complete_/dev/sdb
Trying to add CMD: wipefs -a /dev/sdb1
PRE: exist_/dev/sdb,self_cleared_VG_vg_01
POST: wipefs_/dev/sdb1
Trying to add CMD: true
PRE: exist_/dev/sdb,self_cleared_VG_vg_01,wipefs_/dev/sdb1
POST: cleared1_/dev/sdb
Trying to add CMD: parted -s /dev/sdb mklabel gpt
PRE: cleared1_/dev/sdb
POST: cleared2_/dev/sdb
Trying to add CMD: parted -s /dev/sdb mkpart primary "" 1048576B 47008018275839B
PRE: cleared2_/dev/sdb
POST: prep2_/dev/sdb1
Trying to add CMD: true
PRE: prep2_/dev/sdb1
POST: exist_/dev/sdb1
Trying to add CMD: true
PRE: vgchange_a_n_VG_vg_01,pv_sigs_removed_vg_01,self_cleared_lv_01
POST: self_cleared_VG_vg_01
Trying to add CMD: parted -s /dev/sdb set 1 lvm on
PRE: exist_/dev/sdb1,cleared2_/dev/sdb
POST: flag_lvm_/dev/sdb1
Trying to add CMD: pvcreate -ff -y  /dev/sdb1
PRE: exist_/dev/sdb1,pt_complete_/dev/sdb
POST: pv_done_/dev/sdb1
Trying to add CMD: vgcreate  vg_01  /dev/sdb1
PRE: pv_done_/dev/sdb1
POST: vg_created_vg_01
Trying to add CMD: vgchange -a y vg_01
PRE: vg_created_vg_01
POST: vg_enabled_vg_01
Trying to add CMD: lvcreate  -n lv_01 -L 44382035.307876 vg_01
PRE: vg_enabled_vg_01
POST: exist_/dev/vg_01/lv_01
Trying to add CMD: mkfs.xfs  -f /dev/vg_01/lv_01
PRE: exist_/dev/vg_01/lv_01
POST: has_fs_/dev/vg_01/lv_01
Trying to add CMD: true
PRE: cleared2_/dev/sdb,exist_/dev/sdb1,flag_lvm_/dev/sdb1
POST: pt_complete_/dev/sdb


More information about the linux-fai-devel mailing list