[zfs-discuss] ZFS Usage on drives
Hello again, I'm wondering if we can see the amount of usage for a drive in ZFS raidz mirror. I'm in the process of replacing some drives but I want to replace the less used drives first (maybe only 40-50% utilisation). Is there such a thing? I saw somewhere that a guy had 3 drives in a raidz, one drive only had to be resilvered 612Gb to replace. I'm hoping as theres quite a bit of free space that some drives only occupy a little and therefore only resilver 200-300Gb of data. Thanks, Andre _ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] HDD Serial numbers for ZFS
prtconf -v is your friend. Example: Genius! I've got all my serial numbers now :) Cheers, Andre Date: Sat, 22 May 2010 17:44:21 +1000 From: j...@opensolaris.org To: andreas_wants_the_w...@hotmail.com CC: zfs-discuss@opensolaris.org Subject: Re: [zfs-discuss] HDD Serial numbers for ZFS On 22/05/10 05:09 PM, Andreas Iannou wrote: I should mention that iostat -En doesn't return any information. Is there a reliable way of reading SMART information natively in OpenSolaris? Cheers, Andre From: andreas_wants_the_w...@hotmail.com To: zfs-discuss@opensolaris.org Date: Sat, 22 May 2010 16:49:15 +1000 Subject: [zfs-discuss] HDD Serial numbers for ZFS Hallo again, I'm wondering how one would get the serial numbers for a HDD to identify them via OpenSolaris and match them to the ZFS pool. Like I'm trying to workout which HDD c7t3d0 reliably. Can serial numbers be read by OpenSolaris? prtconf -v is your friend. Example: $ iostat -En c3t3d0 c3t3d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Vendor: ATA Product: ST3320620AS Revision: D Serial No: Size: 320.07GB 320072933376 bytes Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0 ## Note that there is no serial number reported by iostat. $ ls -lart /dev/dsk/c3t3d0s2 2 lrwxrwxrwx 1 root root 59 Mar 19 22:27 /dev/dsk/c3t3d0s2 - ../../devices/p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@3,0:c ## note the /devices path. $ prtconf -v /devices/p...@0,0/pci10de,3...@a/pci1000,3...@0/s...@3,0 sd, instance #36 System properties: name='lun' type=int items=1 value= name='target' type=int items=1 value=0003 name='class' type=string items=1 value='scsi' Driver properties: name='inquiry-serial-no' type=string items=1 dev=none value='4QF01RZE' name='pm-components' type=string items=3 dev=none value='NAME=spindle-motor' + '0=off' + '1=on' name='pm-hardware-state' type=string items=1 dev=none value='needs-suspend-resume' name='ddi-failfast-supported' type=boolean dev=none name='ddi-kernel-ioctl' type=boolean dev=none name='fm-ereport-capable' type=boolean dev=none name='device-nblocks' type=int64 items=1 dev=none value=2542eab0 name='device-blksize' type=int items=1 dev=none value=0200 Hardware properties: name='devid' type=string items=1 value='id1,s...@tata_st3320620as_4qf01rze' name='inquiry-product-id' type=string items=1 value='ST3320620AS' name='inquiry-device-type' type=int items=1 value= name='inquiry-revision-id' type=string items=1 value='3.AAD' name='inquiry-vendor-id' type=string items=1 value='ST3320620AS' name='pm-capable' type=int items=1 value=00010003 name='sas-mpt' type=boolean name='compatible' type=string items=5 value='scsiclass,00.vATA.pST3320620AS.rD' + 'scsiclass,00.vATA.pST3320620AS' + 'scsa,00.bmpt' + 'scsiclass,00' + 'scsiclass' name='lun' type=int items=1 value= name='target' type=int items=1 value=0003 [extra output elided] This is the info you want: name='devid' type=string items=1 value='id1,s...@tata_st3320620as_4qf01rze' And while I'm at it, let me recommend my presentation on devids and guids http://www.jmcp.homeunix.com/~jmcp/WhatIsAGuid.pdf hth, James C. McPherson -- Senior Software Engineer, Solaris Oracle http://www.jmcp.homeunix.com/blog _ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Tank zpool has tanked out :(
This worked perfecto! deleted the zpool.cache, rebooted lost all my zpools and just reimported them and tank came back to me! Thanks, Andre Date: Fri, 21 May 2010 19:06:41 -0700 Subject: Re: [zfs-discuss] Tank zpool has tanked out :( From: bh...@freaks.com To: andreas_wants_the_w...@hotmail.com CC: cindy.swearin...@oracle.com; zfs-discuss@opensolaris.org On Fri, May 21, 2010 at 5:39 PM, Andreas Iannou andreas_wants_the_w...@hotmail.com wrote: Can you still export a pool when a disk is offline? You can try booting from a live CD and doing 'zpool import -f', then export it. That may sort things out. You may also need to remove /etc/zfs/zpool.cache from your BE, but I'm not sure. -B -- Brandon High : bh...@freaks.com _ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] zfs replace multiple drives
Is it safe or possible to do a zpool replace for multiple drives at once? I think I have one of the troublesome WD Green drives as replacing it has taken 39hrs and only reslivered 58Gb, I have another two I'd like to replace but I'm wondering whether I should do that now as the other is being resilvered or wait till (a month) till this has finished. Cheers, Andre _ View photos of singles in your area! Looking for a hot date? http://clk.atdmt.com/NMN/go/150855801/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] zfs replace multiple drives
Also, I don't have a feel for how replacing more than 1 drives in a RaidZ[23] affects resilver performance. Thats okay Erik, you've provided the information I need. This is a RAIDZ zpool, I think I'll wait and see how it goes before moving on. I cried seeing 673hrs remaining at 7% completion, the price we pay for being green (and cheap!). Cheers, Andre Date: Sun, 23 May 2010 17:44:21 -0700 From: erik.trim...@oracle.com To: andreas_wants_the_w...@hotmail.com CC: zfs-discuss@opensolaris.org Subject: Re: [zfs-discuss] zfs replace multiple drives On 5/23/2010 5:00 PM, Andreas Iannou wrote: Is it safe or possible to do a zpool replace for multiple drives at once? I think I have one of the troublesome WD Green drives as replacing it has taken 39hrs and only reslivered 58Gb, I have another two I'd like to replace but I'm wondering whether I should do that now as the other is being resilvered or wait till (a month) till this has finished. Cheers, Andre You can replace drives up to the number of redundant drives in your vdev, without loosing data. Thus: 2-way mirror:1 drive 3-way mirror:2 drives N-way mirror:N-1 drives RaidZ1: 1 drive RaidZ2: 2 drives RaidZ3: 3 drives If you have more than 1 vdev in a pool, then the above rule apply to EACH vdev. Of course, if you replace the maximum number above, you have no protection against failure for the period it takes to rebuild/resilver the vdev. Also, I don't have a feel for how replacing more than 1 drives in a RaidZ[23] affects resilver performance. -- Erik Trimble Java System Support Mailstop: usca22-123 Phone: x17195 Santa Clara, CA _ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] HDD Serial numbers for ZFS
Hallo again, I'm wondering how one would get the serial numbers for a HDD to identify them via OpenSolaris and match them to the ZFS pool. Like I'm trying to workout which HDD c7t3d0 reliably. Can serial numbers be read by OpenSolaris? Cheers, Andre _ View photos of singles in your area! Looking for a hot date? http://clk.atdmt.com/NMN/go/150855801/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] HDD Serial numbers for ZFS
I should mention that iostat -En doesn't return any information. Is there a reliable way of reading SMART information natively in OpenSolaris? Cheers, Andre From: andreas_wants_the_w...@hotmail.com To: zfs-discuss@opensolaris.org Date: Sat, 22 May 2010 16:49:15 +1000 Subject: [zfs-discuss] HDD Serial numbers for ZFS Hallo again, I'm wondering how one would get the serial numbers for a HDD to identify them via OpenSolaris and match them to the ZFS pool. Like I'm trying to workout which HDD c7t3d0 reliably. Can serial numbers be read by OpenSolaris? Cheers, Andre Looking for a hot date? View photos of singles in your area! _ Browse profiles for FREE! Meet local singles online. http://clk.atdmt.com/NMN/go/150855801/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] HDD Serial numbers for ZFS
áNot_testing áá á3 á á á á0 á á á á0 áNot_testing áá á4 á á á á0 á á á á0 áNot_testing áá á5 á á á á0 á á á á0 áNot_testing Selective self-test flags (0x0): ááAfter scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. On Sat, May 22, 2010 at 3:09 AM, Andreas Iannou andreas_wants_the_w...@hotmail.com wrote: I should mention thatáiostat -En doesn't return any information. Is there a reliable way of reading SMART information natively in OpenSolaris? á Cheers, Andre á From: andreas_wants_the_w...@hotmail.com To: zfs-discuss@opensolaris.org Date: Sat, 22 May 2010 16:49:15 +1000 Subject: [zfs-discuss] HDD Serial numbers for ZFS Hallo again, á I'm wondering how one would get the serial numbers for a HDD to identify them via OpenSolaris and match them to the ZFS pool. á Like I'm trying to workout which HDD c7t3d0 reliably. Can serial numbers be read by OpenSolaris? á Cheers, Andre Looking for a hot date? View photos of singles in your area! Meet local singles online. Browse profiles for FREE! ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss _ View photos of singles in your area! Looking for a hot date? http://clk.atdmt.com/NMN/go/150855801/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
[zfs-discuss] Tank zpool has tanked out :(
Hi there, My zpool tank has been chugging along nicely but after a failed attempt at offlining a misbehaving drive I've got a wierd sitation. pool: tank state: DEGRADED status: One or more devices has been taken offline by the administrator. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Online the device using 'zpool online' or replace the device with 'zpool replace'. scrub: none requested config: NAMESTATE READ WRITE CKSUM tankDEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 c7t0d0 ONLINE 0 0 0 c7t4d0 ONLINE 0 0 0 c7t1d0 ONLINE 0 0 0 c7t3d0 ONLINE 0 0 0 c7t2d0 ONLINE 0 0 0 c7t3d0 OFFLINE 0 0 0 errors: No known data errors Why does that particular drive appear twice? I am on SNV_134. They are 6x500Gb Western Digital RE drives. I have a spare 500Gb on another controller (c0t0d0) which I want to use to keep replace the (probably dying) drive but I'm not sure I can do this and it will correctly remove the one I want: # zpool replace tank c7t3d0 c0t0d0 Any ideas? Gracias, Andre _ New, Used, Demo, Dealer or Private? Find it at CarPoint.com.au http://clk.atdmt.com/NMN/go/206222968/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
Re: [zfs-discuss] Tank zpool has tanked out :(
Hello Cindy, Does the pool tank actually have 6 disks c7t0-c7t5 and c7t3d0 is now masking c7t5d0 or it is a 5-disk configuration with c7t5 repeated twice? There are 6 disks connected onto the onboard Intel SATA controller (this is a home NAS). There are another four that represent 2x for the rpool and 2x for another zpool for backup snapshots from our Macs. The thing is that I removed the motherboard and everything from the case to see which drive was causing issues, I may have swapped the order of the drives around and confused ZFS. What does the format utility display for these devices? Format presents it correctly. 4. c7t0d0 /p...@0,0/pci1458,b...@11/d...@0,0 5. c7t1d0 /p...@0,0/pci1458,b...@11/d...@1,0 6. c7t2d0 /p...@0,0/pci1458,b...@11/d...@2,0 7. c7t3d0 /p...@0,0/pci1458,b...@11/d...@3,0 8. c7t4d0 /p...@0,0/pci1458,b...@11/d...@4,0 9. c7t5d0 /p...@0,0/pci1458,b...@11/d...@5,0 others on this list have resolved this problem by exporting and importing the pool. Can you still export a pool when a disk is offline? Cheers, Andre Date: Fri, 21 May 2010 11:51:13 -0600 From: cindy.swearin...@oracle.com To: andreas_wants_the_w...@hotmail.com CC: zfs-discuss@opensolaris.org Subject: Re: [zfs-discuss] Tank zpool has tanked out :( Andreas, Does the pool tank actually have 6 disks c7t0-c7t5 and c7t3d0 is now masking c7t5d0 or it is a 5-disk configuration with c7t5 repeated twice? If it is the first case (c7t0-c7t5), then I would check how these devices are connected before attempting to replace the c7t3d0 disk. What does the format utility display for these devices? I haven't seen this error but others on this list have resolved this problem by exporting and importing the pool. Always have good backups of your data. Thanks, Cindy _ If It Exists, You'll Find it on SEEK. Australia's #1 job site http://clk.atdmt.com/NMN/go/157639755/direct/01/___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss