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.
In a server there are two disk c1t0d0 and c1t1d0. I want to know if both are same mean to say that whether one is mirror of other one or not. While trying to check both the disk by format command it shows the same file system, name, format, space. How to know whether a server has mirror disk or not.
Please find the below details for reference:
format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <FUJITSU-MAP3735FSUN72G-0601 cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0104a37a1,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100000c50013328,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c1t0d0s3 is currently mounted on /var. Please see umount(1M).
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <FUJITSU-MAP3735FSUN72G-0601 cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0104a37a1,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100000c50013328,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t1d0s0 is currently mounted on /mnt. Please see umount(1M).
partition> p
Current partition table (original):
Total disk cylinders available: 14087 + 2 (reserved cylinders)
Your disks might have been mirrors in the past but they aren't any more. Have a look at /mnt contents to see if it looks like a root file system.
I'm thinking this also. The only reason I could think of having the second disk mounted and thinking there was a mirror is if he has a UFS copy script that does it all through a cron job or something.
You're not mirrored. Unless you have a server that supports a hardware raid or have raidctl going on. If raidctl is used you should be able to see it doing a "raidctl -l c1t0d0".
@jlliagre, How can we identify if the disk was mirrored before, other than mounting secondary disk and checking content ?
@chetan_linux, for your future reference:
If the disk is mirrored using Solaris Disksuite, it will display something like below in 'df -h' and 'metastat -acq'.
bash-2.05$ sudo raidctl -l
RAID RAID RAID Disk
Volume Status Disk Status
Status
------------------------------------------------------
c1t0d0 OK c1t0d0 OK
c1t1d0 OK
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.