The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Remove os mirrored disk Solaris 10 AQG SUN Solaris 3 01-10-2008 12:00 PM
Solaris 10 not booting with mirrored disk nitinp82 UNIX for Dummies Questions & Answers 1 01-25-2007 10:48 AM
Creating a Unique ID on distributed systems pic High Level Programming 4 05-10-2006 10:25 AM
Mirrored disk..... balaji_prk AIX 7 12-23-2005 08:26 AM
Number of Disk Mirrored in HP-UX cgege HP-UX 2 02-27-2004 11:13 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-09-2006
GLJ@USC GLJ@USC is offline
Registered User
  
 

Join Date: May 2006
Posts: 17
correct mkfs syntax to create mirrored disk files systems?

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#


Any help is greatly appreciated. Thank you

Last edited by RTM; 08-11-2006 at 09:23 AM..
  #2 (permalink)  
Old 08-11-2006
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
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
  #3 (permalink)  
Old 08-11-2006
GLJ@USC GLJ@USC is offline
Registered User
  
 

Join Date: May 2006
Posts: 17
Creating a new disksuite filessystem

Quote:
Originally Posted by RTM
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:

Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 998M 98M 840M 11% /
/dev/md/dsk/d3 4.9G 1.1G 3.8G 23% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d4 9.9G 319M 9.5G 4% /var
swap 4.8G 24K 4.8G 1% /var/run
swap 4.8G 16K 4.8G 1% /tmp
nfs-fs1,nfs-fs2:/export/usc/sparc.sunos.5
155G 122G 30G 80% /auto/usc


Look like this(/dev/md/dsk/d40 /oracle being the new filesystem):

Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 943M 91M 796M 11% /
/dev/md/dsk/d2 3.9G 1.2G 2.7G 31% /usr
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
fd 0K 0K 0K 0% /dev/fd
/dev/md/dsk/d3 4.8G 282M 4.5G 6% /var
swap 2.3G 32K 2.3G 1% /var/run
swap 2.3G 48K 2.3G 1% /tmp
/dev/md/dsk/d40 3.9G 1.5G 2.4G 40% /oracle

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.
  #4 (permalink)  
Old 08-26-2006
UKPhil UKPhil is offline
Registered User
  
 

Join Date: Aug 2006
Location: UK
Posts: 5
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.
  #5 (permalink)  
Old 11-07-2006
GLJ@USC GLJ@USC is offline
Registered User
  
 

Join Date: May 2006
Posts: 17
Disksuite Guide

To anybody who sees this thread here is a greate guide :

http://www.batcom-it.net/index.php?o...d=41&Itemid=41
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0