Dear SI-Suite Wizards, This is a comment regarding the use of si-suite (any version, probably) with newer version of parted.
During the setup of our cluster, I have had problems getting the correct partition label on swap partitions. Basically, the correct flag "linux-swap" is not set in the installation script. I have traced the issue backwards, and the flag is not in the autoinstallscript.conf file either. As it turns out the problem seems related to parted and that our present version (Parted 2.1 on CentOS 6.2) writes/interprets swap labels differently than on our previous/old cluster. The present partition table looks like this: [root@dn001 ~]# parted -s -- /dev/sda print Model: ATA GB0160EAPRR (scsi) Disk /dev/sda: 160GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 4195MB 4195MB primary ext4 boot 2 4195MB 21.0GB 16.8GB primary linux-swap(v1) 3 21.0GB 29.4GB 8388MB primary ext4 4 29.4GB 160GB 131GB extended 5 29.4GB 33.6GB 4194MB logical ext4 6 33.6GB 35.7GB 2097MB logical ext4 7 35.7GB 160GB 124GB logical ext4 The problem here is that "linux-swap(v1)" is not recognized in SystemImager/Common.pm, where the regex is (this is from 4.1.99): my $fs_regex = '(ext4|ext3|ext2|fat32|fat16|hfs|jfs|linux-swap|ntfs|reiserfs|hp-ufs|sun-ufs|xfs)\s*'; As the fs_regex does not match my swap partition fstype (“linux-swap(v1)”), the correct “linux-swap” flag is not written into autoinstallscript.conf (by si_prepareclient), and consequently, the parted command in the install script does not have the “linux-swap” flag. This is not truly a show-stopper, as I can make and add the swap space regardless, but I would like to see the correct label in the partition table. For information, here is additional output from our version of parted: [root@dn001 ~]# parted -v parted (GNU parted) 2.1 Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by <http://parted.alioth.debian.org/cgi-bin/trac.cgi/browser/AUTHORS>. [root@dn001 ~]# parted GNU Parted 2.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) help mkfs mkfs NUMBER FS-TYPE make a FS-TYPE file system on partition NUMBER NUMBER is the partition number used by Linux. On MS-DOS disk labels, the primary partitions number from 1 to 4, logical partitions from 5 onwards. FS-TYPE is one of: ext2, fat32, fat16, swsusp, linux-swap(v1), linux-swap(v0), linux-swap, linux-swap(new), linux-swap(old) The swap partition in question has been made under installation with systemimager. Are there any comments? Did I do something stupid, or should we update Common.pm to fix it? Help is welcome! Thanks, Bjarne Büchmann ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ sisuite-users mailing list sisuite-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sisuite-users