LINUX.ORG.RU
ФорумAdmin

Софтовый рейд. Замена диска Debian 6, pve

 , ,


0

1

Сделал легкие смарт тесты хардов. Один из них умирает.

Боевая задача: 1) Подготовить машину к выключению для замены харда. 2) Включить машину, присоединить новый хард к рейду, синхронизировать.

Дано: DDS, стоит у хостера. Софтовый рейд 1. Есть сетевое хранилище для бэкапов 100 Гб. Возможно расширить до 500 Гб. Больше - дорого. На хостовой тачке Debian 6 + ProxMox Несколько гостевых тачек.

test cut


Вывод smartctl -A /dev/sdb

smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-23-pve] (local build) Copyright (C) 2002-11 by Bruce Allen, [url]http://smartmontools.sourceforge.net[/url] === START OF READ SMART DATA SECTION === SMART Attributes Data Structure revision number: 10 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 093 092 006 Pre-fail Always - 100172791 3 Spin_Up_Time 0x0003 095 095 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 30 5 Reallocated_Sector_Ct 0x0033 098 098 036 Pre-fail Always - 122 7 Seek_Error_Rate 0x000f 082 060 030 Pre-fail Always - 180445927 9 Power_On_Hours 0x0032 073 073 000 Old_age Always - 24337 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 15 183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 239 188 Command_Timeout 0x0032 100 047 000 Old_age Always - 77 189 High_Fly_Writes 0x003a 099 099 000 Old_age Always - 1 190 Airflow_Temperature_Cel 0x0022 059 055 045 Old_age Always - 41 (Min/Max 35/45) 194 Temperature_Celsius 0x0022 041 045 000 Old_age Always - 41 (0 21 0 0) 195 Hardware_ECC_Recovered 0x001a 043 031 000 Old_age Always - 100172791 197 Current_Pending_Sector 0x0012 097 097 000 Old_age Always - 155 198 Offline_Uncorrectable 0x0010 097 097 000 Old_age Offline - 155 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 93754841128760 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 1421853788 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 1450172287

skomen
() автор топика

Вывод smartctl -l selftest /dev/sdb (Short)

smartctl 5.41 2011-06-09 r3365 [x86_64-linux-2.6.32-23-pve] (local build) Copyright (C) 2002-11 by Bruce Allen, [url]http://smartmontools.sourceforge.net[/url] === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed: read failure 80% 24337 1034609372 # 2 Extended offline Completed without error 00% 7202 - # 3 Extended offline Completed without error 00% 5542 - # 4 Extended offline Completed without error 00% 2334 - # 5 Extended offline Completed without error 00% 2302 -

skomen
() автор топика

fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000734ea

Device Boot Start End Blocks Id System /dev/sda1 2048 8390656 4194304+ fd Linux raid autodetect /dev/sda2 8392704 1465147120 728377208+ fd Linux raid autodetect

Disk /dev/sdb: 750.2 GB, 750156374016 bytes 255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000f2639

Device Boot Start End Blocks Id System /dev/sdb1 2048 8390656 4194304+ fd Linux raid autodetect /dev/sdb2 8392704 1465147120 728377208+ fd Linux raid autodetect

Disk /dev/md0: 4292 MB, 4292804608 bytes 2 heads, 4 sectors/track, 1048048 cylinders, total 8384384 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md1: 745.7 GB, 745723854848 bytes 2 heads, 4 sectors/track, 182061488 cylinders, total 1456491904 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/mapper/pve-root: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/mapper/pve-root doesn't contain a valid partition table

Disk /dev/mapper/pve-swap: 42.9 GB, 42949672960 bytes 255 heads, 63 sectors/track, 5221 cylinders, total 83886080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/mapper/pve-swap doesn't contain a valid partition table

Disk /dev/mapper/pve-vz: 214.7 GB, 214748364800 bytes 255 heads, 63 sectors/track, 26108 cylinders, total 419430400 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/mapper/pve-vz doesn't contain a valid partition table

Disk /dev/mapper/pve-data: 445.1 GB, 445074374656 bytes 255 heads, 63 sectors/track, 54110 cylinders, total 869285888 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000

Disk /dev/mapper/pve-data doesn't contain a valid partition table

skomen
() автор топика

mdadm --detail /dev/md0

/dev/md0: Version : 1.2 Creation Time : Wed Oct 23 23:27:51 2013 Raid Level : raid1 Array Size : 4192192 (4.00 GiB 4.29 GB) Used Dev Size : 4192192 (4.00 GiB 4.29 GB) Raid Devices : 2 Total Devices : 2 Persistence : Superblock is persistent

Update Time : Fri Jun 27 12:26:35 2014 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0

Name : rescue:0 UUID : 5b989157:594e6c27:9c1607ef:f4fa72f8 Events : 53

Number Major Minor RaidDevice State 0 8 1 0 active sync /dev/sda1 1 8 17 1 active sync /dev/sdb1

skomen
() автор топика

мда, нормальную себе записную книжку нашел.

handbrake ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.