Hi Mahmoud,
On Wed, 2008-02-27 at 16:53 -0500, Mahmoud Hanafi wrote: > I would like to change the partition layout of the compute node. Using the > Modification tool there isn't a option for a partition to grow to fill. > > What I would like to have just (no logical vols) > > /boot -> 100MB > / -> Grow to fill disk. > Since there currently isn't a way in the tool to define a partition to grow to fill the rest of the disk, we have to do it manually by modifying the database on the master. 1. Find the ngid corresponding to the nodegroup you want to modify. In the default Kusu master installation you should see this: # mysql kusudb mysql> select ngid,ngname from nodegroups; +------+----------------------------------+ | ngid | ngname | +------+----------------------------------+ | 4 | compute-diskless-fedora-6-x86_64 | | 3 | compute-imaged-fedora-6-x86_64 | | 2 | compute-fedora-6-x86_64 | | 1 | installer-fedora-6-x86_64 | | 5 | unmanaged | +------+----------------------------------+ 2. Substitute 'X' in the following commands with your desired ngid: $ mysql kusudb mysql> DELETE FROM partitions WHERE ngid='X'; mysql> INSERT INTO partitions VALUES(1,X,1,1,'/boot','ext3',100,NULL,0),(2,X,1,2,'/','ext3',1,'fill',0); - At this point, you can reprovision the node, and it should have the partitioning scheme you asked for. However, I typically define a swap partition too, in which case, here's the commands: $ mysql kusudb mysql> DELETE FROM partitions WHERE ngid='X'; mysql> INSERT INTO partitions VALUES(1,X,1,1,'/boot','ext3',100,NULL,0); mysql> INSERT INTO partitions VALUES(2,X,1,2,None,'linux-swap',2000,NULL,0); mysql> INSERT INTO partitions VALUES(3,X,1,3,'/','ext3',1,'fill',0); Hope this helps, George _______________________________________________ Kusu-users mailing list [email protected] http://mail.osgdc.org/mailman/listinfo/kusu-users
