xcat-core icon indicating copy to clipboard operation
xcat-core copied to clipboard

litefile and rc.localdisk not work on Rocky 8.10 for diskless mode

Open hmliustc opened this issue 7 months ago • 1 comments
trafficstars

  • One the xcat server:
  1. lsdef -t osimage rocky8.10-x86_64-netboot-compute:

partitionfile=/install/custom/netboot/rocky8.10/cfglocaldisk

  1. cat partitionfile=/install/custom/netboot/rocky8.10/cfglocaldisk:

enable=yes enablepart=yes

[disk] dev=/dev/sda clear=yes fstype=ext4 parts=10,20,30

[localspace] dev=/dev/sda1 fstype=ext4

  1. tabdump policy:

"4.7",,,"litefile",,,,"allow",, "4.8",,,"litetree",,,,"allow",, "7.1",,,"getpartition",,,,"allow",,

  • On the client:
  1. cat /proc/cmdline:

imgurl=http://192.168.106.252:80//install/netboot/rocky8.10/x86_64/compute/rootimg.cpio.gz XCAT=192.168.106.252:3001 NODE=cnode001 FC=0 XCATHTTPPORT=80 LOGSERVER=192.168.106.252 syslog.server=192.168.106.252 syslog.type=rsyslogd syslog.filter=. xcatdebugmode=1 console=tty0 console=ttyS0,115200 selinux=0 BOOTIF=01-7c-1c-f1-40-a2-f2

  1. cat /.sllocal/log/localdisk.log:

kernel parameter key is: imgurl kernel parameter key is: XCAT kernel parameter key is: NODE kernel parameter key is: FC kernel parameter key is: XCATHTTPPORT kernel parameter key is: LOGSERVER kernel parameter key is: syslog.server kernel parameter key is: syslog.type kernel parameter key is: syslog.filter kernel parameter key is: xcatdebugmode kernel parameter key is: console kernel parameter key is: console kernel parameter key is: selinux kernel parameter key is: BOOTIF localdisk: do nothing.

  • On the xcat server:
  1. modify file '/opt/xcat/share/xcat/netboot/add-on/statelite/rc.localdisk', add on the line 49:

DOPART="yes" OS="rh"

2.add below to synclists file:

/install/custom/netboot/rocky8.10/cfglocaldisk' to /install/netboot/rocky8.10/x86_64/compute/rootimg/.sllocal/log/litefile

  1. genimage rocky8.10-x86_64-netboot-compute && packimage rocky8.10-x86_64-netboot-compute
  2. reboot the client.
  • On the client:
  1. df

/dev/sda1 989032 152896 768552 17% /.sllocal/localmnt

  • On the xcat server:
  1. modify file '/opt/xcat/share/xcat/netboot/add-on/statelite/rc.localdisk', change the line 240: 'mount -t $fstype $dev $MNTDIR$LOCAL' to 'mount -t $fstype $dev $MNTDIR/tmp'

It does not work.

hmliustc avatar Apr 04 '25 11:04 hmliustc