?
Solved

I/O error ; Cannot mount /dev/dsk/c1t4d0s0

Posted on 2008-04-27
7
Medium Priority
?
6,912 Views
Last Modified: 2013-12-27
Hi,

I have a Sun V880 which contains Solaris 9 previously & now decommissioned.
Just reinstalled Solaris 10 on it & used 'format' to partition one of the disks,
c1t4d0  but after format (& setting various partition sizes & did 'label'), I'm not
able to mount it :

# mount /dev/dsk/c1t4d0s0 /appl
mount: I/O error
mount: Cannot mount /dev/dsk/c1t4d0s0

# prtvtoc /dev/rdsk/c1t4d0s0
* /dev/rdsk/c1t4d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     424 sectors/track
*      24 tracks/cylinder
*   10176 sectors/cylinder
*   14089 cylinders
*   14087 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      0    00          0   6298944   6298943
       1      0    00    6298944  14683968  20982911
       2      5    01          0 143349312 143349311
       3      0    00   20982912 121643904 142626815
       4      0    00   27383616  20972736  48356351
       5      0    00   48356352  20972736  69329087
       6      0    00   79820544  31464192 111284735
       7      0    00  143227200    122112 143349311

I've also tried to "fsck -y /dev/rdsk/c1t4d0s2" &
reattempt mounting it but to no avail.  I'm also facing
this problem with another disk c1t2d0s2 now.
0
Comment
Question by:sunhux
  • 4
  • 3
7 Comments
 
LVL 1

Assisted Solution

by:casemanager
casemanager earned 1200 total points
ID: 21451714
Hi sunhux,

Please let me know if you have a created a file system on c1t4d0s0 slice. What is the output of :-

# fstyp /dev/dsk/c1t4d0s0

Regards,
casemanageer
0
 

Author Comment

by:sunhux
ID: 21451862
Yes, the slice I'm trying to mount (s0) is ufs (but other slices on the disk
are unknown (though I've partitioned them using 'format')  :

# fstyp /dev/dsk/c1t4d0s0
ufs

# fstyp /dev/dsk/c1t4d0s1
Unknown_fstyp (no matches)
# fstyp /dev/dsk/c1t4d0s3
Unknown_fstyp (no matches)
# fstyp /dev/dsk/c1t4d0s7
Unknown_fstyp (no matches)
0
 

Author Comment

by:sunhux
ID: 21451895
Hi

Think I got it working now : I have to do
newfs /dev/rdsk/c1t4d0s0  (as well as the other slices)
then I'm able to mount them.

One last question :
I have allocated s7 for metadb - does this slice needs to
be 'newfs'ed as well if it's not going to be mounted but
used for storing metadb only?

Thanks
0
2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

 
LVL 1

Accepted Solution

by:
casemanager earned 1200 total points
ID: 21451952
If you are not planning to mount the slice then there is no need for creating a new file system on the slice 7. But if you wish to store some data onto the slice 7, then you need to create a file system first. see below:-
# metadb -a -f c0t0d0s7
 # newfs /dev/rdsk/c0t0d0s7
 # mount /dev/dsk/c0t0d0s7 /mnt

The disk and the slices used above are just examples.
0
 

Author Comment

by:sunhux
ID: 21452009
So, can I say that there's no harm to do 'newfs' on the
slice (s7) which I'm going to store metadb?

Thanks & pardon my lengthiness
0
 

Author Comment

by:sunhux
ID: 21452021

Just to clarify what I wanted :
ie I'll newfs /dev/rdsk/c0t0d0s7, then later,
can I still do "metadb -a -f c0t0d0s7"
0
 
LVL 1

Assisted Solution

by:casemanager
casemanager earned 1200 total points
ID: 21452112
Hi Sunhux,

It is always recommended that one should create state databases on a dedictaed slice that is atleast 4mb in size for each database replica it will store. Also, you cannot create state database replica on slices containing existing file system or data. So in other words:-

newfs /dev/rdsk/c0t0d0s7, then later,
can I still do "metadb -a -f c0t0d0s7 (No... this will not work ).

You can create state database replicas on slices that will later become part of volumes. Hope this answers your question.

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month5 days, 5 hours left to enroll

601 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