What is the correct mkfs syntax to create mirrored disk files systems? I need to make the file system 20gb. For example:
machine# mkfs -F ufs /dev/md/dsk/d40
size not specified
ufs usage: mkfs [-F FSType] [-V] [-m] [-o options] special size(sectors) \
[nsect ntrack bsize fragsize cpg free rps nbpi opt apc gap nrpos maxcontig mtb]
-m : dump fs cmd line used to make this partition
-V : print this command line and return
-o : ufs options: :nsect=32,ntrack=16,bsize=8192,fragsize=1024
-o : ufs options: :cgsize=0,free=0,rps=60,nbpi=2048,opt=t
-o : ufs options: :apc=0,gap=0,nrpos=0,maxcontig=0
-o : ufs options: :mtb=n,calcsb,calcbinsb
NOTE that all -o suboptions: must be separated only by commas so as to
be parsed as a single argument
machine#
It might be helpful to have the OS and version - one can only assume this is Solaris due to the md device (normally that's a Disksuite device). Posting the version of Disksuite would also be helpful.
mkfs is not normally used - as stated in the mkfs man page. It also matters if the device already exist and you are trying to make it larger (you can make it smaller but there is no "quick" way to do that).
Another consideration is if this is the root partition you are working with (or swap partition). There are set procedures to expand a root/swap partiton - they have to be followed to insure a viable system. You may want to check out info on sunsolve.sun.com (if you have an account) or Disksuite info on Docs.sun.com
RTM ,
Thank you for responding. The OS I'm using is Solaris 9 which as you probably know comes with disksuite (now known as SVM). Basically I need to know the command lines to make this:
With all the various resources i've read(thanks for pointing me to Sun's Disksuite webpages) I'm still a little stumped on what specific commads I need to run to make this happen. Thanks in advance.
you want to create a 20GB filesystem on the mirror device /dev/md/dsk/d40. Presumably you have created the mirror already using metainit/metattach commands? Are the underlying disk slices 20GB? If so, just use newfs /dev/md/dsk/d40. If the underlying device is larger than 20GB, you can create your 20GB volume using soft partitions.