Solved

Question about mkfs on large file systems.

Posted on 2004-10-14
8
7,321 Views
Last Modified: 2013-12-27
Hi, All.
I am not very experience with Solaris. I am facing this problem:
I have a Sparc server running Cyclone, RAID dead, I recreated the logical drive on RAID box, but need to make the file system before it is mountable.
I boot to single user mode, use format assigned all the space to c2t1d0s0 (208.50G), label it, quit.
It looks fine. But when I use mkfs -F ufs /dev/rdsk/c2t1d0s0 it gives me the error:
size not specified

How do I create this file system ? This file system is used to store news spool, they are large files.

Thank you!

0
Comment
Question by:andyzhao
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 12315110
Just use 'newfs /dev/rdsk/c2t1d0s0'. You'd only want to use mkfs if you had specific file system options that needed to be included when constructing the file system (see 'man mkfs').
0
 

Author Comment

by:andyzhao
ID: 12315311
Thanks for the reply.
I have tried newfs /dev/rdsk/c2t1d0s0, it was not working.
It gave me error about wrong magic number or something.
I could not recall the error. I can not try it again now, since I was rebuilding the raid, it is currently initializing.

Thanks.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12315817
"wrong magic number" would imply that there's not a Solaris partition structure and disk label on the volume. Before using newfs it is necessary to run format and create the partition structure.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:andyzhao
ID: 12315849
Thanks for the reply again.
Like I said, after successfully initialized the RAID. I boot the server to single user mode (from OK prompt, boot -s)
I run format command.
Assigned all the space to slice 0 (because I only need one large slice).
Then I labeled, quit.
Then tried the newfs and mkfs command.
It seems now mkfs working, because I run mkfs -m from another server, and modified the raw device name, and the block size.
But I am afraid that there is any mistake in those options, since I am not quite understand everyone's meaning.
Also, the news spool file is 20G each, dont know if there is any potential problem.
Command I used here:

mkfs -F ufs -o nsect=32, ntrack=16, bsize=8192, fragsize=8192, cgsize=16, free=1, rps=60, nbpi=8684, opt=t, apc=0, gap=0, nrpos=8, maxcontig=32 /dev/rdsk/c2t1d0s0 426776896
#

Thanks!
0
 

Expert Comment

by:Sandeep_Shenoy
ID: 12512574
hi Andy,

Please clarify this message : "I could not recall the error. I can not try it again now, since I was rebuilding the raid, it is currently initializing."

What I understand from this is : U have created a partition on the LUN, when the RAID was STILL being rebuilt..
No Wonder the newfs failed.!!!!
U MUST WAIT till the RAID creation process is complete and THEN go ahead with creation of partitions and newfs the filesystems.
Hope this helps.

regards

0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12807761
PAQed with no points refunded (of 125)

modulo
Community Support Moderator
0
 

Author Comment

by:andyzhao
ID: 13975675
My problem is now solved.
It was pretty simple:

mkfs -F ufs /dev/rdsk/c2t1d0s7 1921782923

**1921782923 is the block size, you can get it from format command, then look at the partition information.

Because this file system is for news spools, so, it is necessary to run "tunefs -m 0 /dev/dsk/c2t1d0s7" after mkfs sucessful, otherwise, by default, it will reserve 10% of disk space that only writeable by super user.


Sorry about the late reply, I almost forgot I asked this question until I accidentally got this page again by google.

Thanks for all the help from everyone.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question