Do I need a pool before I can mirror my disks?


 
Thread Tools Search this Thread
Operating Systems Solaris Do I need a pool before I can mirror my disks?
# 1  
Old 09-18-2011
Do I need a pool before I can mirror my disks?

Hi!

I would also like to know if I need first to create a pool before I can mirror my disks inside that pool.

My first disk is c7t0d0s0 and my second disk is c7t2d0s0 as seen in the figure below.

I would create a pool named rpool1 for this 2 disks.
Code:
# zpool create rpool1 c7t0d0p0 c7t2d0p0

Now, I have 2 pools in my system namely: rpool and rpool1.

If I have a file in rpool, how can I mirror that file in rpool1?

Thanks!
Do I need a pool before I can mirror my disks?-diskpng
# 2  
Old 09-18-2011
That's the other way around. Mirrors exist inside pools, not between them. Should you want to mirror the root pool, add a mirror disk to it.
Something like:
Code:
zpool attach rpool c0t0d0s0 c7t0d0s0

If you want a mirrored pool using your two new disks, you need the use mirror keyword when creating it otherwise that would be a concatenation. eg:
Code:
zpool create pool1 mirror c7t0d0 c7t2d0

This User Gave Thanks to jlliagre For This Post:
# 3  
Old 09-18-2011
Does this image shows that I had mirrored disk c7t0d0s0 to c7t2d0s0?

I used
Code:
# zpool attach -f c7t0d0s0 c7t2d0s0

Is that right?
# 4  
Old 09-18-2011
This is the image. I forgot to attach it on the previous post. Sorry.
Do I need a pool before I can mirror my disks?-diskjpg
# 5  
Old 09-18-2011
Yes, you have mirrored both disks.
This User Gave Thanks to bartus11 For This Post:
# 6  
Old 09-18-2011
Thank you bartus11.

I did that for the purpose of mirroring my boot disk.
Did you mean, I have mirrored c7t0d0s0 to c7t2d0p0?
Am I right?

In that case, did I also mirrored the filesystem where I saved some of my files such as a plain text file or is it not?
I found over the net some commands for mirroring a filesystem which uses # metainit and # metattach command.

And now I am confused if mirroring in Solaris has their own different functions.

Last edited by CarlosP; 09-18-2011 at 07:15 AM..
# 7  
Old 09-18-2011
If rpool is the only zpool on your system, then all the local files are mirrored as well. As for the meta* commands, they are used for administering old Solaris Volume Manager technology. If you are using ZFS then you can ignore those commands.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

How to detach root mirror pool?

I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool bash-3.2# zpool status pool: rpool state: ONLINE... (5 Replies)
Discussion started by: hb00
5 Replies

2. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

3. Solaris

not able to use pool

i have this pool1 on my sun4u sparc machine bash-3.00# zpool get all pool1 NAME PROPERTY VALUE SOURCE pool1 size 292G - pool1 used 76.5K - pool1 available 292G - pool1 capacity 0% -... (1 Reply)
Discussion started by: Sojourner
1 Replies

4. Solaris

ZFS - list of disks used in a pool

Hi guys, We had created a pool as follows: zpool create filing_pool raidz c1t2d0 c1t3d0 ........ Due to some requirement, we need to destroy the pool and re-create another one. We wish to know now which disks have been included in the filing_pool, how do we list the disks used to create... (2 Replies)
Discussion started by: frum
2 Replies

5. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

6. Infrastructure Monitoring

zfs - migrate from pool to pool

Here are the details. cnjr-opennms>root$ zfs list NAME USED AVAIL REFER MOUNTPOINT openpool 20.6G 46.3G 35.5K /openpool openpool/ROOT 15.4G 46.3G 18K legacy openpool/ROOT/rds 15.4G 46.3G 15.3G / openpool/ROOT/rds/var 102M ... (3 Replies)
Discussion started by: pupp
3 Replies

7. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

8. Solaris

Server - 2 disks - How to mirror

I hope I am posting in the correct forum. I have a server - which I am installing solaris 9 on. The server currently has 2 disks. I wish to run solaris 9 on one, and use the other as a mirror for the first one. ie. If the first one should ever fail, then I can swap to the mirror and just... (18 Replies)
Discussion started by: frustrated1
18 Replies

9. UNIX for Advanced & Expert Users

sync mirror disks

Does anyone know how to force these rogue logical volumes to mirror to there respective disks? DISK:Logical Volumes 03:cw_p05,cw_p01_01,cw_p01_02,lv00 09:cw_p05,cw_p01_01,cw_p01_02 04:cw_p01_phyldbs,cw_p01_03,cw_op01_01,cw_od01 10:cw_p01_phyldbs,cw_p01_03,cw_op01_01 (1 Reply)
Discussion started by: Optimus_P
1 Replies
Login or Register to Ask a Question