[Starcluster] enlarge volume

Justin Riley jtriley at MIT.EDU
Thu Aug 12 12:18:47 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/12/2010 11:43 AM, Dan Yamins wrote:
> Does this completely confirm that the larger 500 GB volume is completely
> "seen"?   (And if so, does this mean that nothing like resize2fs or
> xfs_growfs is necessary?)

Dan,

- From the fdisk -l output you sent you can see that you have a larger
volume now (536.8GB) however your partition is still only 20GB big:

20964824(blocks)/1024.0(blocks/MB) ~= 20GB

You need to recreate the partition to be 536.8GB and then run resize2fs:

If you're doing this on a StarCluster you'll first need to run the
following command (as root) on each node of the cluster for the
mount_path defined in your volume's StarCluster config:

$ umount MOUNT_PATH

Then shutdown the nfs service (as root) on the master node:

$ /etc/init.d/nfs stop

After that do the following (as root) to resize your new volume:

$ umount /dev/sdz
$ fdisk /dev/sdz

# Type 'd' to delete the primary partition
# Type 'n' for new partition
# Type 'p' for primary
# Type '1' for 1st
# Type Enter for 1st cylinder
# Type Enter for last cylinder (full disk)
# Type 'w' to finish

$ e2fsck -f /dev/sdz1
$ resize2fs -p /dev/sdz1
$ fsck -f -y /dev/sdz1

Then you should be able to mount the new volume:

$ mount /dev/sdz1 MOUNT_PATH

And start nfs again on the master:

$ /etc/init.d/nfs start

And re-mount the NFS drives for that volume on each of the nodes:

$ mount MOUNT_PATH

HTH,

~Justin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxkHucACgkQ4llAkMfDcrnxIwCgjFOPtLte3TT59m8mPONqPf3O
ZhAAnRQ8ByIehbl6CS/8QbraCistzu6+
=9VLQ
-----END PGP SIGNATURE-----



More information about the StarCluster mailing list