notes_brot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes_brot [2014/11/19 20:52] brotnotes_brot [2021/01/31 23:04] (current) – [Reset HP OfficeJet Pro 8600 Plus] brot
Line 1: Line 1:
 ====== Notizzettel vom brot ====== ====== Notizzettel vom brot ======
 +===== Reset HP OfficeJet Pro 8600 Plus =====
 +<code>
 +My printer is a N911n, and I have not found a consistent way to reset it.
 +I did get the Home, Back, Home, Home to work possibly one time a couple months ago, so not sure if the Oct 31st firmware changed something,
 +as I have not been able to do any kind of reset.  
 +(tried the Back x 4-5 times as well at boot up, but nothing happens, after power off/unplugging for 1-10 mins).
 +</code>
  
 +https://h30434.www3.hp.com/t5/Printer-Setup-Software-Drivers/HP-Officejet-Pro-8600-N911g-Firmware-Update-Fails/td-p/7876436
 ===== NAS Einführung btrfs ===== ===== NAS Einführung btrfs =====
  
Line 281: Line 289:
   * mount -o ro /dev/md4 /mnt/raid_datenpartition   * mount -o ro /dev/md4 /mnt/raid_datenpartition
   * cp -av /mnt/raid_datenpartition/Daten /mnt/btrfs-daten-subvol/ | tee cp-log.tee   * cp -av /mnt/raid_datenpartition/Daten /mnt/btrfs-daten-subvol/ | tee cp-log.tee
 +  * 
 +
 +==== Kopieren der Backups ====
 +
 +Problem: btrfs-image-files auf den alten FS. Jetzt: subvolumes auf dem btrfs-fs
 +
 +Lösung: Übertragen aller Snapshots per btrfs send/receive
 +
 +<code bash>
 +nas ~ # for i in $( ls /mnt/current_backup_file/ | grep backup); do btrfs property set -t s /mnt/current_backup_file/$i ro true; done
 +nas ~ # btrfs send -v /mnt/current_backup_file/backup-2011.11.07-22\:43/ | btrfs receive -v /mnt/btrfs-brot-backup-subvol/
 +At subvol /mnt/current_backup_file/backup-2011.11.07-22:43/
 +At subvol backup-2011.11.07-22:43
 +receiving subvol backup-2011.11.07-22:43 uuid=9c52dfc1-499f-9640-a4f9-0f8b89974a61, stransid=0
 +</code>
 +
 +==== 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 
 + Active Devices : 3
 +Working Devices : 3
 + Failed Devices : 0
 +  Spare Devices : 0
 +
 +         Layout : left-symmetric
 +     Chunk Size : 512K
 +
 +           Name : localhost.localdomain:2
 +           UUID : a9d908f3:f8632fcf:59a69085:83d5f6aa
 +         Events : 10324
 +
 +    Number   Major   Minor   RaidDevice State
 +                   51        0      active sync   /dev/sdd3
 +                   67        1      active sync   /dev/sde3
 +                   35        2      active sync   /dev/sdc3
 +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 
 + Active Devices : 3
 +Working Devices : 3
 + Failed Devices : 0
 +  Spare Devices : 0
 +
 +         Layout : left-symmetric
 +     Chunk Size : 512K
 +
 +           Name : nas:4  (local to host nas)
 +           UUID : f6924d42:7358df85:416f97f9:83aeac62
 +         Events : 16217
 +
 +    Number   Major   Minor   RaidDevice State
 +                   52        0      active sync   /dev/sdd4
 +                   36        1      active sync   /dev/sdc4
 +                   68        2      active sync   /dev/sde4
 +</code>
 +<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>
 +<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 
 + Active Devices : 2
 +Working Devices : 2
 + Failed Devices : 0
 +  Spare Devices : 0
 +
 +         Layout : left-symmetric
 +     Chunk Size : 512K
 +
 +           Name : nas:4  (local to host nas)
 +           UUID : f6924d42:7358df85:416f97f9:83aeac62
 +         Events : 16220
 +
 +    Number   Major   Minor   RaidDevice State
 +                   52        0      active sync   /dev/sdd4
 +                    0        2      removed
 +                   68        2      active sync   /dev/sde4
 +</code>
 +<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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048       106907647   50.0 GiB    FD00  Linux RAID
 +         106907648      5860533134   2.7 TiB     FD00  
 +
 +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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +
 +Command (? for help): n
 +Partition number (3-128, default 3): 
 +First sector (34-5860533134, default = 2050048) or {+-}size{KMGTP}: 
 +Last sector (2050048-5860533134, default = 5860533134) or {+-}size{KMGTP}: 
 +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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048      5860533134   2.7 TiB     8300  Linux filesystem
 +
 +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>
 +<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 '/' is running
 +1 out of about 3680 chunks balanced (2 considered), 100% left
 +</code>
 +
 +<code>
 +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 : Sat Dec 27 10:31:33 2014
 +          State : clean, degraded
 + Active Devices : 2
 +Working Devices : 2
 + Failed Devices : 0
 +  Spare Devices : 0
 +
 +         Layout : left-symmetric
 +     Chunk Size : 512K
 +
 +           Name : nas:4  (local to host nas)
 +           UUID : f6924d42:7358df85:416f97f9:83aeac62
 +         Events : 18754
 +
 +    Number   Major   Minor   RaidDevice State
 +                   52        0      active sync   /dev/sdd4
 +                    0        2      removed
 +                   68        2      active sync   /dev/sde4
 +
 +nas brot # mdadm -S /dev/md4
 +mdadm: stopped /dev/md4
 +nas brot # mdadm -S /dev/md2
 +mdadm: stopped /dev/md2
 +</code>
 +<code>
 +nas brot # gdisk /dev/sdd
 +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/sdd: 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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048       106907647   50.0 GiB    FD00  Linux RAID
 +         106907648      5860533134   2.7 TiB     FD00  
 +
 +Command (? for help): d
 +Partition number (1-4): 4
 +
 +Command (? for help): d
 +Partition number (1-3): 3
 +
 +Command (? for help): n
 +Partition number (3-128, default 3): 
 +First sector (34-5860533134, default = 2050048) or {+-}size{KMGTP}: 
 +Last sector (2050048-5860533134, default = 5860533134) or {+-}size{KMGTP}: 
 +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/sdd: 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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048      5860533134   2.7 TiB     8300  Linux filesystem
 +
 +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/sdd.
 +Warning: The kernel is still using the old partition table.
 +The new table will be used at the next reboot.
 +The operation has completed successfully.
 +nas brot # gdisk /dev/sde
 +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/sde: 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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048       106907647   50.0 GiB    FD00  Linux RAID
 +         106907648      5860533134   2.7 TiB     FD00  
 +
 +Command (? for help): d
 +Partition number (1-4): 4
 +
 +Command (? for help): d
 +Partition number (1-3): 3
 +
 +Command (? for help): n
 +Partition number (3-128, default 3): 
 +First sector (34-5860533134, default = 2050048) or {+-}size{KMGTP}: 
 +Last sector (2050048-5860533134, default = 5860533134) or {+-}size{KMGTP}: 
 +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/sde: 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  Start (sector)    End (sector)  Size       Code  Name
 +              2048         1026047   500.0 MiB   EF00  EFI System
 +           1026048         2050047   500.0 MiB   FD00  Linux RAID
 +           2050048      5860533134   2.7 TiB     8300  Linux filesystem
 +
 +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/sde.
 +Warning: The kernel is still using the old partition table.
 +The new table will be used at the next reboot.
 +The operation has completed successfully.
 +nas brot # 
 +</code>
 +<code>
 +nas brot # sync
 +nas brot # btrfs device add /dev/sdd3 / -f
 +nas brot # btrfs device add /dev/sde3 / -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
 +
 +(anderer screen)
 +nas brot # watch -n 10 'btrfs balance status /'
  
 +Every 10,0s: btrfs balance status /            Tue Dec 30 11:02:30 2014
  
 +Balance on '/' is running
 +1 out of about 4941 chunks balanced (2 considered), 100% left
  
  
Line 462: Line 870:
 </code> </code>
  
-==== Umzug ====+===== Umzug auf größere Platten =====
   - Neue Platten einhängen [x]   - Neue Platten einhängen [x]
   - Partitionen kopieren [x]   - Partitionen kopieren [x]
Line 468: Line 876:
   - Daten kopieren [x]   - Daten kopieren [x]
   - Große Platte aus altem RAID umhängen in das neue [ X ]   - Große Platte aus altem RAID umhängen in das neue [ X ]
-  - Systempartitionen auf die neuen Platten holen [ ]+  - Systempartitionen auf die neuen Platten holen [ ]
  
 === Partitionierung nach Anpassung === === Partitionierung nach Anpassung ===
  • notes_brot.1416430369.txt.gz
  • Last modified: 2014/11/19 20:52
  • by brot