Adding new disks

OK, this deserves an RTFM and I am most happy to if someone can point me to the FM.

My experience with Solaris is old, previously I would adda disk, newfs it (if needed), edit /etc/fstab and mount the disk. Now I have an Ultra 2 running Solaris 9. I bought an external disk off Ebay and will need to mount it.

So what are my choices. I know I can create a /extra partition and drop it there. But I also assume there is a way to add this new physical disk to a current mount that I have. I know there is volume manager software that will allow this. Is that part of Solaris 2.9 and where do I read about it ?

Thanks

Andy

[650 byte] By [aknipp] at [2007-11-26 9:31:49]
# 1
Welcome backSolaris 9 has "Solaris Volume Manager"see for details http://docs.sun.com/app/docs/doc/806-6111
staniforth at 2007-7-7 0:17:30 > top of Java-index,General,Sys Admin Best Practices...
# 2

Recap, I have a Sun Ultra 2 at home, 2 internal disks and I just bought an external. I would like to "combine" the two, non root disks into 1 logical partition. They are 2 18 GB disks and I have them with a single partition each. One has valuble data, the new one does not. Since this is a home toy I am not concerned about performance.

So I have been going through the Volume Manager manual and *think* I should set up a Raid 0 concatination of the two disks. Can I do that and preserve the data on the first disk ? I am pretty certain that answer is no. My steps look like: Use the metainit command to create a new volume with disk 1, then use the metattach command to expand an existing volume. Finally newfs and mount.

Does this look correct ? Is there a better approach ?

Any tips/pointers/RTFMs are appreciated.

Message was edited by:

aknipp

aknipp at 2007-7-7 0:17:30 > top of Java-index,General,Sys Admin Best Practices...
# 3

You can do it without losing data and without a newfs.

You need to convert the single disk to a metadisk.

Unmount it first then remount it via the new metadisk.

Then do a metattach to attach the second disk to it.

Then you can do a growfs to expand the filesystem to use the new space.

robertcohen at 2007-7-7 0:17:30 > top of Java-index,General,Sys Admin Best Practices...