[Rocks-Discuss] Adding a new hard drive in frontend

513 views
Skip to first unread message

Tomas Katkevicius

unread,
Feb 28, 2011, 7:48:19 AM2/28/11
to Discussion of Rocks Clusters
Hi all,

I have such a situation. We are now lacking of space on frontend. So we
bought 2x2TB hard drives. And now i want to replace home partition with
these hard drives.
What are the main steps in doing such a job technically correct? I didin't
manage to find any rocks commands. I also want to use software raid
(stripe).
How to add new drives in rocks database? We are using rocks v5.3
Thanks.

Regards,
Tomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.sdsc.edu/pipermail/npaci-rocks-discussion/attachments/20110228/e04f870f/attachment.html

Jon Forrest

unread,
Feb 28, 2011, 12:12:50 PM2/28/11
to npaci-rocks...@sdsc.edu
On 2/28/2011 4:48 AM, Tomas Katkevicius wrote:
> Hi all,
>
> I have such a situation. We are now lacking of space on frontend. So we
> bought 2x2TB hard drives. And now i want to replace home partition with
> these hard drives.
> What are the main steps in doing such a job technically correct? I didin't
> manage to find any rocks commands. I also want to use software raid
> (stripe).
> How to add new drives in rocks database? We are using rocks v5.3

When I first read your message I erroneously thought you were
asking how to move a whole Rocks frontend to new disk drives.
That would be a challenging but maybe possible endeavor.

However, seeing that you only want to move the "home partition"
that's much easier. First of all, keep in mind that the home
partition is actually /export. So, what I'd do is the following:

1) physically add the disks to your frontend.

2) partition them using your favorite partitioning tool to
have a mirrored partition of whatever size you want.

3) mount the newly created partition somewhere, say /tmp/x .

4) Run the following commands:

cd /export
tar cf - . | (cd /tmp/x; tar xvpf -)

5) Modify /etc/fstab to mount the new partition as /export
instead of the old one.

6) Reboot.

If this works and you feel brave then you can boot
from a RescueCD and reallocate that space that had
been used by /export to be used by another partition.

I don't see any reason for modifying the Rocks database
to do any of this.

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlfo...@berkeley.edu

Reply all
Reply to author
Forward
0 new messages