ZFS mirrors question

Let's say I have one disk, c0t0d0. I have three zpools on this disk, including the root pool (rpool). If I add a mirror to the root pool (say disk c0t1d0), will only the root pool get mirrored? The other two pools are on the same disk - do they have to be specified as being mirrored separately, or does the entire disk get mirrored by extension, regardless of the pool? If the three pools are all on the same disk, but on different slices, do they have to be mirrored separately then as well?

No, you'll have to mirror the other pools separately.

Similar Messages

  • ZFS mirror on root, one of the two devices appears offline

    Hello everybody,
    I'm a new Archlinux user. I've managed to install it on a pool (called RAID1) composed of two LUKS encrypted devices (/dev/mapper/HD3 and /dev/mapper/HD10).
    This is the pool:
    # zpool status
    pool: RAID1
    state: ONLINE
    scan: resilvered 11.4M in 0h0m with 0 errors on Mon Jan 13 07:41:13 2014
    config:
    NAME STATE READ WRITE CKSUM
    RAID1 ONLINE 0 0 0
    mirror-0 ONLINE 0 0 0
    HD10 ONLINE 0 0 0
    HD3 ONLINE 0 0 0
    errors: No known data errors
    I wrote a custom hook, run before the zfs hook, which opens a small (5MB) LUKS image (/etc/keys.img) asking for its key, and mounts it under /keys. Then, for each device in /etc/earlycrypttab, it opens the device taking the respective keyfile from /keys.
    Here is the code, if it could help debug the problem. Feel free to use it, if it might be useful to you. Sorry if it's not too good.
    http://pastebin.com/PAbaTUcq   /etc/earlycrypttab
    http://pastebin.com/JULEdHx9   /usr/lib/initcpio/hooks/customcrypt
    http://pastebin.com/Ew44anvY   /usr/lib/initcpio/install/customcrypt
    Now, the problem is this: for some reason, after booting, HD3 is shown as offline and the pool is shown as DEGRADED. /dev/mapper/HD3 is open and working, though. Running a simple
    # zpool online RAID1 HD3
    fixes the pool.
    I know for sure that after the customcrypt hook is run, that LUKS device is open. I've managed to get into ash just after the customcrypt hook, and the LUKS device is open, but
    # zpool list
    keeps saying that HD3 is offline.
    Anyway, if (still inside ash, after the customcrypt hook and before the zfs hook) I run
    # zpool export RAID1
    # zpool import
    zpool finds both devices as online.
    I first thought it could be a problem of the /etc/zfs/zpool.cache file. I tried recreating it and recreating the initram (with mkinitcpio -p linux), but still no luck.
    Do you have any idea about what could be the problem?
    Thank you very much for your time!

    @stefa : Did you get any resolution on this?  I ran into the exact same problem two days ago and I can't seem to find the "right" fix.  I'm using a zfs mirror on top of luks and figured it was due to the luks device not being online but after reading your post... I'm not so sure.
    Post boot I'm able to offline the missing device and online it without issue.  My only concern is why isn't this coming up with both disks at the time of import and will it boot if the offline drive is the only one of the two active at the time of boot?  I setup the mirror so I could have a drive fail and still boot...
    @esko: I've got zfs set to auto-mount and the mount points are all working properly.

  • Jumpstart/ZFS - mirror any any uses two slices on the same disk

    Hi all,
    I am setting up a set of custom Jumpstart profiles for a Solaris 10 10/09 SPARC install server. I am attempting to set up ZFS mirrored root filesystems using part of the two root disks (reserving the remainder for a second ZFS pool for application data). To achieve this, I have been using "mirror any any" as the device list for the pool directive in the Jumpstart profile
    On my test system with 73GB disks I've had no problems, but testing against a new server with 146GB disks the installer seems to be putting both halves of the mirror onto the same disk - I presume because the root pool size is less than half the size of the disk, and so it can.
    Is there any way to specify that the root pool should be mirrored across any two distinct disks, or any other advice on how to avoid this happening? I know I can specify exact slice names (i.e. "mirror c1t0d0s0 c1t1d0s0"), but some of the servers will have FC cards in, and so I can't guarantee what controller number the internal disks will be on.
    As an example, here is a line from the rules file, and the associated profile (the start/finish scripts are currently only displaying information).
    rules
    ====
    arch sparc && memsize 4000-4200 begin_settings.sh sparc_4G_zfs lmu_setup.sh
    sparc_4G_zfs profile
    ===============
    install_type initial_install
    system_type standalone
    cluster SUNWCXall
    pool rpool 30g 4097 1g mirror any any
    Thanks,
    Dave Taylor
    Senior Infrastructure Consultant
    Leeds Metropolitan University

    Hello Dave,
    I would expect that the profile you supplied will result in two slices off the same 146G disk to be selected for both sides of the mirror. If the numbers you had used for poolsize/swapsize/dumpsize had been smaller, you would would have had the same behavior on the 73G disk as well.
    In short, when you say 'any', you are basically saying "I don't care where it goes, give me the first slice/device that works". So, with the 'any' in the first position, kernel probe order is used, so in this case the first disk is selected, and the zpool is created. With 'any' in the second position, again the first disk is found, with available space, the mirror slice is created.
    If you want the two parts of the mirror to be on different devices, either alter the numbers for poolsize/swapsize/dumpsize in your profile so you cannot get both on the same disk, or don't use 'any' for the mirror vdev.
    Again, if you use 'any', you are saying "I don't care". If you do care, don't use 'any'.
    Channing

  • Mirroring Question

    I'm trying to mirror some iMac G5's (20" 2.0 GHz). I understand I need a mini-vga to vga adapter. I will also need a monitor. My question is what is the highest resolution I can get with this video output? Some are saying that vga has a maximum of 1024x768. Others say it depends on how high the monitor can go.
    So is it possible to achieve a 1680x1050 on both displays at the same time?

    "So is it possible to achieve a 1680x1050 on both displays at the same time? "
    It should, as long as the other display supports it. Apple says that it will try to match resolution to the external display and may have to letterbox it.
    in theory, the external display will show exactly what the built-in one does.

  • Zfs newbie question

    Hello
    I have a fresh Solaris 10/6 install. My disk have 20Gb but I used only
    10GB for the base solaris installation and home directory.
    I have 10GB free without any partition.
    I would like to use my free space to store my zones using zfs filesystem.
    In example:
    /zones
    /zone/zona1
    /zone/zone2
    How I can create "/zones" filesystem ?
    zpool create zones ?????
    ?????: What I must write ?
    This is my filesystem setup now (solaris default):
    df -h
    Sistema de archivos tama��� usados aprovechar capacidad Montado en
    /dev/dsk/c0d0s0 4,7G 3,1G 1,5G 67% /
    /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 815M 716K 815M 1% /etc/svc/volatile
    objfs 0K 0K 0K 0% /system/object
    /usr/lib/libc/libc_hwcap1.so.1
    4,7G 3,1G 1,5G 67% /lib/libc.so.1
    fd 0K 0K 0K 0% /dev/fd
    swap 815M 8K 815M 1% /tmp
    swap 815M 28K 815M 1% /var/run
    /dev/dsk/c0d0s7 3,5G 3,8M 3,5G 1% /export/home
    Thanks in advance.
    roberto pereyra

    At least make a token attempt to read the documentation
    http://docs.sun.com/app/docs/doc/819-5461
    Then if you have a specific question someone will more likely to answer you.
    Otherwise it sounds like your saying, "I'm too lazy to read any documentation. Can someone tell me all about it".
    BTW I will point out that at the moment if you put your zones on a zfs filesystem, it means you will be unable to install new solaris upgrades. You can still patch, but not upgrade to a new release. They may add that functionality at some stage. But for the moment, its not there.

  • ZFS mirroring

    Hello,
    I just build a Solaris 10 server on an x86 box. I forgot to mirror the two disks when I install the OS. Can I get some help with this?
    I have this
    # zpool list
    rpool 278G 5.77G 272G 2% ONLINE -
    # zpool status
    pool: online
    state: ONLINE
    scan: none requested
    config:
    rpool ONLINE
    c0t0d0s0 ONLINE
    Anyway I want to add a 2nd disk and mirror it. The other disk is c0t1d0s0.
    The rpool a zfs root.
    when I try to add the disk it gives me the error 'cannot open '/dev/dsk/c0t1d0s0' : I/O error'
    Can someone tell me what I'm doing wrong. I'm not to knowledgeable on zfs.
    Thanks
    Edited by: CyberNinja on Dec 21, 2011 10:06 AM
    Edited by: CyberNinja on Dec 21, 2011 10:10 AM

    "I just build a Solaris 10 server on an x86 box. I forgot to mirror the two disks when I install the OS. Can I get some help with this?"
    man installboot:
    The installboot utility is a SPARC only program. It is not
    supported on the x86 architecture. x86 users should use
    installgrub(1M) instead.
    --ron                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Vram failure and display mirroring question

    Sorry if this has been asked before...
    I have an older imac g5 ambient light sensor and have had a vram failure for the past 6 or 7 months. Recently the display has gotten to the point where it's impossible to read or see anything on it.
    My question is, will mirroring show the same distorted video on an external display?
    Thanks.

    Can you explain this "vram failure" in more detail?
    Have you tried using these two procedures?
    Reset PRAM
    http://support.apple.com/kb/HT1379
    and reset SMU
    http://support.apple.com/kb/HT1767
    Whether the external display shows the same issue or not depends on the cause. If the cause is at the graphics hardware, it will probably be the same on the external display. If the cause is LCD (or the connection between the LCD and graphics hardware), then the external display should work OK.

  • SGE200P mirror question

    I am trying to mirror two ports on a SGE2000P switch.  I have not set up any vlans but I keep getting an error that states Unknown value Port 4/g2 belongs to a vlan.  My question is how do I get this error message when I have no vlans setup?  Thank you for any help you can give me.

    Hi,
    What firmware are you running? If you are running version 1 then you will need to upgrade to version 3. By default the SGE2000P model comes with 2 vlans and all ports are trunk. When you upgrade the firmware PAY CLOSE ATTENTION TO THE FIRMWARE INSTRUCTION. Once you upgrade firmware then retry to your task. Below is some steps how to preform port mirroring.
    Step 1:
    Access the Web based  set-up page of the SGE2000 or SGE2000P.
    Step 2:
    Click  Admin > Diagnostics > Port  Mirroring. The Configuring Port Mirroring Page  opens:
    Configuring Port Mirroring Page
    The Configuring Port Mirroring Page contains the following  fields:
      Source Port - Defines the port from which traffic is  mirrored.
      Destination Port - Defines the port to which traffic is  mirrored.
      Type - Indicates the port mode configuration for port  mirroring. The possible field values are:
    - RxOnly - Defines the port  mirroring on receiving ports. This is the default value.
    - TxOnly - Defines  the port mirroring on transmitting ports.
    - Tx and Rx- Defines the port  mirroring on both receiving and transmitting ports.
      Status - Indicates if the port is currently monitored.  The possible field values are:
    - Active - Indicates the port is currently  monitored.
    - notReady - Indicates the port is not currently  monitored.
    Step 3:
    Click the  Add button. The Add Port Mirroring Page opens:
    Add Port Mirroring Page
    The Add Port Mirroring Page contains the following fields:
    Source Port - Defines the port to which traffic is  mirrored.
    Type - Indicates the port mode configuration for port  mirroring. The possible field values are:
    - RxOnly - Defines the port  mirroring on receiving ports. This is the default value.
    - TxOnly - Defines  the port mirroring on transmitting ports.
    - Tx and Rx - Defines the port  mirroring on both receiving and transmitting ports.
    Step 4:
    Define the relevant  fields.
    Step 5:
    Click  Apply. Port mirroring is added, and the device is updated.
    Hope this helps!
    Jarocca Harper

  • Airplay & Mirroring Question

    I just set up my Apple TV.  Home Sharing is working fine (from my base PC where iTunes is located).  How do I do 'airplay' and 'mirroring' from my iPad, iPod Touch, and iPhone 4S?  And - can I use Airplay and Mirroring on a 1st generation iPad (running ios 5.1.1?
    Thanks!

    .....How do I do 'airplay' and 'mirroring' from my iPad, iPod Touch, and iPhone 4S?.....
    Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    When displaying the content you wish to mirror on the iPad 2, iPad 3 or iPhone 4s, double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices.
    .......can I use Airplay and Mirroring on a 1st generation iPad (running ios 5.1.1?
    Basic AirPlay yes, Mirroring No.

  • Video Storage / Mirroring Question & Advice

    Good Day
    I am assembling about 5 years worth of video from tape, card and disk and putting it all onto a Drobo Pro w/ 8x2TB drives. The drive should be big enough. And my plan is to just get another Drobo if need be and daisy chain them together. I am not editing off of them (Drobo ***** for that!), just need a very reliable backup / storage solution.
    However, due to my paranoia, I want a mirror of the drive(s) just in case there is a fire at the office, flood, theft etc. Just can't have all this footage existing in 1 location.
    We are a small operation so things like Xserve seem a little much to me. Any ideas on options? Is it as simple as we have to get a second Drobo and make a copy of the main one and keep it off site? Is tape backup a good option? Online would be great, but 20TB+?
    Need advice! Thanks in advance

    You will need Screen Spanning Doctor(SSD) with your iMac to get 2 different screens. Of course, if you are a UNIX geek and know how, you can turn off mirroring in the terminal. SSD is a lot simpler for us non-geeks. You should be able to find it on VersionTracker.com or MacUpdate.com
    With an expanded screen, you might still be unable to use your 1920x1080 or whatever because of VRAM limitations.. I was able to run the 14" and 19" in thousands of colors, but not millions from an iBookG4. I can run the 19" at 1280x1024 and the 15" MacBookPro at 1440x900 in millions, but the MPB can handle a 30" at millions. With the iBookG4, I had to have SSD to get an extended screen. I am pretty sure the iMacG5 required that, too.
    Hope this helps.

  • Zfs snapshot question

    Hi guys,
    I will really appreciate it if someone can answer this for me.
    I do understand that you can use snapshots to back up file systems. But they also use up pool space when their file systems grow.
    So, is it necessary to create zfs snapshots even when you already have a full system back up in place?
    Thank you very much for your kind explanation.
    Arrey

    985798 wrote:
    So, is it necessary to create zfs snapshots even when you already have a full system back up in place? Nobody will force you to create or keep snapshots and if you are happy with taking "classic" backups then there may be no need for additional snapshots. And since snapshots will also take up space in your pool, it is usually a good idea to keep them only for a short period and delete them periodically. I like to use snapshots for two purposes:
    - create a snapshot, then write that snaptshot to take and destroy it afterwards. that way, you can guarantee that this tape backup is consistent
    - create snapshot at regular intervals and keep them around for a few days so that if I need to restore a file from just a day ago I don't have to go back to tapes but can rather fetch it from the snapshot. So that would be in addition to regular backups
    cheers
    bjoern

  • ZFS Configuration question

    Hello,
    I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
    I would like to allocate the 120GB space left to ZFS. I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
    One of the document found talk about using format / fdisk and define that partition as DOS or anything else). I tried different things around that, but a piece of the puzzle is missing.
    Any help will be appreciated.
    Michel

    I have no room for the ZFS partition on a slice. I
    have a lot of free space unallocated to any partition
    and this is where I would like the ZFS partition.You would need to allocate it to one yourself.
    I
    saw a lot of confusion between slices and
    partitions.Yes. In many cases they are used interchangably.
    However, I often try to use the term "slice" for the solaris label subdivision, leaving "partition" to refer to x86 architecture-specific divisions.
    Solaris on x86 can only (easily) use a single x86 partition of type "Solaris". You can't use another partition (whether with ZFS or not).
    In my case, I have a 20GB partition where I have 10
    slices created when I installed Solaris on UFS.
    The 120GB left is not allocated to any slice.If it's visible to the Solaris label, then allocate it to a slice.
    Darren

  • ZFS Dedup question

    Hello All,
    I have been playing around with ZFS dedup in Open Solaris.
    I would like to know how does ZFS store the dedup table. I know it is usually in memory, but it must leave a copy on disk. How is this table protected? Are their multiple copies like Uber block?
    Thanks
    --Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hello All,
    I have been playing around with ZFS dedup in Open Solaris.
    I would like to know how does ZFS store the dedup table. I know it is usually in memory, but it must leave a copy on disk. How is this table protected? Are their multiple copies like Uber block?
    Thanks
    --Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • ZFS Configuration Question - Also posted in Solaris x86

    Hello,
    I have 2 x 140GB (hw Raid-0 + spare). About 20GB is allocated to Solaris on UFS (standard installation and partitions/slices).
    I would like to allocate the 120GB left on the disk drive to ZFS. That space is not unallocated to any file system for now.
    I found a lot of documentation of how to create a ZFS Pool on an empty disk drive. The documentation is less clear on how to do it on a drive already use by another FS.
    Any help will be appreciated.
    Michel

    Darren,
    I just setup another Solaris x86 server tonight to play with. That future production server is in it's own vlan wtih no Internet access for now.
    The test server has the same configuration, but less disk space.
    Here is the output of prtvtoc
    # prtvtoc /dev/dsk/c0t0d0s0
    * /dev/dsk/c0t0d0s0 partition map
    * Dimensions:
    * 512 bytes/sector
    * 63 sectors/track
    * 255 tracks/cylinder
    * 16065 sectors/cylinder
    * 2350 cylinders
    * 2348 accessible cylinders
    * Flags:
    * 1: unmountable
    * 10: read-only
    * First Sector Last
    * Partition Tag Flags Sector Count Sector Mount Directory
    0 2 00 10522575 27198045 37720619 /
    1 3 01 16065 8401995 8418059
    2 5 00 0 37720620 37720619
    7 8 00 8418060 2104515 10522574 /export/home
    8 1 01 0 16065 16064
    Output of format
    selecting c0t0d0
    [disk formatted]
    Warning: Current Disk has mounted partitions.
    /dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
    Total disk size is 8920 cylinders
    Cylinder size is 16065 (512 byte) blocks
    Cylinders
    Partition Status Type Start End Length %
    ====== ====== ============ ===== === ====== ===
    1 Active Solaris2 1 2350 2350 26
    As you can see, the 1st partition is used at 26%. With fdisk, I can create a 2nd partition. My problem is to get that 2nd partiition availlable to Solaris and create a zpool in that unused space..
    Michel

  • Software Sata Mirror Question

    I have two 750 GB drives that are mirrored on my old Dual G5. If I pull one of the drives, will it boot from the one that is left? Both drives are working fine, I just don't need raid on it anymore.

    Hi-
    The simple answer is "Maybe".
    There is related discussion here:
    http://discussions.apple.com/thread.jspa?threadID=2346524&tstart=120
    How to example:
    http://ask.metafilter.com/52217/Breaking-apart-a-RAID-1

Maybe you are looking for