RE: Re: problems with ignoring a lvm on secondary disk.

2012-04-25 Diskussionsfäden John Brooker
I am seeing the same problem reported on this mailing list back on 02 sep 2011 
(http://www.mail-archive.com/linux-fai@uni-koeln.de/msg04330.html).

The issue was that setup-storage was not ignoring secondary disks which had LVM 
configured on them (I have the debug output).

At that time the suggested solution was to update setup-storage to it's latest 
version. From 3.4.7 to 3.4.8.

What I want to know is can I upgrade setup-storage from 3.4.2 to 3.4.8? I only 
use this version of FAI because no newer versions are provided for Ubuntu lucid 
(10.04.04 ).

Thanks for all the great work.

Regards


RE: Re: problems with ignoring a lvm on secondary disk.

2012-04-25 Diskussionsfäden Thomas Lange
 On Wed, 25 Apr 2012 20:44:33 +, John Brooker jbroo...@intelius.com 
 said:

 What I want to know is can I upgrade setup-storage from 3.4.2 to 3.4.8? I 
only use this version of FAI
 because no newer versions are provided for Ubuntu lucid (10.04.04 ).
Since setup-storage is now included in a separate package, it should
be easy to update just this package.

-- 
regards Thomas


problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Florian Streibelt
Hi,

we try to install a debian system on a bunch of servers with different disk
layouts. Some machines only have one disk, some have additional disks,
which leads to a strange issue.

During install we like fai to ignore all additional disks and lvm's and
whatever is on disks besides sda.

Our disk setup is:

disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid
primary /   80%-100%ext4rw,noatime,errors=remount-ro
primary swap200-1000swaprw

Now the problem is, that when users have setup a lvm on disk sdb fai
detects this lvm, at first seems to ignore it, but later tries to create
that exact lvm again on the system, although its not configured anywhere.

A debugging log is attached.

The question is: bug or misconfiguration?

Florian


Starting setup-storage 1.3
disklist was: sda
sdb
Using config file: /var/lib/fai/config/disk_config/RLBASE
Input was:
#
# type mountpoint size   fs type mount options misc options

disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid 

primary	/		80%-100%	ext4	rw,noatime,errors=remount-ro
primary	swap	200-1000	swap	rw

(CMD) parted -s /dev/sda unit TiB print 1 /tmp/9jfIKSyTW7 2 /tmp/dxphs1V5M1
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 0.45TiB
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start  End  Size  Type  File system  Flags
(STDOUT) 
(CMD) parted -s /dev/sda unit B print free 1 /tmp/k7jeOlJzjN 2 /tmp/UWhBXhXMTi
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 500107862016B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start   EndSize   Type  File system  Flags
(STDOUT) 32256B  500107862015B  500107829760BFree Space
(STDOUT) 
(CMD) parted -s /dev/sda unit chs print free 1 /tmp/meDq08B1ob 2 /tmp/L1LGbj7K3G
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: ATA ST3500641AS (scsi)
(STDOUT) Disk /dev/sda: 60801,80,62
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 60801,255,63.  Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT) 
(STDOUT) Number  Start  End  Type  File system  Flags
(STDOUT) 0,1,0  60801,80,62Free Space
(STDOUT) 
Creating directory /tmp/lvm/lock
Finding all volume groups
Finding volume group vboxspace
Creating directory /etc/lvm/archive
Archiving volume group vboxspace metadata (seqno 4).
Creating directory /etc/lvm/backup
Creating volume group backup /etc/lvm/backup/vboxspace (seqno 4).
Finding all volume groups
Finding volume group vboxspace
Finding all volume groups
Finding volume group vboxspace
Finding all volume groups
Finding volume group vboxspace
(CMD) mdadm --examine --scan --verbose -c partitions 1 /tmp/6NnNC23EVQ 2 /tmp/E_1z3xjgRh
Executing: mdadm --examine --scan --verbose -c partitions
Current disk layout
$VAR1 = {
  '/dev/sda' = {
  'bios_heads' = '255',
  'disklabel' = 'msdos',
  'partitions' = {},
  'bios_cylinders' = '60801',
  'size' = '500107862016',
  'sector_size' = '512',
  'begin_byte' = 0,
  'end_byte' = '500107862015',
  'bios_sectors_per_track' = '63'
}
};
Current LVM layout
$VAR1 = {
  'vboxspace' = {
   'volumes' = {
  'images' = {
'size' = '40960'
  },
  'bender' = {
'size' = '20480'
  }
},
   'physical_volumes' = [
   '/dev/sdb1'
 ],
   'size' = '476938.24'
 }
};
Current RAID layout
$VAR1 = {};
Desired disk layout
$VAR1 = {
  'PHY_/dev/sda' = {
  'preserveparts' = 0,
  'disklabel' = 'msdos',
  'partitions' = {
'1' = {
 'journal_dev' = undef,
 'encrypt' = 0,
 'start_byte' = 32256,
 'number' = 1,
  

Re: problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Michael Tautschnig
Hi Florian,

[...]
 Now the problem is, that when users have setup a lvm on disk sdb fai
 detects this lvm, at first seems to ignore it, but later tries to create
 that exact lvm again on the system, although its not configured anywhere.
 
 A debugging log is attached.
 
 The question is: bug or misconfiguration?
 
[...]

Thanks a lot for providing such detailed information. This is definitively a
bug; yet I wonder which version of FAI you might be using? Looking at your debug
log, this trace cannot be produced by setup-storage from 3.4.8, unless I'm
missing something. May I ask you to re-run this installation using 3.4.8?

Thanks a lot,
Michael



pgp56Tc3ASVax.pgp
Description: PGP signature


Re: problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Florian Streibelt
Hi Michael,

Am 02.09.2011 10:33 schrieb Michael Tautschnig:
[...]
 Thanks a lot for providing such detailed information. This is definitively a
 bug; yet I wonder which version of FAI you might be using? Looking at your 
 debug
 log, this trace cannot be produced by setup-storage from 3.4.8, unless I'm
 missing something. May I ask you to re-run this installation using 3.4.8?
 

It is FAI 3.4.7, 24 Dec 2010. Copyright (C) 1999-2009 Thomas Lange
provided by debian version 6.0.1 (squeeze). There don't seem to be any
newer packages available yet in the debian repos. I'll see if we can update
next week -.-

Do you think it is possible to only update setup-storage?

/Florian


Re: problems with ignoring a lvm on secondary disk.

2011-09-02 Diskussionsfäden Michael Tautschnig
Hi,

[...]
 Do you think it is possible to only update setup-storage?
 

Yes, in this particular case it should be safe to take the fai-setup-storage
package from 3.4.8 and install it in the NFSROOT.

Best,
Michael



pgpqgTKBj5Npz.pgp
Description: PGP signature