LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-21-2008, 07:30 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Rep: Reputation: 44
raidctl - how to read output ?


I got this:

Code:
# raidctl -l c0t0d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t0d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD


# raidctl -l c0t2d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t2d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD

What is "Volume" ?
Is that this what we call RAID which contain 2 disks
OR
Is this one of disks from RAID ?

How to understand disk 0.3.0 and 0.2.0. What are they ? How to find out what disks in real they are ? Why both output shows this same disks?


Here is an output of format:

Code:
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
       1. c0t2d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>

Specify disk (enter its number):
How many disks are inside in real - 2 or 4 ?

Last edited by czezz; 03-21-2008 at 07:31 AM.
 
Old 03-22-2008, 05:58 PM   #2
prad77
Member
 
Registered: Mar 2008
Posts: 101

Rep: Reputation: 15
There are only 2 accessible Disks.

The term volume is often used as a synonym for the storage medium itself, but it is possible for a single disk to contain more than one volume or for a volume to span more than one disk.

raidctl -l : List the system's RAID configuration. If controller is specified, list RAID configurations for controller.

Output from the -l lists the following information:
RAID Volume -Displays logical RAID volume name.
RAID Status -Displays RAID status as either RESYNCING (disks are syncing), DEGRADED RAID is operating with reduced functionality), OK (operating optimally), or FAILED (non-functional).
RAID Disk -Displays RAID disk name.
Disk Status- Displays disk status as either OK or FAILED.

RAID 1 uses mirroring to write data to multiple drives. This means that when you write a file, the file is actually written to two disks. If one of the disks fails, you simply replace it and rebuild the mirror.

Fedora Development

Last edited by prad77; 04-17-2008 at 03:23 AM.
 
Old 03-23-2008, 08:24 AM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
Ok Prad77... thank you for remainding what RAID1 is...
Not really this is my issue.

At my own eys I can see 4 disks inside of server. Previous admin told me that hardware mirror is done.

What I see with "format" is 2 disks - I suspect that these are 2 MIRRORS.
I just cant be sure because raidctl show this:
Code:
# raidctl -l c0t0d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t0d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD


# raidctl -l c0t2d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t2d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD
Im not sure how to read above. Correct me please, but what I understand is:

Volume c0t0d0 - is 1st MIRROR that contain 2 phisical disks and format display it as
Code:
0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
Volume c0t2d0 - is 2nd MIRROR that contain another 2 phisical disks and format display it as
Code:
1. c0t2d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
So phisically 4 disks are used... am I right ?

BUT...

If Volume c0t0d0 is 1st MIRROR and it contain 2 phisical disks 0.3.0 and 0.2.0
then why the heck Volume c0t2d0 which is 2nd MIRROR contain exactelly this same disks ???

Im confused

Last edited by czezz; 03-23-2008 at 08:40 AM.
 
Old 03-23-2008, 12:54 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
What returns "raidctl -l" with no other options ?
 
Old 03-23-2008, 07:29 PM   #5
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
Code:
# raidctl -l
Controller: 0
	Volume:c0t0d0
	Volume:c0t2d0
	Disk: 0.2.0
	Disk: 0.2.0
	Disk: 0.2.0
        Disk: 0.2.0
	Disk: 0.2.0
	Disk: 0.2.0
        ...
        Disk: 0.2.0
^C
#
need to b stopped from keyboard.
 
Old 03-24-2008, 03:19 AM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Something definitely broken here. Check if you are up to date with patches.

Personally, I would certainly migrate this mess to ZFS.
 
Old 03-24-2008, 06:42 AM   #7
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
OK... lets just let me understand again this - repeating again:

At my own eys I can see 4 disks inside of server. Previous admin told me that hardware mirror is done.

What I see with "format" is 2 disks - I suspect that these are 2 MIRRORS.
I just cant be sure because raidctl show this:
Code:
# raidctl -l c0t0d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t0d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD


# raidctl -l c0t2d0
Volume                  Size    Stripe  Status   Cache  RAID
        Sub                     Size                    Level
                Disk
----------------------------------------------------------------
c0t2d0                  136.6G  N/A     OPTIMAL  N/A    RAID1
                0.3.0   136.6G          GOOD
                0.2.0   136.6G          GOOD
Im not sure how to read above. Correct me please, but what I understand is:

Volume c0t0d0 - is 1st MIRROR that contain 2 phisical disks and format display it as
Code:
0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
Volume c0t2d0 - is 2nd MIRROR that contain another 2 phisical disks and format display it as
Code:
1. c0t2d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
So phisically 4 disks are used... am I right ?

BUT...

If Volume c0t0d0 is 1st MIRROR and it contain 2 phisical disks 0.3.0 and 0.2.0
then why the heck Volume c0t2d0 which is 2nd MIRROR contain exactelly this same disks ???

Im confused
 
Old 03-24-2008, 07:40 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
There was no need to repeat what you already described.

Your setup looks quite broken and you pointed one of its inconsistencies. Raidctl failing to report anything good is another one. If I were you, I'd backup what needs to, break the mirrors and start again with a correct configuration.
 
Old 03-24-2008, 07:55 AM   #9
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 931

Original Poster
Rep: Reputation: 44
OK, I understand that... and for some reason I dont want to care about that.
What I really need for now is to understand what raidctl displays for me.

Does anybody may take a look at my previous post and verify my conclusions ?

Last edited by czezz; 03-24-2008 at 07:56 AM.
 
Old 03-24-2008, 08:43 AM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by czezz View Post
OK, I understand that... and for some reason I dont want to care about that.
You should unless you neither care about your data.
Quote:
What I really need for now is to understand what raidctl displays for me.
I'm not familiar with LSI controllers but my conclusions are the same as yours, raidctl reports a bogus configuration. The same disks cannot be used by two different volumes.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NRPE: Unable to read output theking2 Linux - Software 4 08-04-2010 04:59 PM
raidctl - unstable ? czezz Solaris / OpenSolaris 8 04-02-2008 02:06 AM
raidctl for replace the mirrord disk 0 UltraSoul Solaris / OpenSolaris 3 06-25-2006 08:47 AM
How do you read gzip output from 'C' program? bjdea1 Programming 2 03-12-2006 05:24 PM
Read the output from a pipe with bash ? fluppi Linux - Software 3 01-13-2004 12:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration