How to destroy corrupt zpool without importing it?


 
Thread Tools Search this Thread
Operating Systems Solaris How to destroy corrupt zpool without importing it?
# 1  
Old 09-20-2017
How to destroy corrupt zpool without importing it?

A couple of spare disks have been added to a Solaris 10 system, and one of them has a corrupt zpool on it.
I don't care about the data: I want to destroy it and re-use the disk, but it's corrupt so I can't import it. The corrupt pool is called "rpool" so I don't want to destroy it by name (obviously), but I can't destroy it by ID either.
Can anyone suggest anything?
Many thanks

Code:
# echo|format
Searching for disks...done

c0t5000CCA00AC2C904d0: configured with capacity of 279.38GB
c0t5000CCA00AC71C6Cd0: configured with capacity of 279.38GB


AVAILABLE DISK SELECTIONS:
       0. c0t5000C5000AFDC5D3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /scsi_vhci/disk@g5000c5000afdc5d3
       1. c0t5000C5000AFDC383d0 <SEAGATE-ST973402SSUN72G-0603 cyl 14087 alt 2 hd 24 sec 424>
          /scsi_vhci/disk@g5000c5000afdc383
       2. c0t5000CCA00AC2C904d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000cca00ac2c904
       3. c0t5000CCA00AC71C6Cd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000cca00ac71c6c
       4. c0t5000CCA0129DF398d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>  solaris
          /scsi_vhci/disk@g5000cca0129df398
       5. c0t5000CCA0129E0BE0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>  solaris
          /scsi_vhci/disk@g5000cca0129e0be0
Specify disk (enter its number): Specify disk (enter its number):
# zpool import
  pool: rpool
    id: 5630142552301932667
 state: UNAVAIL
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
   see: http://www.sun.com/msg/ZFS-8000-5E
config:

        rpool                      UNAVAIL  insufficient replicas
          c0t5000CCA0129E0BE0d0s1  UNAVAIL  corrupted data
# zpool import -f -o cachefile=none 5630142552301932667 deadpool
cannot import 'rpool' as 'deadpool': invalid vdev configuration
# zpool destroy -f 5630142552301932667
cannot open '5630142552301932667': name must begin with a letter
#

# 2  
Old 09-20-2017
I'd be likely to try running 'format' in expert mode:

Code:
 # format -e

and be VERY CAREFUL to select the correct disk, and then nuke the data on the drive (perhaps by reformatting and in the extreme using 'analyze' to write zeros to every sector). That ought to do it.

However, be very careful. Expert mode gives you extra options and doesn't ask for much confirmation. You've told Solaris that you're an expert so you'd better be one!
This User Gave Thanks to hicksd8 For This Post:
# 3  
Old 09-20-2017
Create a zpool over that disk using force option.
Code:
zpool create -f newpool c0t5000CCA0129E0BE0d0s1

Hope that helps
Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

How to destroy one's business...?

I don't know enough about this subject but this is for the big guns... Yesterday:- Man accidentally 'deletes his entire company' with one line of bad code | News | Lifestyle | The Independent (5 Replies)
Discussion started by: wisecracker
5 Replies

2. Shell Programming and Scripting

Search and Destroy Script Direction Help

Being a beginner in scripting I am not sure the direction to take to accomplish the below task and would love suggestions. GOAL input file: domains.list Read input file, search in named.conf and find domain and delete entry for the purpose of cleanup activity. named.conf entry example zone... (8 Replies)
Discussion started by: djzah
8 Replies

3. Hardware

Plop boot manager Destroy the pc

Hello friends , yesterday i used plop boot manager to shutdown the pc but after using it, nothing happened on screen , i mean cpu is running but monitor show blank screen and then i reassembled the whole pc again ,cleaned , reattach all the devices again but problem persist . Any help (0 Replies)
Discussion started by: rink
0 Replies

4. Solaris

ZFS - Dataset / pool name are the same...cannot destroy

I messed up my pool by doing zfs send...recive So I got the following : zpool list NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT rpool 928G 17.3G 911G 1% 1.00x ONLINE - tank1 928G 35.8G 892G 3% 1.00x ONLINE - So I have "tank1" pool. zfs get all... (8 Replies)
Discussion started by: eladgrs
8 Replies

5. Solaris

How to Destroy a processor set i.e pset

First of all I'm new to solaris. Today is the first day i'm practicing zones. In global zone i have created a two separate pools of 2CPU's and created a email-zone and a web-zone as given in a PDF. I deleted the 2 zones in the processor sets. How can i destroy the processor set and i want my... (2 Replies)
Discussion started by: breaker64
2 Replies

6. Shell Programming and Scripting

How to recursively search and destroy tabs

Inspite of my best efforts, eclipse 3.5 seems to continue to misbehave and insert tab characters in my source code. How do I write a script execute from emacs to search all my files for tab characters and conveniently position me on the line of code that has the offending tab? Here are my... (7 Replies)
Discussion started by: siegfried
7 Replies

7. Shell Programming and Scripting

sed -i destroy symlink - how to solve this ?

After a few hours of frustration because I didn't understand why my symlinks are destroyed i just found out that sed -i will destroy symlinks. I searched but i didn't found any good solution for this. Is there any way to overcome this ? On my ubuntu server sed version is 4.1.5 edit: Sorry... (0 Replies)
Discussion started by: ktm
0 Replies

8. Solaris

How to destroy hardware raid on T5120

Hi, I have problem creating hardware raid on T5120 with 4 disks. After the hardware raid 1 created, then I used the raidctl -l c1t0d0 and raidctl -l c1t2d0 the output of volume c1t0d0 contain disk 0.0.0 0.1.0, also the volume c1t2d0 contain disk 0.0.0 0.1.0 and should be 0.2.0 0.3.0 so I... (15 Replies)
Discussion started by: netlink
15 Replies

9. Debian

Don't want destroy windows! Ask skills

I am going to install Linux/Debian on my computer. My current OS is windows 98. My question is that if I install Linux, it is required to partition the hard drive. Windows may be destroyed. I still want to keep it. I have no windows installtion CD. I don't want to buy it. Can I avoid... (1 Reply)
Discussion started by: zhshqzyc
1 Replies

10. UNIX for Dummies Questions & Answers

Looking for a good way to search & destroy lines

What is a good way to find an entry in a .conf file and then remove all lines associated with that entry? I have a Samba server running on Linux that I would like to easily add/remove share entries in the smb.conf file without removing or deleting lines that are not associated with that section.... (5 Replies)
Discussion started by: darthur
5 Replies
Login or Register to Ask a Question