8000 litefile and rc.localdisk not work on Rocky 8.10 for diskless mode · Issue #7496 · xcat2/xcat-core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hmliustc opened this issue Apr 4, 2025 · 1 comment
Open

Comments

@hmliustc
Copy link
hmliustc commented Apr 4, 2025
  • 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
Copy link
Author
hmliustc commented Apr 4, 2025

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 /tmp' not '$MNTDIR/tmp'.

It does not work too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0