Partition multiple drives in Solaris

Written by Ren West on December 10th, 2004

Say you have an ol E450 with a whack of drive in it (they fit 20). You want to put all those drives in a RAID5 or something and wish to have them all laid out the same way, partition wise. Here’s a shortcut. Format one of the drives the way you want it. Then run the following:

prtvtoc /dev/rdsk/ | fmthard -s – /dev/rdsk/

This will copy the partition table from the drive (example c0t0d0s2) to the (example c0t2d0s2). Obviously you can script this to hit all the drives.

Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • Reddit
  • email
  • StumbleUpon
  • Google Bookmarks
 

Comments are closed.

Page optimized by WP Minify WordPress Plugin