Creating create mirrored disk files systems using mkfs command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Creating create mirrored disk files systems using mkfs command
# 1  
Old 08-09-2006
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 10:23 AM..
# 2  
Old 08-11-2006
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  
Old 08-11-2006
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  
Old 08-26-2006
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  
Old 11-07-2006
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Booting 2nd mirrored boot disk

Hi guys, thanks for helping out. If you have two boot disk mirrored and your primary boot disk fails, how will you boot the system from the second disk? Thank you very much for your assistance on this matter. Arrey (5 Replies)
Discussion started by: cjashu
5 Replies

2. Solaris

Need help replacing a mirrored boot disk

I have a v480 with a mirrored boot disk c1t0 and c1t1. The drives themselves don't show a failure but the mirror's need maintenance. This is my plan for replacing the drive. I would love feedback to point out what I"m missing or where my steps are incorrect. Two things I believe I'm... (3 Replies)
Discussion started by: pcoffey
3 Replies

3. Solaris

Boot from Mirrored disk

So I have mirrored disk already set up from c1t0d0 to c1t1d0. Is there some special procedures that I need to do before I do and then try to boot from the mirrored disk? I am using a V490 if that helps... (7 Replies)
Discussion started by: drew_1980
7 Replies

4. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

5. Solaris

Creating an image of a mirrored disks

Hi guys, I havent done this before but iam trying to create an image of a mirrorred drive. Correct me if iam wrong, but when i have two disks setup in raid configuration and have them mirrored in solaris. It then defines at one entity. How would i create a "flar" image of that one entity... (3 Replies)
Discussion started by: tlee
3 Replies

6. Solaris

Remove os mirrored disk Solaris 10

Hello once again seeking your help, I have a mirrored disk and need to unmirror it to mount it as a new file system (/export) but could not find the correct steps to do it with out affecting the original disk. can anybody point me out on how to get this done. Thanks!! (3 Replies)
Discussion started by: AQG
3 Replies

7. UNIX for Dummies Questions & Answers

Solaris 10 not booting with mirrored disk

Hi all, I have a V490 running with Solaris 10. The OS disk was mirrored. I wanted to break the mirror, boot with the secondary mirror, and re-mirror the OS with a new disk. This is what I did, detached the metadevices of the secondary mirror disk (disk 1) metaclear-ed the metadevices,... (1 Reply)
Discussion started by: nitinp82
1 Replies

8. Programming

Creating a Unique ID on distributed systems

Hi, How do you actually create a unique ID on a distributed system. I looked at gethostid but the man page says that its not guaranteed to be unique. Also using the IP address does not seem to be a feasible solution. Is there a function call or mechanism by which this is possible when even the... (4 Replies)
Discussion started by: pic
4 Replies

9. AIX

Mirrored disk.....

How do I know, which all disks are mirrored? any command? Bala (7 Replies)
Discussion started by: balaji_prk
7 Replies

10. HP-UX

Number of Disk Mirrored in HP-UX

In HP-UX 11.00 How can i check if there are disks mirrored (2 Replies)
Discussion started by: cgege
2 Replies
Login or Register to Ask a Question