RE: Setup_hardisk lvm Cannot determine size
Hello Unfortunately another error ;) Regards Sylvain -- Fai.log Performing FAI installation. All data may be overwritten! ^G^G^G Calling task_install Source hook: partition.PROSODIE.source Unrecognized escape \d passed through at /fai/store/lib/exec.pm line 104. disklist was: cciss/c0d0Input was: # Partitionnement standard avec LVM disk_config disk1 bootable:1 primary /boot 500 ext3 rw primary - 0- - - disk_config lvm vg VG01 disk1.2 VG01-swap swap2048swapsw VG01-root / 2048ext3rw VG01-opt/opt3048ext3rw VG01-var/var2000ext3rw VG01-tmp/tmp600 ext3rw VG01-usr/usr2000ext3rw VG01-appli /appli 0- ext3rw (CMD) parted -s /dev/cciss/c0d0 unit TiB print 1 /tmp/49akAvm5vS 2 /tmp/hp3YfxfpiH (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 0.03TiB (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/cciss/c0d0 unit B print free 1 /tmp/RlrVAYxtoZ 2 /tmp/sIN3NruLRJ (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 36414750719B (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start End Size Type File system Flags (STDOUT) 0B 36414750719B 36414750720BFree Space (STDOUT) (CMD) parted -s /dev/cciss/c0d0 unit chs print free 1 /tmp/PhC8pyuNSv 2 /tmp/04xeWSmeQK (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 4427,44,32 (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) BIOS cylinder,head,sector geometry: 4427,255,63. Each cylinder is 8225kB. (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start End Type File system Flags (STDOUT) 0,0,0 4427,44,32Free Space (STDOUT) Finding all volume groups No volume groups found (CMD) mdadm --detail --scan --verbose -c partitions 1 /tmp/hRvbZeLi5L 2 /tmp/caIumWWoFq Cannot determine size of /dev/cciss/c0d0p2 - scheme unknown Current disk layout $VAR1 = { '/dev/cciss/c0d0' = { 'bios_heads' = '255', 'disklabel' = 'msdos', 'partitions' = {}, 'bios_cylinders' = '4427', 'size' = '36414750719', 'sector_size' = '512', 'begin_byte' = 0, 'end_byte' = '36414750718', 'bios_sectors_per_track' = '63' } }; Current LVM layout $VAR1 = {}; Current RAID layout $VAR1 = {}; /fai/hooks/partition.PROSODIE.source: line 20: /var/log/fai/current/disk_var.sh: No such file or directory partition.PROSODIE.source OK. Skiping task_partition Calling task_mountdisks
Re: Setup_hardisk lvm Cannot determine size
Hello Unfortunately another error ;) Well, it's actually the same, but I changed the wording to make it unique... Nevertheless, I'll try to fix it this afternoon, I'll keep you posted. Best, Michael pgp8hKyKgMM7K.pgp Description: PGP signature
Re: setup-storage and grub issue
Michael Tautschnig wrote: I started playing around with setup-storage to setup a lvm-on-raid1-2disk box. setup-storage really works out fine, but grub installation fails, apparently because the $BOOT_DEVICE is set nowhere. disk_var.sh only defines $SWAP_LIST and $ROOT_PARTITION Hmm, yes, $BOOT_* only get defined in case they reside on a normal partition. I think I can easily fix this if you can give me a hint what they should be set to in this case. Ok, $BOOT_PARTITION is obvious, but what should $BOOT_DEVICE be set to? I'm lacking the knowledge about RAIDgrub, apparently. Could you help me out? I haven't figured out the proper method yet. Anyhow installing grub in the MBR of disk1 is sufficient to boot the installed system. So in my case BOOT_DEVICE should be /dev/sda. But to boot in case of a failure of the primary disk, grub has to be installed to the MBR of disk2 also. Obviously this will only work for RAID1. Additionally some howtos suggest a kind of device swap magic to make grub think that disk2 is disk1 on install. Also menu.lst needs to be modified to contain a fallback entry that boots from disk2. This will have to be updated by hand on every kernel upgrade - unless update-grub will be patched to handle such RAID setups. Finally mdadm has to be on the package list for the installed system. Then the created initramfs will happily boot from the RAID1 rootfs without further intervention. This should probably be mentioned in the wiki. Kind regards, Christopher -- Christopher Huhn Linux therapist Gesellschaft für Schwerionenforschung mbH Planckstraße 1 D-64291 Darmstadt http://www.gsi.de/ Handelsregister: Amtsgericht Darmstadt, HRB 1528 Geschäftsführer: Professor Dr. Horst Stöcker Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph, Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
Creating local mirror
For creating a local mirror, I found the script mkdebmirror. In this script, an rsync to debian/dists/etch/main/disks-i386 (or disks-amd86) is done. This data is however not available. Nor on the german, dutch or ftp.debian.org site. Who knows what the data is, which is rsynced to my machine? Walter
Re: Creating local mirror
Walter den Besten wrote: For creating a local mirror, I found the script mkdebmirror. In this script, an rsync to debian/dists/etch/main/disks-i386 (or disks-amd86) is done. This data is however not available. Nor on the german, dutch or ftp.debian.org site. Who knows what the data is, which is rsynced to my machine? No idea... If you want, I could search I might have some old scripts where such errors are corrected, but in general, I'd recommend using apt-mirror - it's simple and powerful, uses lines looking like sources.list entries. One note: with the Etch version of apt-mirror, don't use the cleanup feature - it has problems with packages with ~ in it, and cleans them away evenb if they ar up to date. Fixed in Unstable/Testing. Henning
RE: Setup_hardisk lvm Cannot determine size
Hello All right, another try. Greetings Sylvain Fai.log Loading keymap(s) fr-latin1 ...done. Calling task_action FAI_ACTION: install Performing FAI installation. All data may be overwritten! Calling task_install Source hook: partition.PROSODIE.source Unrecognized escape \d passed through at /fai/store/lib/exec.pm line 104. disklist was: cciss/c0d0Input was: disk_config disk1 bootable:1 primary /boot 500 ext3 rw primary - 0- - - disk_config lvm vg VG01 disk1.2 VG01-swap swap2048swapsw VG01-root / 2048ext3rw VG01-opt/opt3048ext3rw VG01-var/var2000ext3rw VG01-tmp/tmp600 ext3rw VG01-usr/usr2000ext3rw VG01-appli /appli 0- ext3rw (CMD) parted -s /dev/cciss/c0d0 unit TiB print 1 /tmp/v1iVf3jhTf 2 /tmp/vOmCvoabXR (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 0.03TiB (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/cciss/c0d0 unit B print free 1 /tmp/pSWTqRTavQ 2 /tmp/ztMLFv4NbL (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 36414750719B (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start End Size Type File system Flags (STDOUT) 0B 36414750719B 36414750720BFree Space (STDOUT) (CMD) parted -s /dev/cciss/c0d0 unit chs print free 1 /tmp/hlEaWBJ3ZH 2 /tmp/gB9KX4Ey3p (STDOUT) (STDOUT) Disk /dev/cciss/c0d0: 4427,44,32 (STDOUT) Sector size (logical/physical): 512B/512B (STDOUT) BIOS cylinder,head,sector geometry: 4427,255,63. Each cylinder is 8225kB. (STDOUT) Partition Table: msdos (STDOUT) (STDOUT) Number Start End Type File system Flags (STDOUT) 0,0,0 4427,44,32Free Space (STDOUT) Finding all volume groups No volume groups found (CMD) mdadm --detail --scan --verbose -c partitions 1 /tmp/Gnb84j5G7r 2 /tmp/vmOSXia0cs Current disk layout $VAR1 = { '/dev/cciss/c0d0' = { 'bios_heads' = '255', 'disklabel' = 'msdos', 'partitions' = {}, 'bios_cylinders' = '4427', 'size' = '36414750719', 'sector_size' = '512', 'begin_byte' = 0, 'end_byte' = '36414750718', 'bios_sectors_per_track' = '63' } }; Current LVM layout $VAR1 = {}; Current RAID layout $VAR1 = {}; Desired disk layout $VAR1 = { 'PHY_/dev/cciss/c0d0' = { 'disklabel' = 'msdos', 'partitions' = { '1' = { 'start_byte' = 32256, 'number' = 1, 'mountpoint' = '/boot', 'mount_options' = 'rw', 'size' = { 'resize' = 0, 'range' = '518160384-518160384', 'preserve' = 0, 'eff_size' = 518160384, 'extended' = 0 }, 'filesystem' = 'ext3', 'fs_options' = '', 'end_byte' = 518192639 }, '2' = { 'start_byte' = 518192640, 'number' = 2, 'mountpoint' = '-', 'mount_options' = '-', 'size' = { 'resize' = 0, 'range' = '35895121920-35895121920', 'preserve' = 0, 'eff_size' = '35895121920', 'extended' = 0 }, 'filesystem' = '-', 'fs_options' = '', 'end_byte' = '36413314559' } }, 'fstabkey' = 'device', 'bootable' = '1', 'virtual' = 0 }, 'VG_VG01' = { 'volumes' = { 'appli' = { 'filesystem' = 'ext3', 'fs_options' = '', 'mountpoint' = '/appli', 'mount_options' = 'rw', 'size' = { 'resize' = 0, 'range' = '0-33889.933300972', 'preserve' = 0, 'eff_size' = '22145.9333007813' }
Re: Creating local mirror
On Wed, 9 Apr 2008 13:05:10 +0200, Walter den Besten [EMAIL PROTECTED] said: For creating a local mirror, I found the script mkdebmirror. In this script, an rsync to debian/dists/etch/main/disks-i386 (or disks-amd86) is done. This is already commented out in newer versions of the script. IIRC, this directory does not exists after sarge, so not need to rsync it for etch or after. -- regards Thomas
Re: Setup_hardisk lvm Cannot determine size
Hello All right, another try. Ok, we're getting a lot closer. Could you please give r4867 a try? Thanks, Michael pgpxz0R1hueVf.pgp Description: PGP signature