LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-03-2011, 10:24 AM   #1
chetan_linux
Member
 
Registered: Aug 2008
Posts: 61

Rep: Reputation: 1
Question Disk Mirroring


I am confused with the below senario:

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)

Part Tag Flag Cylinders Size Blocks
0 root wm 3258 - 9852 32.00GB (6595/0/0) 67110720
1 swap wu 0 - 3257 15.81GB (3258/0/0) 33153408
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 9853 - 13110 15.81GB (3258/0/0) 33153408
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

partition>

=========================================================================================

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): 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)

Part Tag Flag Cylinders Size Blocks
0 root wm 3258 - 9852 32.00GB (6595/0/0) 67110720
1 swap wu 0 - 3257 15.81GB (3258/0/0) 33153408
2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
3 var wm 9853 - 13110 15.81GB (3258/0/0) 33153408
4 unassigned wm 13111 - 13211 501.84MB (101/0/0) 1027776
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0

partition>
 
Old 06-03-2011, 10:56 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Helps to know how they are configured (disk Suite, ZFS, Veritas, etc)

what does a df -h show?

Last edited by Blinker_Fluid; 06-03-2011 at 10:59 AM.
 
Old 06-03-2011, 11:15 PM   #3
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
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.
 
Old 06-04-2011, 10:20 PM   #4
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally Posted by jlliagre View Post
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.
 
Old 06-05-2011, 01:28 AM   #5
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
It might also be an alternate boot environment created by live-upgrade.
 
Old 06-06-2011, 06:21 AM   #6
chetan_linux
Member
 
Registered: Aug 2008
Posts: 61

Original Poster
Rep: Reputation: 1
this is the output which i got from df -h

df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 32G 29G 2.4G 93% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 16G 1.7M 16G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
32G 29G 2.4G 93% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
32G 29G 2.4G 93% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c1t0d0s3 16G 9.4G 6.0G 62% /var
swap 512M 44M 468M 9% /tmp
swap 16G 72K 16G 1% /var/run
/dev/dsk/c1t1d0s0 32G 28G 3.1G 91% /mnt
 
Old 06-06-2011, 08:06 AM   #7
chetan_linux
Member
 
Registered: Aug 2008
Posts: 61

Original Poster
Rep: Reputation: 1
this is the output which i got from df -h

df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t0d0s0 32G 29G 2.4G 93% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 16G 1.7M 16G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1
32G 29G 2.4G 93% /platform/sun4u-us3/lib/libc_psr.so.1
/platform/sun4u-us3/lib/sparcv9/libc_psr/libc_psr_hwcap1.so.1
32G 29G 2.4G 93% /platform/sun4u-us3/lib/sparcv9/libc_psr.so.1
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c1t0d0s3 16G 9.4G 6.0G 62% /var
swap 512M 44M 468M 9% /tmp
swap 16G 72K 16G 1% /var/run
/dev/dsk/c1t1d0s0 32G 28G 3.1G 91% /mnt
 
Old 06-06-2011, 02:54 PM   #8
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
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".

What model are you doing this on?
 
Old 06-07-2011, 03:28 AM   #9
chetan_linux
Member
 
Registered: Aug 2008
Posts: 61

Original Poster
Rep: Reputation: 1
The model is Sun Fire 280 R

I am getting the output of raidctl -l c1t0d0 --- "Controller device can not be found"
 
Old 06-07-2011, 10:09 AM   #10
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Quote:
Originally Posted by chetan_linux View Post
The model is Sun Fire 280 R

I am getting the output of raidctl -l c1t0d0 --- "Controller device can not be found"
The 280R doesn't have a raid controller, you don't have a mirrored disk.
 
Old 06-07-2011, 11:11 AM   #11
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
But might had one in the past.
@chetan_linux: what says:
Code:
ls -l / /mnt
?
 
Old 06-28-2011, 08:15 AM   #12
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
@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'.
Code:
O/P of 'df -h':
...
/dev/md/dsk/d0         3.9G   3.0G   921M    77%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    23G   1.4M    23G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
fd                       0K     0K     0K     0%    /dev/fd
/dev/md/dsk/d30        3.9G   3.3G   583M    86%    /var
swap                    23G    10M    23G     1%    /tmp
swap                    23G    24K    23G     1%    /var/run
/dev/md/dsk/d40        2.0G   930M  1021M    48%    /export


O/P of 'metastat -acq':
...
d40              m  2.0GB d41 d42
    d41          s  2.0GB c0t0d0s4
    d42          s  2.0GB c0t1d0s4
d30              m  4.0GB d31 d32
    d31          s  4.0GB c0t0d0s3
    d32          s  4.0GB c0t1d0s3
d10              m  2.0GB d11 d12
    d11          s  2.0GB c0t0d0s1
    d12          s  2.0GB c0t1d0s1
d0               m  4.0GB d1 d2
    d1           s  4.0GB c0t0d0s0
    d2           s  4.0GB c0t1d0s0
...
In case of RAID controller,
Code:
bash-2.05$ sudo raidctl -l
RAID            RAID            RAID            Disk
Volume          Status          Disk            Status
Status
------------------------------------------------------
c1t0d0          OK       c1t0d0          OK
                                c1t1d0          OK

Last edited by p_s_shah; 06-28-2011 at 08:17 AM.
 
Old 06-28-2011, 03:29 PM   #13
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 p_s_shah View Post
@jlliagre, How can we identify if the disk was mirrored before, other than mounting secondary disk and checking content ?
Checking the file system content is precisely what I have already suggested a couple of times but without success unfortunately.
 
  


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
HELP !! Disk mirroring question hcclnoodles Solaris / OpenSolaris 1 11-09-2006 12:16 PM
Solaris disk mirroring neil Solaris / OpenSolaris 4 09-25-2006 07:46 AM
Disk Mirroring via Network Drunkalot Linux - General 1 09-13-2005 08:29 PM
Mirroring Hard Disk smurf Linux - General 1 09-13-2001 05:38 AM
Disk Mirroring isaxby Linux - General 3 02-28-2001 10:45 AM

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

All times are GMT -5. The time now is 04:20 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