[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

stateless problems



i'm having a few problems with setting up stateless linux for the
rsync-based cached instantiation model

first of all, i couldn't get the post install script in the kickstart
file to work. and i'm not sure why because i could not see any output
from that script but i know that when the system would reboot, the
stateless-client package would not be installed

so i wrote my own post install ks script using bash so that it installs
the stateless-client package - i also added some commands to populate
the variables in the /etc/sysconfig/stateless file because after the
package install, those values were set to default

i'm pretty sure that this is not the way this is supposed to work,
probably i missed something but nevertheless i got myself this far

now my problem is getting the client to replicate the snapshop

the original code in the post-install script was

### Now launch the real bootstrap
    sys.path.append ('/mnt/sysimage/usr/share/stateless/')
    import bootstrap
    bootstrap.run('aware-of-vacuity.boston.redhat.com', 'Test42')

i don't know python and i don't really understand how this is 'supposed'
to work

i am trying to replicate the snapshot manually by running "python
replicator.py update" but i am now getting errors about not being able
to determine which root partition is in reserve

[root store-lan1-100 stateless]# python replicator.py update
/sbin/e2label: Attempt to read block from filesystem resulted in short
read while trying to open /dev/hda4
Couldn't find valid filesystem superblock.
/sbin/e2label: No such file or directory while trying to open /dev/hda6
Couldn't find valid filesystem superblock.
Traceback (most recent call last):
  File "replicator.py", line 767, in ?
    update_client_on_cronjob_or_manual()
  File "replicator.py", line 737, in update_client_on_cronjob_or_manual
    repl = LiveReplicatorBackgroundUpdate()
  File "replicator.py", line 675, in __init__
    Replicator.__init__ (self, ldap_dir, False)
  File "replicator.py", line 583, in __init__
    self.root = Replicator.ClientPartitionRole(ROLE_ROOT,
self.temp_dir_name, self)
  File "replicator.py", line 387, in __init__
    self.locate_partitions()
  File "replicator.py", line 405, in locate_partitions
    raise PartitionError, "Could not determine which %s is in
reserve"%self.get_name()
__main__.PartitionError: Could not determine which root partition is in
reserve

i'm using FC3 release version

my partition layout is as per the example

[root store-lan1-100 stateless]# df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/hda2                 3027       632      2242  22% /
/dev/hda1                   99         9        86   9% /boot
none                       252         0       252   0% /dev/shm
/dev/hda5                   99         6        89   6% /reserve-boot
/dev/hda3                 3027        37      2837   2% /reserve-root

[root store-lan1-100 stateless]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults       
1 1
LABEL=/boot             /boot                   ext3    defaults       
1 2
none                    /dev/pts                devpts  gid=5,mode=620 
0 0
none                    /dev/shm                tmpfs   defaults       
0 0
none                    /proc                   proc    defaults       
0 0
LABEL=/reserve-boot     /reserve-boot           ext3    defaults       
1 2
LABEL=/reserve-root     /reserve-root           ext3    defaults       
1 2
none                    /sys                    sysfs   defaults       
0 0

any guidance here would be appreciated,

Peter Schobel
-- 
  #########################
 #                       ##
######################### #
# Peter Schobel         # #
# Network Administrator # #
# Porchlight.ca         # #
# Unlimited Internet    # #
# www.porchlight.ca     ##
#########################


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]