Everend Posted January 18, 2016 Share Posted January 18, 2016 In another thread, Bungy, talked about replacing a cache pool drive. He posted the following steps, since it's an old thread and noone responded when I posted to that thread I'm starting a new one. Are these the right steps? I've completed step 5. I [bungy] figured out how to do this successfully and thought I'd share my steps in case anybody else needed them. Here are my steps: [*]BACKUP YOUR CACHE DRIVE! [*]Stop the array using the webUI [*]Add the replacement drive to the cache pool [*]Start the array [*]Wait for the updated pool to rebalance [*]Open a terminal window and run: btrfs device delete /dev/sdX /mnt/cache. Replace sdX with the disk assignment of the failed drive. [*]Wait for the drive to be deleted from the pool (this will take a while) [*]Stop the array [*]Reorder the cache drives in the pool through the webUI. This step is primarily for cleanliness. [*]Start the array Bungy = http://lime-technology.com/forum/index.php?action=profile;u=19637 Before adding the new 2TB drive, the 1.5TB drive was busy reallocating sectors (215 total over about 5 days). Since adding the new drive to the pool there have been no new reallocated sectors, I assume that's because the cache pool is writing to the other two disks right now. Below is the SMART report for the failing disk. Should I still remove and retire the 1.5TB drive, I really don't need it in the pool. smartctl 6.2 2013-07-26 r3841 [x86_64-linux-4.1.13-unRAID] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint F2 EG Device Model: SAMSUNG HD154UI Serial Number: S1XWJ1BZ505571 LU WWN Device Id: 5 0024e9 00382b124 Firmware Version: 1AG01118 User Capacity: 1,500,301,910,016 bytes [1.50 TB] Sector Size: 512 bytes logical/physical Device is: In smartctl database [for details use: -P show] ATA Version is: ATA/ATAPI-7, ATA8-ACS T13/1699-D revision 3b Local Time is: Mon Jan 18 17:09:19 2016 CST SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED See vendor-specific Attribute list for marginal Attributes. General SMART Values: Offline data collection status: (0x00) Offline data collection activity was never started. Auto Offline Data Collection: Disabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (18790) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 314) minutes. Conveyance self-test routine recommended polling time: ( 33) minutes. SCT capabilities: (0x003f) SCT Status supported. SCT Error Recovery Control supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 100 023 051 Pre-fail Always In_the_past 0 3 Spin_Up_Time 0x0007 071 071 011 Pre-fail Always - 9570 4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 234 5 Reallocated_Sector_Ct 0x0033 095 095 010 Pre-fail Always - 215 7 Seek_Error_Rate 0x000f 100 100 051 Pre-fail Always - 0 8 Seek_Time_Performance 0x0025 100 100 015 Pre-fail Offline - 0 9 Power_On_Hours 0x0032 095 095 000 Old_age Always - 23352 10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0 11 Calibration_Retry_Count 0x0012 100 100 000 Old_age Always - 0 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 211 13 Read_Soft_Error_Rate 0x000e 100 042 000 Old_age Always - 0 183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0 184 End-to-End_Error 0x0033 100 100 000 Pre-fail Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 6345 188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 190 Airflow_Temperature_Cel 0x0022 074 059 000 Old_age Always - 26 (Min/Max 25/30) 194 Temperature_Celsius 0x0022 072 056 000 Old_age Always - 28 (Min/Max 25/31) 195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 51792260 196 Reallocated_Event_Count 0x0032 095 095 000 Old_age Always - 215 197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0 200 Multi_Zone_Error_Rate 0x000a 099 099 000 Old_age Always - 273 201 Soft_Read_Error_Rate 0x000a 100 100 000 Old_age Always - 0 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 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. thanks Everend Link to comment
zey Posted January 19, 2016 Share Posted January 19, 2016 I look forward to a reply to this thread in case the day comes where one of my cache drives needs to be replaced. Link to comment
JorgeB Posted January 19, 2016 Share Posted January 19, 2016 If I understood correctly you now have 3 disks in the pool, if so and if you plan to retire the 1.5TB you just need to shutdown server, remove disk, and power back on, pool will be rebalanced to work with the other 2 on start up. Note that you have to physically disconnect the old cache disk, trying to start the array with it just unassigned will cause cache to appear as unmountable. Link to comment
JorgeB Posted January 19, 2016 Share Posted January 19, 2016 Just to add that the 2 disk rebalance will take some time, wait until there’s no reads/writes for the cache disks or check the btrfs filesystem show on the cache webpage, rebalance will be done when it shows “Total devices 2 FS…”. Now if want you can stop the array and change cache slots, to use 1 and 2 slots. Also, always a good idea to backup you cache in case something unexpected happens. Link to comment
ammar577 Posted February 20, 2016 Share Posted February 20, 2016 Hi guys I hope my post is relavent, I have a 240 GB ssd as my cache (old drive), I add 1 tb ssd now, and it only shows 240 GB remaining, my goal was to add more storage and redundancy, so now my question is it ok to pull out the 240gb ssd and just add an other 1tb ssd and my pool will be recalculated to 1tb raid1 with redundancy?? I have the latest pro version of unraid I really apologize if i have high jacked this forum. But I'm lost and completely clueless And by the way how do you back up your cache pool. Do I just copy all the contents to a folder. I have docker apps that I'm worried to loose I look forward your support Regards, Ammar Link to comment
Everend Posted February 27, 2016 Author Share Posted February 27, 2016 Ammar, I'm probably not qualified to properly answer your questions, but since noone else has I'll share my opinion. Increase your cache pool by adding the second 1tb ssd, let it rebalance, then remove the 240gb (or leave it). See the steps explained above for how to do that. I still haven't done the last step of reordering the drives. On my config, Cache line is empty, my two drives are in Cache 2 & Cache 3. As for backing up, I think you could set crashplan to auto back it up. That's part of the reason for having the pool too, to have a mirror of it on the other disk. Yes, just copy the contents to a folder in the array. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.