To format or reformat a SlapOS node the slapformat
command is used (see all command line options). This will configure a node based on the configuration in /etc/opt/slapos/slapos.cfg
. Running slapformat
without creating or changing the configuration will only "ping" the slapos master
$ sudo su
# slapos node format --now
2018-03-28 15:32:58 slapos[18922] INFO Updating computer
2018-03-28 15:33:30 slapos[18922] INFO Posting information to 'https://slap.vifib.com/'
2018-03-28 15:33:31 slapos[18922] INFO slapos successfully prepared the computer.
If a node has not been registered or formatted before, slapformat
will create 20 computer partitions along with users, their directories, tap interfaces and IPv6 addresses for every service of each computer partition (see SlapOS architecture for more info on what a node contains).
Note, for initial formatting after registering a node, the alter_user
option has to be set:
$ sudo su
# slapos node format --alter_user=True --now