As far as I have looked to the source, it seems that function sub collect_disks in si_prepareclient is not compliant to what happen on our servers:

sistest4:~# cat /proc/partitions
major minor  #blocks  name     rio rmerge rsect ruse wio wmerge wsect wuse running use aveq

 104     0   71126640 cciss/disc0/disc 6816 118816 312026 11080 2571 2713 42258 36660 0 16140 47740
 104     1     174804 cciss/disc0/part1 24 556 1160 70 8 1 18 130 0 190 200
 104     2    5325195 cciss/disc0/part2 4 3 32 30 0 0 0 0 0 30 30
 104     3   65626639 cciss/disc0/part3 6783 118242 310794 10970 2563 2712 42240 36530 0 16020 47500
 104    16   71126640 cciss/disc1/disc 5 11 32 0 0 0 0 0 0 0 0
 104    32   71126640 cciss/disc2/disc 5 11 32 20 0 0 0 0 0 20 20

There is no match in ths function, so may the issue be here ?? Find the other answer below inline.

Roger

Andrea Righi a écrit :
Roger Chevalier wrote:
  
Hi all,

I compiled 3.8.2 on debian sarge as client:
- do the client install
- do the si_prepareclient
- do si_getimage on server
no issue noticed.
When trying to restore image on same server, it was unable to create
disk structure.

I investigate and found that /etc/systemimager/autoinstallscript.conf
was lacking all disk information:
   <disk dev="/dev/cciss/c0d0" label_type="msdos" unit_of_measurement="MB">
     <!--
       This disk's output was brought to you by the partition tool "sfdisk",
       and by the numbers 4 and 5 and the letter Q.
     -->
     <part  num="1"  size="179"  p_type="primary"  p_name="-"  flags="-" />
     <part  num="2"  size="5453"  p_type="primary"  p_name="-" 
flags="swap" />
     <part  num="3"  size="*"  p_type="primary"  p_name="-"  flags="lvm"
lvm_group="vg00" />
   </disk>
    

Do you mean that this configuration is not present in autoinstallscript.conf
(and you defined it manually) or that the <fsinfo></fsinfo> section is missing?

  
Yes it was lacking in autoinstall script, I copy it from a sister setup using a 2.6 kernel

In any case could you post the output of the following commands (from your
golden client):

# sfdisk -l -uM /dev/cciss/c0d0
  
sistest4:~# sfdisk -l -uM /dev/cciss/c0d0

Disk /dev/cciss/c0d0: 17433 cylinders, 255 heads, 32 sectors/track
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/cciss/c0d0p1         0+   170-   171-    174804+  83  Linux
                end: (c,h,s) expected (42,215,10) found (21,194,23)
/dev/cciss/c0d0p2       170+  5371-  5201-   5325195+  82  Linux swap / Solaris
                start: (c,h,s) expected (42,215,11) found (21,194,24)
                end: (c,h,s) expected (1023,254,32) found (684,183,12)
/dev/cciss/c0d0p3      5371+ 69459- 64089-  65626639+  8e  Linux LVM
                start: (c,h,s) expected (1023,254,32) found (684,183,13)
                end: (c,h,s) expected (1023,254,32) found (1023,254,63)
/dev/cciss/c0d0p4         0      -      0          0    0  Empty

# mount
  
sistest4:~# mount
/dev/mapper/vg00-root on / type reiserfs (rw)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
/dev/mapper/vg00-home on /home type reiserfs (rw)
/dev/mapper/vg00-tmp on /tmp type reiserfs (rw)
/dev/mapper/vg00-usr on /usr type reiserfs (rw)
/dev/mapper/vg00-var on /var type reiserfs (rw)
/dev/mapper/vg00-sarge26 on /mnt/sarge type ext3 (rw)
usbfs on /proc/bus/usb type usbfs (rw)
sistest4:~# uname -a
Linux sistest4 2.4.27-3-386 #1 Wed Dec 6 00:38:33 UTC 2006 i686 GNU/Linux

# cat /etc/fstab

  
sistest4:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc    /proc   proc    defaults        0       0
/dev/mapper/vg00-root   /       reiserfs        defaults        0       1
/dev/cciss/c0d0p1       /boot   ext3    defaults        0       2
/dev/mapper/vg00-home   /home   reiserfs        defaults        0       2
/dev/mapper/vg00-tmp    /tmp    reiserfs        defaults        0       2
/dev/mapper/vg00-usr    /usr    reiserfs        defaults        0       2
/dev/mapper/vg00-var    /var    reiserfs        defaults        0       2
/dev/cciss/c0d0p2       none    swap    sw      0       0
/dev/hda        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/mapper/vg00-sarge26        /mnt/sarge      ext3    defaults        0       2


  
This is on a HP DL380G4 with netraid (cciss driver).
It works Well with same setup but using 2.6 kernel of sarge and also I
do not have this problem on a ia64 with sarge+kernel2.4 (but no netraid
driver)

Any help welcome.
    

Which distribution are you using with the 2.6 kernel?
  
We are still using debian sarge (also rhel4, rhel5)
-Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

  


--

Roger Chevalier


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to