-
February 27th, 2008 08:53 PM #1
Partition Modifications
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.
Thanks,
Mahmoud Hanafi
Sr. System Administrator
CSC HPC COE
Bld. 676
2435 Fifth Street
WPAFB, Ohio 45433
(937) 255-1536
Computer Sciences Corporation
Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
USA
Registered in USA No: C-489-59
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-
February 28th, 2008 02:31 AM #2
Partition Modifications
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
-
February 28th, 2008 01:20 PM #3
Partition Modifications
Thank you for the info.
It seem there is large reliance for storing conf info in a database rather
than plain text files.....
Mahmoud Hanafi
Sr. System Administrator
CSC HPC COE
Bld. 676
2435 Fifth Street
WPAFB, Ohio 45433
(937) 255-1536
Computer Sciences Corporation
Registered Office: 2100 East Grand Avenue, El Segundo California 90245,
USA
Registered in USA No: C-489-59
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
George Goh <ggoh@osgdc.org>
Sent by: kusu-users-bounces@osgdc.org
02/27/2008 10:31 PM
Please respond to
Users of Kusu <kusu-users@osgdc.org>
To
Users of Kusu <kusu-users@osgdc.org>
cc
Subject
Re: [Kusu-users] Partition Modifications
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
Kusu-users@osgdc.org
http://mail.osgdc.org/mailman/listinfo/kusu-users
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules