Re: setup storage can't use % or G

2008-06-26 Diskussionsfäden James

ok,
so apparently i was accidently using the older version of FAI that's why 
it couldn't parse

i can choose to NOT USE SETUPSTORAGE and i can do an fai install fine

but now i'm having problems on the reboot with a setupstorage install
after FAI finishes the system hangs on boot

i need to get the log still but i noticed it's looking for volgroup-00 
or something and i haven't defined any vg by that name and also is 
trying to setup mdadm when i don't have a raid configuration setup.


i just went to my host-classes-50

added SETUPSTORAGE to that host class

changed the SETUPSTORAGE.var file to enable and debug
used a disk_config as follows:

disk_config sda  bootable:1
primary /boot   500 ext3defaults
primary -   6096-   -   -

disk_config lvm
vg vg0   sda2
vg0-swap swap10%swap   sw
vg0-dev  /dev10%xfsdefaults
vg0-var  /var10%xfsdefaults
vg0-home /home   10%-30%xfsdefaults
vg0-root /   10%xfsdefaults

it installs but i get some funny messages and then on reboot it just 
stops at either trying to start syslog or mount root

I'll try and get a log in a little bit and post here.

TIA,
James



Thomas Lange wrote:

On Wed, 25 Jun 2008 13:24:23 -0700, James [EMAIL PROTECTED] said:



 Here's the log snippet:
 Using config file: /var/lib/fai/config/disk_config/SETUPSTORAGE
 SYNTAX ERROR in config file line 12, size: 500-3G
 logical  /usr  500-3Gext3  rw   
 tuneopts=-c0 -i0

 Mapping disk name disk1 to sda
 setup_harddisks version 0.42fai
You are using the old setup_harddisks partitioning tool inseat of the
new setup-storage.

Please add the class SETUPSTORAGE to your host name or define the
variable USE_SETUP_STORAGE=1. Then the new tool is used.
  


Re: setup storage can't use % or G

2008-06-26 Diskussionsfäden Michael Tautschnig
 ok so i tried not including /dev and it does the same thing
 it halts on trying to mount root on startup when i reboot

 i've attached the log


Oh yes ... please add

$ROOTCMD update-initramfs -k all -u 

to one of your scripts, maybe LAST/50-misc or add some script named
SETUPSTORAGE; we'll add that in the in examples.

The problem is that lvm2 is installed _after_ your kernel packages, and thus the
necessary scripts and modules don't make their way into the initramfs.

HTH,
Michael



pgp6fqWXWh2UW.pgp
Description: PGP signature


setup storage can't use % or G

2008-06-25 Diskussionsfäden James

I've upgraded to the latest FAI with SETUP_STORAGE

i tried using the default SETUP_STORAGE disk layout but it doesn't like 
the lines that define like 4G for 4 Gigabytes or 10% for 10% of disk
FAI will throw an error and says there's a problem with disk_setup 
configuration on the lines that contain those type of disk descriptions.


So i have to hard define disks like 500-4000 instead of 500-4G
or 500-4000 instead of 500-10%

TIA,
James


Re: setup storage can't use % or G

2008-06-25 Diskussionsfäden Michael Tautschnig
 I've upgraded to the latest FAI with SETUP_STORAGE

 i tried using the default SETUP_STORAGE disk layout but it doesn't like  
 the lines that define like 4G for 4 Gigabytes or 10% for 10% of disk
 FAI will throw an error and says there's a problem with disk_setup  
 configuration on the lines that contain those type of disk descriptions.

 So i have to hard define disks like 500-4000 instead of 500-4G
 or 500-4000 instead of 500-10%


Hmm, this is definitely not intended and unexpected. Could you please send
- your original (non-working) disk_config file
- a log file or relevant parts of the log output

Thanks a lot,
Michael



pgpKvHLrCeXxx.pgp
Description: PGP signature


Re: setup storage can't use % or G

2008-06-25 Diskussionsfäden James

i just used the example file in FAI

/usr/share/doc/fai-doc/examples/simple/disk_config/SETUPSTORAGE

i didn't edit anything


Michael Tautschnig wrote:

I've upgraded to the latest FAI with SETUP_STORAGE

i tried using the default SETUP_STORAGE disk layout but it doesn't like  
the lines that define like 4G for 4 Gigabytes or 10% for 10% of disk
FAI will throw an error and says there's a problem with disk_setup  
configuration on the lines that contain those type of disk descriptions.


So i have to hard define disks like 500-4000 instead of 500-4G
or 500-4000 instead of 500-10%




Hmm, this is definitely not intended and unexpected. Could you please send
- your original (non-working) disk_config file
- a log file or relevant parts of the log output

Thanks a lot,
Michael

  


Re: setup storage can't use % or G

2008-06-25 Diskussionsfäden Michael Tautschnig
 i just used the example file in FAI

 /usr/share/doc/fai-doc/examples/simple/disk_config/SETUPSTORAGE

 i didn't edit anything


I'm sorry, but I fail to reproduce this, the file parses properly. Could you
please provide the log files generated by setup-storage?

Thanks,
Michael



pgp4lsHalkGAW.pgp
Description: PGP signature


Re: setup storage can't use % or G

2008-06-25 Diskussionsfäden James

Here's the log snippet:

Using config file: /var/lib/fai/config/disk_config/SETUPSTORAGE
SYNTAX ERROR in config file line 12, size: 500-3G
logical  /usr  500-3Gext3  rw   
tuneopts=-c0 -i0

Mapping disk name disk1 to sda
setup_harddisks version 0.42fai
Probing disks:  /dev/sda /dev/sdb
Disks found: sda sdb

Using config file: /var/lib/fai/config/disk_config/SETUPSTORAGE
Mapping disk name disk1 to sda
setup_harddisks did not create /var/log/fai/current/disk_var.sh file.
bash: no job control in this shell


It will throw the same error if i change that to a % value as well

Michael Tautschnig wrote:

i just used the example file in FAI

/usr/share/doc/fai-doc/examples/simple/disk_config/SETUPSTORAGE

i didn't edit anything




I'm sorry, but I fail to reproduce this, the file parses properly. Could you
please provide the log files generated by setup-storage?

Thanks,
Michael