Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# 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):
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.
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 ???
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 ???
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
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.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by czezz
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.