new - How i can implement Mirroring


 
Thread Tools Search this Thread
Operating Systems Solaris new - How i can implement Mirroring
# 8  
Old 12-15-2008
Assuming these disk are wholly dedicated to the mirror:

Code:
zpool create data mirror c0d0 c0d1

That's it. You have now a /data filesystem whose content are mirrored on d0 and d1. ZFS is dead simple when compared to alternate RAID solutions.

By the way, mirroring means each disk is a backup of the other one. There is no specific data disk and backup disk like you describe.
# 9  
Old 12-15-2008
it should be strip and mirroring. What i trying to do is create a logical volume, it is contain 2 disk. whatever i did in disk A it will mirror to disk B. Disk B it is locate in slice 2 of logical volume and other slice is used by disk A.
# 10  
Old 12-15-2008
Sorry I couldn't understand the above line.

As per my understanding all you need to do is create a metadb on both the disk. Take any of the unused slice , allocate space to that and create a 3 copy of meta db on the slice , some think like this

Quote:
#metadb -f -a -n 3 c0t0d0s7 c0t1d0s7
e.g. I am taking slice 7 for meta database

check the same with

Quote:
#metadb
For / ( root)

Quote:
# metainit -f d1 1 1 c0t0d0s0
# metainit d2 1 1 c0t1d0s0
# metainit d0 -m d1
# metaroot d0
# metattach d0 d2

Likewise you can create volume for rest of the partition

Once done change the /etc/vfstab entry to point the partition towards the different volumes

Do the required entry into the /etc/system for rootdev

Also you need set the rootdisk/rootmirror

Reboot the system

( please verify the above steps I am just giving you kind of direction, I mean how you can plan the entire activity)
# 11  
Old 12-15-2008
thank for you kindly info. I should finish installation solaris and partition it into 8 slice (0-7) Then afterward run above commands in single user mode?

What's happen to my disk volume, it is show c0d0 and c0d1. Without 't' then i still create a logical volume? (i am running x86 platform in virtualbox)
# 12  
Old 12-16-2008
Could anyone make sure for me:

database replicates are always occupy a whole slice? (cannot make a filesystem on that slice ?)

always need a database slice for each mirror hard disk?
# 13  
Old 12-16-2008
Webster5u: there is no reason to be concerned about the missing target on your disks. It is just they are (virtual) IDE disks, not SCSI/SATA ones.

What I was suggesting (adding two new disks and implement ZFS on them) is a very simple and straightforward solution. I'm disappointed to see you seem to prefer the complex way (SVM).
# 14  
Old 12-16-2008
Quote:
Originally Posted by tien86
Could anyone make sure for me:

database replicates are always occupy a whole slice? (cannot make a filesystem on that slice ?)

always need a database slice for each mirror hard disk?
i haven't setup the metadb yet. I think my installed solaris is not configure well, it is hostname disappear, cannot run "raidctl" cmd and etc. it is not a good start point for me.

Quote:
Originally Posted by jlliagre
Webster5u: there is no reason to be concerned about the missing target on your disks. It is just they are (virtual) IDE disks, not SCSI/SATA ones.

What I was suggesting (adding two new disks and implement ZFS on them) is a very simple and straightforward solution. I'm disappointed to see you seem to prefer the complex way (SVM).
jlliagre, thank for your comment. it is really thank, i am currently assign into a project. i have to understand exactly how system administrator done to our company server. ZFS will be my alternative choice.

whatever, thank all of your.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to implement scenario?

hi, i am having three files which is having following data file1: field1 field2 field3 1 A B 2 C D 3 E F file2: 4 G H 1 I J 5 K L file3: 4 M N (3 Replies)
Discussion started by: angel12345
3 Replies

2. Shell Programming and Scripting

How to implement this?

hi i have a file like 1,"A","B" 2,"C","D" 1,"E","F" 3,"G","H" in output i need like 3,"G","H" 1,"E","F" 2,"C","D" 1,"A","B" (12 Replies)
Discussion started by: angel12345
12 Replies

3. Shell Programming and Scripting

Trying to implement 'more' command

Hi all, i'm quite new in the UNIX world. So maybe i'm going to ask simple questions but they are unsolvable for me... I'm trying to implement the 'more' function or kinda of that, for improving my knowledges. But I encountered some problems that i hope u will help me to solve. The code i... (0 Replies)
Discussion started by: Cellofan
0 Replies

4. Shell Programming and Scripting

Trying to implement case

Hi All, My requirement is if the record is starting with 0, then do some processing. if starting with 1, some processing else (not with 0 or 1 ) then do some other processing. i tried the following case "$test" in /^0/) echo "starting with zero ;; /^1/) echo " with one" ;; *) echo... (3 Replies)
Discussion started by: ssunda6
3 Replies

5. Shell Programming and Scripting

Trying to implement case

Hi All, My requirement is if the record is starting with 0, then do some processing. if starting with 1, some processing else (not with 0 or 1 ) then do some other processing. i tried the following case "$test" in /^0/) echo "starting with zero ;; /^1/) echo " with one" ;; *) echo... (2 Replies)
Discussion started by: ssunda6
2 Replies

6. Shell Programming and Scripting

how to implement this

Hi all, could any of you please help me on my problem.. we are doing FTP (one report out put) from one server to another server through unix shell script program. Due to the network issues, some times FTP process is hanging. So we planned to modify the existing program with the following... (2 Replies)
Discussion started by: kishore_jasthi
2 Replies

7. AIX

how to implement timer

anyone can help me how to implement the timer on AIX? I tried with 'setitimer' and its related functions, but it does not work correctly,the program exited each time. thanks (2 Replies)
Discussion started by: Frank2004
2 Replies

8. Programming

how does va_arg implement ?

1 . How does va_arg implemented by system? (2 Replies)
Discussion started by: chenhao_no1
2 Replies

9. UNIX for Advanced & Expert Users

how can i implement rlogin

how can i use a rlogin with out entered a password, someone tell me about configure the next files /.rhosts /etc/hosts.equiv and /etc/hosts but i not sure about that, or there are not enough could you tell me how to do that? (3 Replies)
Discussion started by: jav_v
3 Replies

10. UNIX for Dummies Questions & Answers

how to implement diff

Hi Does someone know how Unix or Linux implement 'diff' command ? Any good reference or the algorithm will be better ? Thanks (3 Replies)
Discussion started by: harrylong
3 Replies
Login or Register to Ask a Question