pb with raid / (with log)
william Famy
william.famy at laposte.net
Mon Dec 10 15:16:03 CET 2007
Hi.
I am fighting with my fai 3.2.4 to install a soft raid /
I read and configure the setup hardisk
http://faiwiki.informatik.uni-koeln.de/index.php/Setup_harddisks_2
I modifie FAIBASE i create the hook script i install the
libparse-recdescent-perl and liblinux-lvm-perl in my nfsroot
I boot my client vmware with 2 8g scsi virtual disk sda and sdb.
First if i have the create an empty partition or i have an error.
second if i creat empty partition i have the following error (see below)
tail -120 fai.log
evething looks good exept to have them executed, use -X
/var/lib/fai/config/hooks/partition.FAIBASE.source: line 12:
/tmp/fai/disk_var.sh: No such file or directory
partition.FAIBASE.source OK.
Skiping task_partition
Calling task_mountdisks
No /tmp/fai/fstab created.
and no partition where create
any help will be wellcome.
regards.
**********************************
raid:/tmp/fai# fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
raid:/tmp/fai#
*************************
********************
fai2:/srv/fai/config# cat disk_config/FAIBASE
disk_config sda
primary - 256 - -
primary swap 100 swap sw
primary - 1000 - -
disk_config sdb
primary - 256 - -
primary swap 100 swap sw
primary - 1000 - -
disk_config raid
raid1 /boot sda1,sdb1 ext3 rw,errors=remount-ro
raid1 / sda3,sdb3 ext3 rw,errors=remount-ro
fai2:/srv/fai/config#
*****************
fai2:/srv/fai/config# cat hooks/partition.FAIBASE.source
#!/bin/sh
# load the device mapper module for LVM support
modprobe dm_mod
debug=1 /var/lib/fai/config/sm/storage-magic
# if you really brave, you can get things written to disk instead
# by added -X
# debug=1 /var/lib/fai/config/storage-magic -X
# now define variable for root and boot partition and boot device
# this is necessary because we skip the original task
. $LOGDIR/disk_var.sh
# skip the original parititioning
skiptask partition
******************raid:/tmp/fai# tail -120 fai.log
'end_byte' =>
263208959
},
'3' => {
'start_byte'
=> 361912320,
'number' => 3,
'mountpoint'
=> '-',
'mount_options' => '-',
'size' => {
'resize' => 0,
'range' => '1044610560-1044610560',
'preserve' => 0,
'eff_size' => 1044610560,
'extended' => 0
},
'filesystem'
=> '-',
'fs_options'
=> '',
'end_byte' =>
1406522879
},
'2' => {
'start_byte'
=> 263208960,
'number' => 2,
'mountpoint'
=> 'none',
'mount_options' => 'sw',
'size' => {
'resize' => 0,
'range' => '98703360-98703360',
'preserve' => 0,
'eff_size' => 98703360,
Use of
uninitialized value in concatenation (.) or string at
/var/lib/fai/config/sm/lib//commands.pm line 60.
create_options: tune_options:
Use of uninitialized value in concatenation (.) or string at
/var/lib/fai/config/sm/lib//commands.pm line 60.
create_options: tune_options:
Use of uninitialized value in numeric eq (==) at
/var/lib/fai/config/sm/lib//commands.pm line 118.
Use of uninitialized value in numeric eq (==) at
/var/lib/fai/config/sm/lib//commands.pm line 118.
Use of uninitialized value in concatenation (.) or string at
/var/lib/fai/config/sm/lib//commands.pm line 60.
create_options: tune_options:
Use of uninitialized value in numeric eq (==) at
/var/lib/fai/config/sm/lib//commands.pm line 118.
Use of uninitialized value in numeric eq (==) at
/var/lib/fai/config/sm/lib//commands.pm line 118.
Use of uninitialized value in concatenation (.) or string at
/var/lib/fai/config/sm/lib//commands.pm line 60.
create_options: tune_options:
'extended' => 0
},
'filesystem'
=> 'swap',
'fs_options'
=> '',
'end_byte' =>
361912319
}
},
'fstabkey' => 'device',
'bootable' => -1,
'virtual' => 0
}
};
parted -s /dev/sdb mklabel msdos
parted -s /dev/sdb mklabel msdos
parted -s /dev/sdb mkpart primary 32256B 263208959B
parted -s /dev/sdb mkpart primary 263208960B 361912319B
parted -s /dev/sdb mkpart primary 361912320B 1406522879B
udevsettle --timeout=10
mkswap /dev/sdb2
parted -s /dev/sda mklabel msdos
parted -s /dev/sda mklabel msdos
parted -s /dev/sda mkpart primary 32256B 263208959B
parted -s /dev/sda mkpart primary 263208960B 361912319B
parted -s /dev/sda mkpart primary 361912320B 1406522879B
udevsettle --timeout=10
mkswap /dev/sda2
parted -s /dev/sda set 1 raid on
parted -s /dev/sdb set 1 raid on
udevsettle --timeout=10
yes | mdadm --create /dev/md0 --level=raid1 --raid-devices=2 /dev/sda1
/dev/sdb1
mkfs.ext3 /dev/md0
parted -s /dev/sda set 3 raid on
parted -s /dev/sdb set 3 raid on
udevsettle --timeout=10
yes | mdadm --create /dev/md1 --level=raid1 --raid-devices=2 /dev/sda3
/dev/sdb3
mkfs.ext3 /dev/md1
would run command parted -s /dev/sdb mklabel msdos; to have them
executed, use -X
would run command parted -s /dev/sdb mklabel msdos; to have them
executed, use -X
would run command parted -s /dev/sdb mkpart primary 32256B 263208959B;
to have them executed, use -X
would run command parted -s /dev/sdb mkpart primary 263208960B
361912319B; to have them executed, use -X
would run command parted -s /dev/sdb mkpart primary 361912320B
1406522879B; to have them executed, use -X
would run command udevsettle --timeout=10; to have them executed, use -X
would run command mkswap /dev/sdb2; to have them executed, use -X
would run command parted -s /dev/sda mklabel msdos; to have them
executed, use -X
would run command parted -s /dev/sda mklabel msdos; to have them
executed, use -X
would run command parted -s /dev/sda mkpart primary 32256B 263208959B;
to have them executed, use -X
would run command parted -s /dev/sda mkpart primary 263208960B
361912319B; to have them executed, use -X
would run command parted -s /dev/sda mkpart primary 361912320B
1406522879B; to have them executed, use -X
would run command udevsettle --timeout=10; to have them executed, use -X
would run command mkswap /dev/sda2; to have them executed, use -X
would run command parted -s /dev/sda set 1 raid on; to have them
executed, use -X
would run command parted -s /dev/sdb set 1 raid on; to have them
executed, use -X
would run command udevsettle --timeout=10; to have them executed, use -X
would run command yes | mdadm --create /dev/md0 --level=raid1
--raid-devices=2 /dev/sda1 /dev/sdb1; to have them executed, use -X
would run command mkfs.ext3 /dev/md0; to have them executed, use -X
would run command parted -s /dev/sda set 3 raid on; to have them
executed, use -X
would run command parted -s /dev/sdb set 3 raid on; to have them
executed, use -X
would run command udevsettle --timeout=10; to have them executed, use -X
would run command yes | mdadm --create /dev/md1 --level=raid1
--raid-devices=2 /dev/sda3 /dev/sdb3; to have them executed, use -X
would run command mkfs.ext3 /dev/md1; to have them executed, use -X
would run command /lib/udev/vol_id -u /dev/sdb2; to have them executed,
use -X
would run command /lib/udev/vol_id -l /dev/sdb2; to have them executed,
use -X
would run command /lib/udev/vol_id -u /dev/sda2; to have them executed,
use -X
would run command /lib/udev/vol_id -l /dev/sda2; to have them executed,
use -X
# /etc/fstab: static file system information.
#
# <file sys> <mount point> <type> <options> <dump> <pass>
/dev/md1 / ext3 rw,errors=remount-ro 0 1
/dev/md0 /boot ext3 rw,errors=remount-ro 0 2
/dev/sdb2 none swap sw 0 2
/dev/sda2 none swap sw 0 2
SWAPLIST="/dev/sdb2 /dev/sda2"
ROOT_PARTITION=/dev/md1
/var/lib/fai/config/hooks/partition.FAIBASE.source: line 12:
/tmp/fai/disk_var.sh: No such file or directory
partition.FAIBASE.source OK.
Skiping task_partition
Calling task_mountdisks
No /tmp/fai/fstab created.
bash: no job control in this shell
root at raid:/# raid:/tmp/fai#
More information about the linux-fai
mailing list