a6

Plan: let’s get it back up and running, quickly

SCRAPPED, too complicated setting up a new hard drive

make raid partitions for sde

1 1049kB 540MB 539MB fat32 efi boot, esp
2 540MB 2540MB 2000MB ext4 boot
6 2540MB 20.5GB 18.0GB ext4 root
3 20.5GB 40.5GB 20.0GB ext4 var
4 40.5GB 72.5GB 32.0GB ext4 tmp
5 72.5GB 123GB 50.0GB ext4 home
8 123GB 208GB 85.5GB ext4 primary

parted /dev/sde unit s print free

parted -a optimal /dev/sde
print free
# efi
mkpart primary fat32 1MiB 100MiB
set 1 esp on
# boot
mkpart primary ext4 100MiB 300MiB

mdadm –create /dev/md1 –level=1 –raid-devices=2 missing /dev/sde1 –metadata=0.90
mdadm –create /dev/md2 –level=1 –raid-devices=2 missing /dev/sde2 –metadata=0.90
mdadm –create /dev/md3 –level=1 –raid-devices=2 missing /dev/sde3 –metadata=0.90

md126: efi
md127: boot
mdadm –stop /dev/md125
mdadm –stop /dev/md126
mdadm –stop /dev/md127

grub-install –target=x86_64-efi –efi-directory=ESP_MOUNT_PATH –bootloader-id=grub
/boot/efi/EFI/debian/grubx64.efi
grub-install –target=x86_64-efi –efi-directory=/mnt –bootloader-id=grub
grub-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn’t exist. Please specify –target or –directory.

https://wiki.archlinux.org/title/Convert_a_single_drive_system_to_RAID

phomlish@a6:~$ cat /etc/issue
Debian GNU/Linux 10 \n \l

udev 16G 0 16G 0% /dev
tmpfs 3.2G 16M 3.2G 1% /run
/dev/sda6 17G 5.7G 9.9G 37% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 4.0G 0 4.0G 0% /ramdisk
/dev/sda2 1.9G 116M 1.6G 7% /boot
/dev/sdb1 2.7T 275G 2.3T 11% /usr4
/dev/md0 916G 197G 673G 23% /usr3
/dev/sda1 513M 132K 513M 1% /boot/efi
/dev/sda5 46G 1.6G 42G 4% /home
/dev/sda8 78G 752M 74G 1% /usr2
/dev/sda3 19G 13G 5.0G 72% /var
/dev/sda4 30G 45M 28G 1% /tmp
tmpfs 3.2G 4.0K 3.2G 1% /run/user/113

hdparm -I /dev/sda

root@a6:~# parted /dev/sda
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print
Model: ATA KINGSTON SA400S3 (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number Start End Size File system Name Flags
1 1049kB 540MB 539MB fat32 efi boot, esp
2 540MB 2540MB 2000MB ext4 boot
6 2540MB 20.5GB 18.0GB ext4 root
3 20.5GB 40.5GB 20.0GB ext4 var
4 40.5GB 72.5GB 32.0GB ext4 tmp
5 72.5GB 123GB 50.0GB ext4 home
8 123GB 208GB 85.5GB ext4 primary

root@a6:~# parted /dev/sde
GNU Parted 3.2
Using /dev/sde
Welcome to GNU Parted! Type ‘help’ to view a list of commands.
(parted) print
Model: ATA SATA SSD (scsi)
Disk /dev/sde: 120GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
2 1049kB 20.0GB 20.0GB primary ext4 boot
3 20.0GB 40.0GB 20.0GB primary
4 40.0GB 95.0GB 55.0GB extended
5 40.0GB 55.0GB 15.0GB logical ext4
6 55.0GB 75.0GB 20.0GB logical ext4
7 75.0GB 95.0GB 20.0GB logical ext4
1 112GB 120GB 8000MB primary linux-swap(v1)

root@a6:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdc1[0] sdd1[1]
976629760 blocks super 1.2 [2/2] [UU]
bitmap: 0/8 pages [0KB], 65536KB chunk

unused devices:

parted /dev/sdg unit s print free
parted /dev/sdg mklabel gpt

parted -a optimal /dev/sdg mkpart primary 0% 100%


going to 15.10

install
server install
krfb
add krfb to .kde/Autostart

codecs
ffmpeg
vlc
usb video device

pykaraoke

mount
dev
used/size G
use
/
md0
6/74
system
/usr2
md126
21/367
applications
/usr3
sdb8
18/466
logs
/usr4
sda8
168/466
is now authoritative for our videos

/usr5
sdc1
1/2700
recordings from janus
(a2 records malawi v4l)
/usr6
md127
121/917
converted videos
home
md125
6/184
home
opt
md123
1/73
janus
gstreamer