what's the correct way to declare LVM on entire disk ?
Mathieu Alorent
malorent at echo.fr
Mon Dec 6 13:34:56 CET 2010
Hi Michael,
[...]
> ... this is expected to fail. This was added for the simple reason that the
> semantics of an empty disk_config X entry would be unclear, should existing
> partitions be deleted, should it be used as is, etc.
Ok, I agree with that change.
[...]
> That is unexpected to say the least. Could you maybe give it just a quick try to
> see whether things work fine if you put sdb in there instead of disk2? Just to
> see it fails independently of that, which IMHO it should.
>
> > Could you tell me what is the "correct" way to declare such a configuration please ?
> >
>
> Your second attempt *without* the disk_config disk2 line would be "correct" -
> but it seems that setup-storage is not. Could you just give that another try
> as explained above to see the behaviour is consistent at least? I'll meanwhile
> try to figure out what's going wrong. Oh, yes, and as always: debug logs are
> most welcome :-)
With "sdb", I get "same" error:
Starting setup-storage 1.3+exp
Using config file: /var/lib/fai/config/disk_config/PPC_BACK
Executing: parted -s /dev/sda unit TiB print
Executing: parted -s /dev/sda unit B print free
Executing: parted -s /dev/sda unit chs print free
Executing: parted -s /dev/sdb unit TiB print
Parted could not read a disk label (new disk?)
Could not determine size and contents of /dev/sdb, skipping
Finding all volume groups
Executing: mdadm --examine --scan --verbose -c partitions
/dev/sdb is not a valid block device
Please find debug logs attached.
Regards
Mât
-------------- next part --------------
disklist: sda
sdb
Using config file: /var/lib/fai/config/disk_config/PPC_BACK
Input was:
#
# NEW FAI PARTITION SYSTEM
#
# Include LVM/RAID, Generic disk naming
#
# http://faiwiki.debian.net/index.php/Setup-storage
#
disk_config disk1 bootable:1
primary /boot 100 ext3 rw
primary swap 1G swap sw
primary / 1G ext3 rw,errors=remount-ro
logical /usr 2G ext3 rw
logical /var 2G ext3 rw
logical /home 512 ext3 rw
logical /tmp 1G ext3 rw
logical - 4G- - -
#disk_config disk2
disk_config lvm
vg HEBEX disk1.9
HEBEX-WOO_DATA /WOO/DATA 10G ext3 rw
HEBEX-WOO_LOG /WOO/LOG 10G- ext3 rw,noatime
HEBEX-WOO_WEB /WOO/WEB 10G ext3 rw
HEBEX-WOO_CHROOT /WOO/CHROOT 30G ext3 rw
disk_config lvm
vg PPC sdb
#vg PPC disk2
PPC-WOO /WOO 30G- xfs rw
(CMD) parted -s /dev/sda unit TiB print 1> /tmp/J9p7_3dt1d 2> /tmp/8Rb4FrT4xU
Executing: parted -s /dev/sda unit TiB print
(STDOUT) Model: Areca ARC-1120-VOL#00 (scsi)
(STDOUT) Disk /dev/sda: 0.09TiB
(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.00TiB 0.00TiB primary ext3 boot
(STDOUT) 2 0.00TiB 0.00TiB 0.00TiB primary linux-swap(v1)
(STDOUT) 3 0.00TiB 0.00TiB 0.00TiB primary ext3
(STDOUT) 4 0.00TiB 0.09TiB 0.09TiB extended lba
(STDOUT) 5 0.00TiB 0.00TiB 0.00TiB logical ext3
(STDOUT) 6 0.00TiB 0.01TiB 0.00TiB logical ext3
(STDOUT) 7 0.01TiB 0.01TiB 0.00TiB logical ext3
(STDOUT) 8 0.01TiB 0.01TiB 0.00TiB logical ext3
(STDOUT) 9 0.01TiB 0.09TiB 0.08TiB logical lvm
(STDOUT)
(CMD) parted -s /dev/sda unit B print free 1> /tmp/hzGn6p0YYD 2> /tmp/1il24VnWv2
Executing: parted -s /dev/sda unit B print free
(STDOUT) Model: Areca ARC-1120-VOL#00 (scsi)
(STDOUT) Disk /dev/sda: 99999547392B
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number Start End Size Type File system Flags
(STDOUT) 1 32256B 104889855B 104857600B primary ext3 boot
(STDOUT) 2 104889856B 1178631679B 1073741824B primary linux-swap(v1)
(STDOUT) 3 1178631680B 2252373503B 1073741824B primary ext3
(STDOUT) 4 2252373504B 99999547391B 97747173888B extended lba
(STDOUT) 5 2252405760B 4399889407B 2147483648B logical ext3
(STDOUT) 6 4399921664B 6547405311B 2147483648B logical ext3
(STDOUT) 7 6547437568B 7084308479B 536870912B logical ext3
(STDOUT) 8 7084340736B 8158082559B 1073741824B logical ext3
(STDOUT) 9 8158114816B 99999547391B 91841432576B logical lvm
(STDOUT)
(CMD) parted -s /dev/sda unit chs print free 1> /tmp/KzFjAvJDrT 2> /tmp/GdIC_DB_5k
Executing: parted -s /dev/sda unit chs print free
(STDOUT) Model: Areca ARC-1120-VOL#00 (scsi)
(STDOUT) Disk /dev/sda: 12157,149,23
(STDOUT) Sector size (logical/physical): 512B/512B
(STDOUT) BIOS cylinder,head,sector geometry: 12157,255,63. Each cylinder is 8225kB.
(STDOUT) Partition Table: msdos
(STDOUT)
(STDOUT) Number Start End Type File system Flags
(STDOUT) 1 0,1,0 12,191,49 primary ext3 boot
(STDOUT) 2 12,191,50 143,74,57 primary linux-swap(v1)
(STDOUT) 3 143,74,58 273,213,2 primary ext3
(STDOUT) 4 273,213,3 12157,149,23 extended lba
(STDOUT) 5 273,214,3 534,235,18 logical ext3
(STDOUT) 6 534,236,19 796,2,34 logical ext3
(STDOUT) 7 796,3,35 861,72,38 logical ext3
(STDOUT) 8 861,73,39 991,211,46 logical ext3
(STDOUT) 9 991,212,47 12157,149,23 logical lvm
(STDOUT)
(CMD) parted -s /dev/sdb unit TiB print 1> /tmp/U28L5N_Pkq 2> /tmp/Ffz2GDtRHK
Executing: parted -s /dev/sdb unit TiB print
(STDOUT) Error: /dev/sdb: unrecognised disk label
(CMD) mdadm --examine --scan --verbose -c partitions 1> /tmp/6f7LtftZ_R 2> /tmp/TpoNEJvR7y
Executing: mdadm --examine --scan --verbose -c partitions
Current disk layout
$VAR1 = {
'/dev/sda' => {
'bios_heads' => '255',
'disklabel' => 'msdos',
'partitions' => {
'6' => {
'count_byte' => '2147483648',
'filesystem' => 'ext3',
'begin_byte' => '4399921664',
'is_extended' => 0,
'end_byte' => '6547405311'
},
'3' => {
'count_byte' => '1073741824',
'filesystem' => 'ext3',
'begin_byte' => '1178631680',
'is_extended' => 0,
'end_byte' => '2252373503'
},
'7' => {
'count_byte' => '536870912',
'filesystem' => 'ext3',
'begin_byte' => '6547437568',
'is_extended' => 0,
'end_byte' => '7084308479'
},
'9' => {
'count_byte' => '91841432576',
'filesystem' => '',
'begin_byte' => '8158114816',
'is_extended' => 0,
'end_byte' => '99999547391'
},
'2' => {
'count_byte' => '1073741824',
'filesystem' => 'linux-swap(v1)',
'begin_byte' => '104889856',
'is_extended' => 0,
'end_byte' => '1178631679'
},
'8' => {
'count_byte' => '1073741824',
'filesystem' => 'ext3',
'begin_byte' => '7084340736',
'is_extended' => 0,
'end_byte' => '8158082559'
},
'1' => {
'count_byte' => '104857600',
'filesystem' => 'ext3',
'begin_byte' => '32256',
'is_extended' => 0,
'end_byte' => '104889855'
},
'4' => {
'count_byte' => '97747173888',
'filesystem' => '',
'begin_byte' => '2252373504',
'is_extended' => 1,
'end_byte' => '99999547391'
},
'5' => {
'count_byte' => '2147483648',
'filesystem' => 'ext3',
'begin_byte' => '2252405760',
'is_extended' => 0,
'end_byte' => '4399889407'
}
},
'bios_cylinders' => '12157',
'size' => '99999547392',
'sector_size' => '512',
'begin_byte' => 0,
'end_byte' => '99999547391',
'bios_sectors_per_track' => '63'
}
};
Current LVM layout
$VAR1 = {};
Current RAID layout
$VAR1 = {};
More information about the linux-fai
mailing list