[prev in list] [next in list] [prev in thread] [next in thread] 

List:       npaci-rocks-discussion
Subject:    [Rocks-Discuss] trying to modify node / partition according to Rocks doc , did not work , what did I
From:       Christophe Guilbert <cguilbert () picasso ! ucsf ! edu>
Date:       2018-03-08 19:52:36
Message-ID: 6cf95810-2f40-24d7-f641-09ec139af491 () picasso ! ucsf ! edu
[Download RAW message or body]

Hi ,

I need a bigger / partition to install more package , I tried to follow 
Rocks Documentation but it does work

Could someone please pinpoint my mistakes, which log file I should check.

here is replace-custom-partition.xml

--------------------------------------

<?xml version="1.0" standalone="no"?>
<kickstart roll="base">
<!-- Custom Partitioning Node -->
<pre arg="--interpreter /opt/rocks/bin/python">

from rocks import rocks_partition

membership = '&membership;'
nodename = '&hostname;'

def doDisk_compute-0-1(file, disk):
         file.write('clearpart --all --initlabel --drives=%s\n' % disk)
         file.write('part / --size=20000 --fstype=ext4 --ondisk=%s\n' % 
disk)
         file.write('part /var --size=4000 --fstype=ext4 --ondisk=%s\n' 
% disk)
         file.write('part swap --size=8000 --ondisk=%s\n' % disk)
         file.write('part /state/partition1--size=1 --grow --fstype=ext4 
--ondisk=%s\n'
                 % disk)

#
# main
#
p = rocks_partition.RocksPartition()
disks = p.getDisks()

if nodename in [ 'compute-0-1' ]:
         if len(disks) == 1:
                 file = open('/tmp/user_partition_info', 'w')
                 doDisk_compute-0-1(file, disks[0])
                 file.close()


</pre>
</kickstart>
------------------------------------------------

cd /export/rocks/install

rocks create distro

rocks remove host partition compute-0-1

rocks set host boot action=install compute-0-1

ssh compute-0-1 'sh /share/apps/nukeit.sh'  (nukeit.sh is one given by 
the documentation.

ssh compute-0-1 'shutdown -r now'


I reinstall the node file , it just did not create a / of 20GB as requested.


Any help ?


Thanks


Chris

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic