Unable to see controller C1 on Solaris 8


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to see controller C1 on Solaris 8
# 8  
Old 04-26-2017
Good Morning,

I tried to manually mount each slice and i was getting below errors for these slices but rest i was able to mount and contents were visible.

Code:
bash-2.03# mount /dev/dsk/c1t0d0s0 /mnt/test
mount: the state of /dev/dsk/c1t0d0s0 is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again
bash-2.03# mount /dev/dsk/c1t0d0s1 /mnt/test
mount: the state of /dev/dsk/c1t0d0s1 is not okay
        and it was attempted to be mounted read/write
mount: Please run fsck and try again

Since i have detached the disk worth running the fsck on the raw disk c1t0d0s2 ?

Thanks,
P
# 9  
Old 04-26-2017
No, no, no. You don't run fsck on slice2 (??????s2) of any disk because that defines the whole disk to Solaris and does NOT hold a filesystem.

You cannot currently mount c1t0d0s0 and c1t0d0s0. Take a look again at the vtoc for that disk (see my earlier post as to how to do that) and see whether either or both are filesystems. Quite often ??????s1 is defined as swap space. If both are indeed filesystems then fsck those slices:

Code:
 
 # fsck -n /dev/rdsk/c1t0d0s0
 # fsck -n /dev/rdsk/c1t0d0s1

Note that I have included the '-n' switch to check the filesystems without correcting anything first just to see how much damage, if any, there is. Don't use the '-y' switch at the outset because telling it to correct all errors might destroy the filesystem on the ground if damage is extensive. If errors are few simply run again without the '-n' and say 'y' to each question to correct the error(s).

On a production system I would expect there to be entries in /etc/vfstab to mount these filesystems at boot time?
# 10  
Old 05-10-2017
Good Morning hicksd,

Below is the output of vfstab
Code:
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes     -
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d1  -       -       swap    -       no      -
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/md/dsk/d2  /dev/md/rdsk/d2 /var    ufs     1       no      -
swap    -       /tmp    tmpfs   -       yes     -
/dev/md/dsk/d6  /dev/md/rdsk/d6 /export ufs     1       yes     logging
#
# application filesystems
/dev/md/dsk/d3  /dev/md/rdsk/d3 /opt/oracle     ufs     2       yes     logging
/dev/md/dsk/d4  /dev/md/rdsk/d4 /db01           ufs     2       yes     logging
/dev/md/dsk/d5  /dev/md/rdsk/d5 /backup1        ufs     2       yes     logging

The Slices mentioned above are part of d0 and d2 and i have run the commands as you said

Code:
bash-2.03# fsck -n /dev/rdsk/c1t0d0s0
** /dev/rdsk/c1t0d0s0 (NO WRITE)
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=391321 (2 should be 0)
CORRECT?  no

INCORRECT BLOCK COUNT I=806459 (2 should be 0)
CORRECT?  no

** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=391321  OWNER=root MODE=100644
SIZE=0 MTIME=May 10 09:50 2017
CLEAR?  no

LINK COUNT FILE I=391324  OWNER=root MODE=100644
SIZE=487 MTIME=May 10 09:50 2017  COUNT 2 SHOULD BE 1
ADJUST?  no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE?  no

75362 files, 4243601 used, 4019771 free (8515 frags, 501407 blocks,  0.1% fragmentation)

Code:
bash-2.03# fsck -n /dev/rdsk/c1t0d0s1
** /dev/rdsk/c1t0d0s1 (NO WRITE)
** Last Mounted on /var
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups

FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX?  no

5942 files, 399666 used, 622069 free (1501 frags, 77571 blocks,  0.1% fragmentation)

But if you check i was getting maintenance on slice 4 not on slice 0 and slice 1?

Thanks,
P

Last edited by DukeNuke2; 05-10-2017 at 07:28 AM..
# 11  
Old 05-10-2017
Ah, you've got volume management in use looking at your vfstab.

Therefore, you should 'fsck' the raw (rdsk) devices in the 'device to fsck' column of vfstab eg,

Code:
# fsck -n /dev/md/rdsk/d2

on any filesystem that refuses to mount because it's flagged as 'dirty'.

Again, use the '-n' switch to examine how much damage there really is. If there are millions of errors then be careful. If errors are few then run again without the '-n' and answer 'y' to each question.

You can run 'fsck' on any/all of the devices in your vfstab 'device to fsck' column.
# 12  
Old 05-10-2017
Hi,

I am struggling to understand here.

Code:
df -k output

/dev/md/dsk/d0       8263373 4243395 3937345    52%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/md/dsk/d2       1021735  399723  560708    42%    /var
swap                 7367512      24 7367488     1%    /var/run
swap                 7367952     464 7367488     1%    /tmp
/dev/md/dsk/d4       105034703 80527538 23456818    78%    /db01
/dev/md/dsk/d5       140052804 95566454 43085822    69%    /backup1
/dev/md/dsk/d6       9736204 4422407 5216435    46%    /export
/dev/md/dsk/d3       35018085 14055926 20611979    41%    /opt/oracle

In above output i am able to mount all the devices and i was getting Needs Maintenance on : d3,d3,d3

When i had a look at metastat output one of the submirror of d3 i.e d13 (c1t0d0s4) is showing as maintenance and rest of the slices c1t0d0 are ok.

I tried to look for C1 controller and failed to get the information about it as i couldnt find the controller in devfsadm or cfgadm or luxadm as said in intial post.

Currently i have detached all the submirrors of c1t0d0 disk from all mirrors and tried to mount and able to mount them after running fsck on the s0 and s1.

But the maintenence slice c1t0d0s4 i am able to mout but getting error when i do the fsck.

Now not sure if we need to replace the disk if so how do we do that when we cant see the controller.

Note: these are legacy systems.

Thanks,
P

Last edited by DukeNuke2; 05-10-2017 at 09:11 AM..
# 13  
Old 05-10-2017
What do you mean by 'maintenance slice'?

Please post the vtoc of c1t0d0s4

When you use volume management (meta) the meta database lives on a (usually) very small configured slice. That is where the OS keeps the information as to what is mirrored to what, what volumes are spanned across multiple spindles and the like. That slice is not a filesystem and is not mounted in the usual way (and is therefore not in vfstab).

So again, what do you mean by maintenance slice? Could it be the meta database slice (very small)?
# 14  
Old 05-10-2017
Hi,

Maintainnence in the sense

Code:
metastat output for d3

d3: Mirror
    Submirror 0: d13
      State: Needs maintenance
    Submirror 1: d23
      State: Okay
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 71109888 blocks

d13: Submirror of d3
    State: Needs maintenance
    Invoke: metareplace d3 c1t0d0s4 <new device>
    Size: 71109888 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c1t0d0s4                   0     No    Maintenance


d23: Submirror of d3
    State: Okay
    Size: 71109888 blocks
    Stripe 0:
        Device              Start Block  Dbase State        Hot Spare
        c1t8d0s4                   0     No    Okay

and prtvtoc of c1t0d0s4 is as below

Code:
* /dev/rdsk/c1t0d0s4 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      2    00          0  16780224  16780223
       1      7    00   16780224   2106432  18886655
       2      5    00          0 143349312 143349311
       3      3    01   18886656  16780224  35666879
       4      0    00   35666880  71109888 106776767
       5      0    00  106776768  19771968 126548735
       6      0    00  126548736  16770048 143318783
       7      0    00  143318784     30528 143349311

meta database slice resides of c1t0d0s7 and i wasn't referring to it.

Thanks,
P
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Unable to get Solaris 11 Zone onto the network

Hello, I followed these instructions to create a Solaris 11 zone: http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html And I am unable to ping anything from the Local Zone except for the IP address of the global zone. My global zone has an IP... (6 Replies)
Discussion started by: unblockable
6 Replies

2. Solaris

Unable to reboot Solaris

Hi, we have a sun sparc solaris 10 machine and recently there was a power failure and one of the server domain was down. So today morning i have powered up the domain and it returned me to ok prompt then i have booted the machine with disk from devalias, the system was up as normal and no error... (0 Replies)
Discussion started by: phanidhar6039
0 Replies

3. Solaris

Unable to add printer in Solaris

HI I am unable to add printer in solaris (architecture is SUN and OS is Solaris 10) as I try to print the file it gives following error Failed to contact service for erp-cljCP2025: not-found Need help Regards (7 Replies)
Discussion started by: smazshah
7 Replies

4. Solaris

Solaris 11 server as Primary Domain Controller

Hi, All of our servers run Solaris (currently 10, but looking to upgrade to 11). In each of our offices we have a server configured as a Primary Domain Controller via Samba to provide naming services to our Windoze users. I would like to continue with that arrangement, but I would also like... (2 Replies)
Discussion started by: wgkorb
2 Replies

5. Solaris

unable to login Solaris 10

I have inherited a solaris 10 server. I went to log into it the other day over the console connection, and after sucessfully entering the password, I was booted back to the login prompt with no errors visible. If I enter an incorect password, the console displays 'incorrect password' and kicks... (8 Replies)
Discussion started by: Sol-nova
8 Replies

6. Solaris

unable to use thumbdrive in Solaris 10

hi friends, i had this problem in a Solaris 10 server when i inserted my thumbdrive, i can't find the device file containing usb. what should i do ? (2 Replies)
Discussion started by: Exposure
2 Replies

7. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

8. Infrastructure Monitoring

unable to shutdown solaris 10

hi folks, i have a snag, when i attempt shutdown of solaris 10 on a sunfire v240 it seems to pause for ages, and goes no further, im busy learning my way around the system so please be patient. /etc(R)-bash-3.00$ init 6 /etc(R)-bash-3.00$ svc.startd: The system is coming down. Please wait.... (7 Replies)
Discussion started by: alienkidmj12
7 Replies

9. Filesystems, Disks and Memory

HD Controller does not Work in Solaris

Hi, I'm attempting to build a raid Z NAS using solaris, but I only have 4 sata ports on my MB, so I bought a Rosewill RC-211 PCIe controller (adds 2 sata II ports). I'm new to solaris, but I understand that to add a new drive, you first run #devfsadm, which puts the files into /dev/dsk. I... (3 Replies)
Discussion started by: ciscocbee
3 Replies

10. Solaris

Unable to uninstall package in Solaris

I am getting the below mentioned error while trying to unistall a package from a 2.8 Solaris box. Please help.. pkgrm: ERROR: unable to determine current run-state Removal of <PDMgr> failed (internal error). No changes were made to the system. (1 Reply)
Discussion started by: chrisanto_2000
1 Replies
Login or Register to Ask a Question