Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
notes_brot [2014/11/23 15:28] – [Kopieren der Daten] brot | notes_brot [2014/12/07 11:14] – [Hinzufügen der alten Platten in den BTRFS-Pool] brot | ||
---|---|---|---|
Line 297: | Line 297: | ||
</ | </ | ||
+ | ==== Hinzufügen der alten Platten in den BTRFS-Pool ==== | ||
+ | * Platte sdc soll dem BTRFS-RAID1 hinzugefügt werden (sda und sdb sind die neuen Platten) | ||
+ | * Degradieren der RAID5s | ||
+ | * Neupartitionieren der Platte | ||
+ | <code bash> | ||
+ | nas brot # mdadm -D /dev/md2 | ||
+ | /dev/md2: | ||
+ | Version : 1.2 | ||
+ | Creation Time : Tue Aug 28 04:45:52 2012 | ||
+ | Raid Level : raid5 | ||
+ | Array Size : 52430848 (50.00 GiB 53.69 GB) | ||
+ | Used Dev Size : 26215424 (25.00 GiB 26.84 GB) | ||
+ | Raid Devices : 3 | ||
+ | Total Devices : 3 | ||
+ | Persistence : Superblock is persistent | ||
+ | |||
+ | Update Time : Mon Nov 17 23:42:11 2014 | ||
+ | State : clean | ||
+ | | ||
+ | Working Devices : 3 | ||
+ | | ||
+ | Spare Devices : 0 | ||
+ | |||
+ | | ||
+ | Chunk Size : 512K | ||
+ | |||
+ | Name : localhost.localdomain: | ||
+ | UUID : a9d908f3: | ||
+ | | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | | ||
+ | nas brot # mdadm -D /dev/md4 | ||
+ | /dev/md4: | ||
+ | Version : 1.2 | ||
+ | Creation Time : Mon Dec 9 22:06:12 2013 | ||
+ | Raid Level : raid5 | ||
+ | Array Size : 5753362432 (5486.83 GiB 5891.44 GB) | ||
+ | Used Dev Size : 2876681216 (2743.42 GiB 2945.72 GB) | ||
+ | Raid Devices : 3 | ||
+ | Total Devices : 3 | ||
+ | Persistence : Superblock is persistent | ||
+ | |||
+ | Intent Bitmap : Internal | ||
+ | |||
+ | Update Time : Sun Nov 30 21:05:22 2014 | ||
+ | State : clean | ||
+ | | ||
+ | Working Devices : 3 | ||
+ | | ||
+ | Spare Devices : 0 | ||
+ | |||
+ | | ||
+ | Chunk Size : 512K | ||
+ | |||
+ | Name : nas:4 (local to host nas) | ||
+ | UUID : f6924d42: | ||
+ | | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | <code bash> | ||
+ | nas brot # mdadm --manage --set-faulty /dev/md2 /dev/sdc3 | ||
+ | mdadm: set /dev/sdc3 faulty in /dev/md2 | ||
+ | nas brot # mdadm --manage --set-faulty /dev/md4 /dev/sdc4 | ||
+ | mdadm: set /dev/sdc4 faulty in /dev/md4 | ||
+ | nas brot # mdadm --manage /dev/md2 -r /dev/sdc3 | ||
+ | mdadm: hot removed /dev/sdc3 from /dev/md2 | ||
+ | nas brot # mdadm --manage /dev/md4 -r /dev/sdc4 | ||
+ | mdadm: hot removed /dev/sdc4 from /dev/md4 | ||
+ | </ | ||
+ | <code bash> | ||
+ | nas brot # mdadm -D /dev/md4 | ||
+ | /dev/md4: | ||
+ | Version : 1.2 | ||
+ | Creation Time : Mon Dec 9 22:06:12 2013 | ||
+ | Raid Level : raid5 | ||
+ | Array Size : 5753362432 (5486.83 GiB 5891.44 GB) | ||
+ | Used Dev Size : 2876681216 (2743.42 GiB 2945.72 GB) | ||
+ | Raid Devices : 3 | ||
+ | Total Devices : 2 | ||
+ | Persistence : Superblock is persistent | ||
+ | |||
+ | Intent Bitmap : Internal | ||
+ | |||
+ | Update Time : Sun Dec 7 12:07:18 2014 | ||
+ | State : clean, degraded | ||
+ | | ||
+ | Working Devices : 2 | ||
+ | | ||
+ | Spare Devices : 0 | ||
+ | |||
+ | | ||
+ | Chunk Size : 512K | ||
+ | |||
+ | Name : nas:4 (local to host nas) | ||
+ | UUID : f6924d42: | ||
+ | | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | <code bash> | ||
+ | nas brot # gdisk /dev/sdc | ||
+ | GPT fdisk (gdisk) version 0.8.10 | ||
+ | |||
+ | Partition table scan: | ||
+ | MBR: protective | ||
+ | BSD: not present | ||
+ | APM: not present | ||
+ | GPT: present | ||
+ | |||
+ | Found valid GPT with protective MBR; using GPT. | ||
+ | |||
+ | Command (? for help): p | ||
+ | Disk /dev/sdc: 5860533168 sectors, 2.7 TiB | ||
+ | Logical sector size: 512 bytes | ||
+ | Disk identifier (GUID): 0C5623E2-2FF4-4787-9609-750745C161DA | ||
+ | Partition table holds up to 128 entries | ||
+ | First usable sector is 34, last usable sector is 5860533134 | ||
+ | Partitions will be aligned on 2048-sector boundaries | ||
+ | Total free space is 2014 sectors (1007.0 KiB) | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Command (? for help): d | ||
+ | Partition number (1-4): 4 | ||
+ | |||
+ | Command (? for help): d | ||
+ | Partition number (1-3): 3 | ||
+ | |||
+ | Command (? for help): p | ||
+ | Disk /dev/sdc: 5860533168 sectors, 2.7 TiB | ||
+ | Logical sector size: 512 bytes | ||
+ | Disk identifier (GUID): 0C5623E2-2FF4-4787-9609-750745C161DA | ||
+ | Partition table holds up to 128 entries | ||
+ | First usable sector is 34, last usable sector is 5860533134 | ||
+ | Partitions will be aligned on 2048-sector boundaries | ||
+ | Total free space is 5858485101 sectors (2.7 TiB) | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | |||
+ | Command (? for help): n | ||
+ | Partition number (3-128, default 3): | ||
+ | First sector (34-5860533134, | ||
+ | Last sector (2050048-5860533134, | ||
+ | Current type is 'Linux filesystem' | ||
+ | Hex code or GUID (L to show codes, Enter = 8300): | ||
+ | Changed type of partition to 'Linux filesystem' | ||
+ | |||
+ | Command (? for help): p | ||
+ | Disk /dev/sdc: 5860533168 sectors, 2.7 TiB | ||
+ | Logical sector size: 512 bytes | ||
+ | Disk identifier (GUID): 0C5623E2-2FF4-4787-9609-750745C161DA | ||
+ | Partition table holds up to 128 entries | ||
+ | First usable sector is 34, last usable sector is 5860533134 | ||
+ | Partitions will be aligned on 2048-sector boundaries | ||
+ | Total free space is 2014 sectors (1007.0 KiB) | ||
+ | |||
+ | Number | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Command (? for help): w | ||
+ | |||
+ | Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING | ||
+ | PARTITIONS!! | ||
+ | |||
+ | Do you want to proceed? (Y/N): y | ||
+ | OK; writing new GUID partition table (GPT) to /dev/sdc. | ||
+ | The operation has completed successfully. | ||
+ | </ | ||
+ | <code bash> | ||
+ | nas brot # btrfs device add /dev/sdc3 / -f | ||
+ | nas brot # btrfs balance start -v / | ||
+ | Dumping filters: flags 0x7, state 0x0, force is off | ||
+ | DATA (flags 0x0): balancing | ||
+ | METADATA (flags 0x0): balancing | ||
+ | SYSTEM (flags 0x0): balancing | ||
+ | nas brot # watch -n 10 'btrfs balance status /' | ||
+ | Balance on '/' | ||
+ | 1 out of about 3680 chunks balanced (2 considered), | ||
+ | </ | ||
===== NAS Festplattenausbau ===== | ===== NAS Festplattenausbau ===== | ||
http:// | http:// |