Cannot remove disk added to zpool


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot remove disk added to zpool
# 1  
Old 01-05-2015
Cannot remove disk added to zpool

I added a disk to a zpool using "zpool add diskname"

My intention was mirror a zpool disk that no mirror; that is a zpool with only one disk. I did not issue the right command. Now, the disk has been added successfully but I cannot remove nor detach it as Solaris 11 thinks it has data on it (it does not).

How do I remove this disk out of the zpool and re-add it as a mirror? Thank you for your time.

Error:
Code:
/dev/dsk/c5t5000CCA012B39541d0s0 is part of exported or potentially active ZFS pool vol. Please see zpool(1M).

---------- Post updated at 12:11 PM ---------- Previous update was at 12:08 PM ----------

The disk in question is in DEGRADED status right now but the zpool itself is online. I would like to remove and re-add the one in DEGRADED status.

Code:
pool status vol
  pool: vol
 state: DEGRADED
status: One or more devices has been diagnosed as degraded. An attempt
        was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or 'fmadm repaired', or replace the device
        with 'zpool replace'.
        Run 'zpool status -v' to see device specific details.
  scan: none requested
config:

        NAME                     STATE     READ WRITE CKSUM
        vol                   DEGRADED     0     0     0
          c3t5000CCA012B3E751d0  ONLINE       0     0     0
          c3t5000CCA012B39541d0  DEGRADED     0     0     0

errors: No known data errors

# 2  
Old 01-05-2015
Unfortunately, a disk added to a pool that way cannot be removed.

Your only option is to backup your data, rebuild the pool properly and reimport your data.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 01-05-2015
Much thanks! I think I'll just clean up the errors and add another disk as a hot spare, then.

---------- Post updated at 12:32 PM ---------- Previous update was at 12:21 PM ----------

Hot spare added, customer happy, lesson learned Smilie
# 4  
Old 01-06-2015
Hot spare will not protect your data in case of of the disk in raid 0 zpool fails.

Spares are used in raid protected setup (raid1,raidz etc.), when one disk fails it will rebuild a raid array using hot spare automatically or manually depending on the zpool autoreplace policy.

You will need to go with jlliagre suggestion or add two more disk in zpool as mirrors of two devices currently present or risk loosing data due to one of the disk in zpool failing.
This User Gave Thanks to Peasant For This Post:
# 5  
Old 01-08-2015
Quote:
Originally Posted by Peasant
Hot spare will not protect your data in case of of the disk in raid 0 zpool fails.

Spares are used in raid protected setup (raid1,raidz etc.), when one disk fails it will rebuild a raid array using hot spare automatically or manually depending on the zpool autoreplace policy.

You will need to go with jlliagre suggestion or add two more disk in zpool as mirrors of two devices currently present or risk loosing data due to one of the disk in zpool failing.
Agreed and thanks to you both. Next week, I'll be adding one more disk and adding redundancy. Glad this is a test box Smilie
# 6  
Old 01-28-2015
Thought I would follow up as a way of saying thank you.

Code:
  pool: nbuvol
 state: ONLINE
  scan: none requested
config:

        NAME                       STATE     READ WRITE CKSUM
        nbuvol                     ONLINE       0     0     0
          c3t5000CCA012B3E751d0    ONLINE       0     0     0
          c3t5000CCA012B39541d0    ONLINE       0     0     0
          mirror-2                 ONLINE       0     0     0
            c5t5000CCA012B4325Dd0  ONLINE       0     0     0
            c5t5000CCA00AC56225d0  ONLINE       0     0     0


Last edited by DukeNuke2; 01-28-2015 at 07:17 PM..
# 7  
Old 02-01-2015
Your setup still does not offer redundancy. If c3t5000CCA012B3E751d0 or c3t5000CCA012B39541d0 fails, the whole pool will become unavailable.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to clear a removed single-disk pool from being listed by zpool import?

On an OmniOS server, I removed a single-disk pool I was using for testing. Now, when I run zpool import it will show it as FAULTED, since that single disk not available anymore. # zpool import pool: fido id: 7452075738474086658 state: FAULTED status: The pool was last... (11 Replies)
Discussion started by: priyadarshan
11 Replies

2. Solaris

Replace zpool with another disk

issue, I had a zpool which was full pool_temp1 199G 197G 1.56G 99% ONLINE - pool_temp2 199G 196G 3.09G 98% ONLINE - as you can see, full so I replaced with a larger disk. zpool replace pool_temp1 c3t600144F0FF8BA036000058CC1DB80008d0s0... (2 Replies)
Discussion started by: rrodgers
2 Replies

3. Solaris

Exporting zpool sitting on different disk partition

Hello, I need some help in recovering ZFS pool. Here is scenerio. There are two disks - c0t0d0 - This is good disk. I cloned it from other server and boot server from this disk. c0t1d0 - This is original disk of this server, having errors. I am able to mount it on /mnt. So that I can copy... (1 Reply)
Discussion started by: solaris_1977
1 Replies

4. AIX

LPAR cannot added disk

Dear All, I created a new partition through "Integrated Virtualization Manager" but there have an error when I added a new disk to the partition. The disk already created without any issue, Below error is to add the disk to the partition An error occured while modifying the assignments... (5 Replies)
Discussion started by: lckdanny
5 Replies

5. Solaris

Add disk to zpool

Hi, Quick question. I have a data zpool that consists of 1 disk. pool: data state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM data ONLINE 0 0 0 c0t50002AC0014B06BEd0 ONLINE... (2 Replies)
Discussion started by: general_lee
2 Replies

6. Solaris

Bad exchange descriptor : not able to remove files under zpool

Hi , One of my zone went down and when i booted it up i could see the pool in degraded state with some check sum errors . we have brought the pool online after scrubbing. But few files are showing this error Bad exchange descriptor Please let me know how to remove these files (2 Replies)
Discussion started by: chidori
2 Replies

7. AIX

Remove the disk online

Hi I have one of the disk missing in my NIMVG. My doubt is can I remove this hdisk2 online ? few of the file systems seems to be spread over 7 PV's. that's why i'm worried. Can someone suggest if I can replace this disk online. Also how to check if there is some data present in hdisk2 alone... (2 Replies)
Discussion started by: newtoaixos
2 Replies

8. Red Hat

Partitioning newly added disk to Redhat

Hi Everyone, I have added new Virtual disk to OS. The main point is I need to bring this whole Disk into LVM control, is it necessary to partition the disk using fdisk command and assign partition type as '8e', or can I directly add that disk into LVM, by running pvcreate command with out... (2 Replies)
Discussion started by: bobby320
2 Replies

9. Solaris

Can't remove a LUN from a Zpool!

I am not seeing anyway to remove a LUN from a Zpool... Am I missing something? or do i have to destroy the zpool and recreate it? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

10. Solaris

Remove the exported zpool

I had a pool which was exported and due to some issues on my SAN i was never able to import it again. Can anyone tell me how can i destroy the exported pool to free up the LUN. I tried to create a new pool on the same pool but it gives me following error # zpool create emcpool4 emcpower0c... (0 Replies)
Discussion started by: fugitive
0 Replies
Login or Register to Ask a Question