Replace failed drive in pool


 
Thread Tools Search this Thread
Operating Systems Solaris Replace failed drive in pool
# 1  
Old 12-18-2014
Replace failed drive in pool

I am not very savvy with Solaris but am responsible for a server running Solaris 10 that has a failed hard drive in a mirrored pool. I ordered a new drive and attempted to install but received the error "device too small" when using zpool replace. The drive is the same Seagate model number as the old one and has the same nominal capacity of 300GB. Here's what prtvtoc says about the disks. Note that c1t0d0s2 is the new drive.
Code:
# prtvtoc /dev/dsk/c1t0d0s2
  * /dev/dsk/c1t0d0s2 partition map
  *
  * Dimensions:
  *     512 bytes/sector
  *    4470 sectors/track
  *       2 tracks/cylinder
  *    8940 sectors/cylinder
  *   65535 cylinders
  *   65533 accessible cylinders
  *
  * Flags:
  *   1: unmountable
  *  10: read-only
  *
  *                          First     Sector    Last
  * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
         0      2    00          0 585865020 585865019
         2      5    01          0 585865020 585865019
  # prtvtoc /dev/dsk/c1t1d0s2
  * /dev/dsk/c1t1d0s2 partition map
  *
  * Dimensions:
  *     512 bytes/sector
  *     625 sectors/track
  *      20 tracks/cylinder
  *   12500 sectors/cylinder
  *   46875 cylinders
  *   46873 accessible cylinders
  *
  * Flags:
  *   1: unmountable
  *  10: read-only
  *
  *                          First     Sector    Last
  * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
         0      2    00          0 585912500 585912499
         2      5    00          0 585912500 585912499

From what I read, I understand that a mirrored pool cannot shrink. So since I'm not really familiar with all of this, I ask why cant I just create a new pool? Can this be done without loosing the data on c1t1d0s2?
# 2  
Old 12-18-2014
When it says "drive too small" it almost certainly means just that.

Drive manufacturers have a habit of using the same part number/model number for slightly different size drives to give their product line some resemblance of continuity.

If you can, put both drives on a desk and, hopefully, both disk drives will have a LBA (logical block capacity) on their labels. These are big numbers but compare them. Chances are that the number of LBA's on the new drive is less than the number of LBA's on the old drive. Solaris won't like that since when the old drive was configured Solaris used the full available capacity.

You need a drive with the same or greater number of LBAs which will be the number that Solaris is interested in. The new drive can be the same number of LBAs as the old drive or any number greater but NOT a single LBA smaller.

Hope that helps.
# 3  
Old 12-18-2014
Please post "iostat -En" output. I this SPARC hardware ?
# 4  
Old 12-18-2014
Quote:
Originally Posted by hicksd8
When it says "drive too small" it almost certainly means just that.

Drive manufacturers have a habit of using the same part number/model number for slightly different size drives to give their product line some resemblance of continuity.

If you can, put both drives on a desk and, hopefully, both disk drives will have a LBA (logical block capacity) on their labels. These are big numbers but compare them. Chances are that the number of LBA's on the new drive is less than the number of LBA's on the old drive. Solaris won't like that since when the old drive was configured Solaris used the full available capacity.

You need a drive with the same or greater number of LBAs which will be the number that Solaris is interested in. The new drive can be the same number of LBAs as the old drive or any number greater but NOT a single LBA smaller.

Hope that helps.
What's prtvtoc show for the working drive in the mirror?
# 5  
Old 12-18-2014
The OP provided the output from prtvtoc for both the new disk and an existing disk in their initial post. If you carefully examine the new disk geometry you will see that it is totally different from that of the existing disk.
# 6  
Old 12-18-2014
Quote:
Originally Posted by fpmurphy
The OP provided the output from prtvtoc for both the new disk and an existing disk in their initial post. If you carefully examine the new disk geometry you will see that it is totally different from that of the existing disk.
Yep. Missed that. Doh!

Lesson learned: not all 300gb hard drives are created equal.

And FWIW - this type of mistake is one of the reasons enterprise-level hardware support exists. How much did this "Ooops!" cost the OP's employer? I doubt the "too small" drive came via Oracle, HP, or IBM support.
# 7  
Old 12-18-2014
I wouldn't say totally different. The CHS geometry is essentially irrelevant with modern disks. What really matters are the disk sizes and the difference is about 0,01% (24 MB vs 300 GB).

May be the OS is too old / unpatched. Since a 2010 update, ZFS is able to adjust most of such cases.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Stale PPs in AIX, failed disks.. how to replace?

I have a AIX 7.1 system that has 3 failed disks, 1 in rootvg and 2 in vg_usr1. Here is the output of lspv. # lspv hdisk0 00044d4dfbb11575 vg_usr1 active hdisk1 0000150179158027 vg_usr1 active hdisk2 ... (11 Replies)
Discussion started by: c3rb3rus
11 Replies

2. AIX

RAID 10 Failed Drive Swap

I am new to the AIX operating system and am seeking out some advice. We recently have had a drive go bad on our AIX server that is in a RAID 10 array. We have a replacement on the way. I was wondering what the correct steps are to swap out this drive. Does the server need to be powered off? Or can... (5 Replies)
Discussion started by: mpeter05
5 Replies

3. Solaris

Cannot remove and replace failed disk

-bash-3.00# zpool detach zonepool c1t1d0 cannot detach c1t1d0: only applicable to mirror and replacing vdevs -bash-3.00# zpool remove zonepool c1t1d0 cannot remove c1t1d0: only inactive hot spares, cache, top-level, or log devices can be removed -bash-3.00# zpool offline zonepool c1t1d0... (3 Replies)
Discussion started by: LittleLebowski
3 Replies

4. Solaris

How to replace failed disk?

Dear all Please can any one explain me how to replace failed disk in Solaris 10. Please tell me the step by step procedure. (9 Replies)
Discussion started by: suneelieg
9 Replies

5. 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

6. OS X (Apple)

Failed Drive

I am trying to recover data off a drive that failed in my iMac. Apple returned the drive to me and I purchased a hard drive enclosure. I have been doing research on prices for data recovery services, way too expensive. I seen some links using Unix DD commands in the terminal none of which worked.... (6 Replies)
Discussion started by: KJ1906
6 Replies

7. UNIX for Dummies Questions & Answers

Replace Drive

Any help appreciated Sco Unix Ver 5.0+ Have 2 90 gig mirrored drives Can these be replaced with any similar drive? Can one just be replaced and will the mirror rebuild on it and then allow reboot on it ---then replace 2nd drive? Thanks pb (3 Replies)
Discussion started by: paul1730
3 Replies

8. AIX

Replace a Failed Root Disk in AIX

My root disk is failed and how to replace the root disk in AIX. Can u give a detailed explanation in step wise. Pls give the answer taking different scenarios. Regards Praveen (1 Reply)
Discussion started by: chinnu_mulakala
1 Replies

9. Shell Programming and Scripting

Failed to replace string with "sed"

Hi folks, I have the following configuration file: tofu:/tmp # cat bitbandConfig.properties maestroIp=10.10.10.10 maestroPort=2020 adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList ###This part should not be changed### adminPlayVODProtocol=http username=iptv... (7 Replies)
Discussion started by: nir_s
7 Replies

10. UNIX for Dummies Questions & Answers

Replace the tape backup drive

Please help me!!!. I am new to Unix and I have to replace the tape backup drive. Originally the system had an IBM tape drive (Rhomat) that is damged. I changed it and installed a dat drive HP 5000+. The hardware recognize the drive, the diagnostics if OK. But when I try to install the operating... (3 Replies)
Discussion started by: allaite2
3 Replies
Login or Register to Ask a Question