-
Notifications
You must be signed in to change notification settings - Fork 175
Description
- One the xcat server:
lsdef -t osimage rocky8.10-x86_64-netboot-compute
:
partitionfile=/install/custom/netboot/rocky8.10/cfglocaldisk
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
tabdump policy
:
"4.7",,,"litefile",,,,"allow",,
"4.8",,,"litetree",,,,"allow",,
"7.1",,,"getpartition",,,,"allow",,
- On the client:
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
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:
- 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
genimage rocky8.10-x86_64-netboot-compute && packimage rocky8.10-x86_64-netboot-compute
- reboot the client.
- On the client:
df
/dev/sda1 989032 152896 768552 17% /.sllocal/localmnt
- On the xcat server:
- 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.