On Fri, Feb 11, 2022 at 10:09:25PM +0100, Konrad Sowula wrote: > Hello, > to keep things short, rebooting my vps using 'Server restart' in vultr > control panel trashed my /usr/local directory (or at least i suppose > that's all that has been damaged, haven't noticed any changes to > config files thus far). > > Upon rebooting awaited me a message akin to: > /dev/sd0a (...): UNEXPECTED INCONSISTENCY; RUN fsck_ffs MANUALLY > ... > Enter path to shell binary: > > thus i ran `fsck_ffs /dev/sd0a` in shell and here I am.
Your subject is wrong. fsck_ffs did not trash your filesystem. It could not repair the damage automatically. Your report is also useless. What does "here I am" mean? Was fsck_ffs able to repair the fs in non-automatic mode? How about providing the things it printed/questions it asked on the manual run? BTW, /dev/sd0a is your root fs. -Otto > > uname -a: > OpenBSD vultr.guest 7.0 GENERIC.MP#232 amd64 > > mount: > /dev/sd0a on / type ffs (local) > > Unfortunately I can't attach any logs from ddb, as it doesn't appear to > be possible to trigger it on vultr vps. > Dmesg and other logs i find applicable will be posted as attachments. > Posting additional logs will be impossible because i'm going to make a > fresh setup as soon as I finish writing this. > > If anyone has at least a hint of what happened and could guide me > towards a correct way of handling situations like these in the future > I would be much obliged. > > -- > Regards, > Konrad 'sokon' Sowula > www: (unfortunately down for maintainance now :/) > OpenBSD 7.0 (GENERIC.MP) #232: Thu Sep 30 14:25:29 MDT 2021 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 519946240 (495MB) > avail mem = 488206336 (465MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf5950 (9 entries) > bios0: vendor Vultr > bios0: Vultr VC2 > acpi0 at bios0: ACPI 3.0 > acpi0: sleep states S3 S4 S5 > acpi0: tables DSDT FACP APIC HPET MCFG WAET > acpi0: wakeup devices > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel Core Processor (Broadwell, no TSX, IBRS), 2395.05 MHz, 06-3d-02 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ABM,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,SSBD,ARAT,XSAVEOPT,MELTDOWN > cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB > 64b/line 16-way L2 cache > cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped > cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 1000MHz > ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins > acpihpet0 at acpi0: 100000000 Hz > acpimcfg0 at acpi0 > acpimcfg0: addr 0xb0000000, bus 0-255 > acpiprt0 at acpi0: bus 0 (PCI0) > "ACPI0006" at acpi0 not configured > acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 > acpicmos0 at acpi0 > "PNP0A06" at acpi0 not configured > "PNP0A06" at acpi0 not configured > "QEMU0002" at acpi0 not configured > "ACPI0010" at acpi0 not configured > acpicpu0 at acpi0: C1(@1 halt!) > cpu0: using Broadwell MDS workaround > pvbus0 at mainbus0: KVM > pvclock0 at pvbus0 > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel 82G33 Host" rev 0x00 > vga1 at pci0 dev 1 function 0 "Cirrus Logic CL-GD5446" rev 0x00 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > ppb0 at pci0 dev 2 function 0 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci1 at ppb0 bus 1 > virtio0 at pci1 dev 0 function 0 "Qumranet Virtio 1.x Network" rev 0x01 > vio0 at virtio0: address 56:00:02:f4:c6:7f > virtio0: msix shared > ppb1 at pci0 dev 2 function 1 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci2 at ppb1 bus 2 > xhci0 at pci2 dev 0 function 0 vendor "Red Hat", unknown product 0x000d rev > 0x01: apic 0 int 22, xHCI 0.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "Red Hat xHCI root hub" rev > 3.00/1.00 addr 1 > ppb2 at pci0 dev 2 function 2 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci3 at ppb2 bus 3 > virtio1 at pci3 dev 0 function 0 "Qumranet Virtio 1.x Storage" rev 0x01 > vioblk0 at virtio1 > scsibus1 at vioblk0: 1 targets > sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > > sd0: 10240MB, 512 bytes/sector, 20971520 sectors > virtio1: msix shared > ppb3 at pci0 dev 2 function 3 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci4 at ppb3 bus 4 > virtio2 at pci4 dev 0 function 0 vendor "Qumranet", unknown product 0x1045 > rev 0x01 > viomb0 at virtio2 > virtio2: apic 0 int 22 > ppb4 at pci0 dev 2 function 4 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci5 at ppb4 bus 5 > virtio3 at pci5 dev 0 function 0 "Qumranet Virtio 1.x RNG" rev 0x01 > viornd0 at virtio3 > virtio3: apic 0 int 22 > ppb5 at pci0 dev 2 function 5 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci6 at ppb5 bus 6 > ppb6 at pci0 dev 2 function 6 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci7 at ppb6 bus 7 > ppb7 at pci0 dev 2 function 7 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 22 > pci8 at ppb7 bus 8 > ppb8 at pci0 dev 3 function 0 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci9 at ppb8 bus 9 > ppb9 at pci0 dev 3 function 1 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci10 at ppb9 bus 10 > ppb10 at pci0 dev 3 function 2 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci11 at ppb10 bus 11 > ppb11 at pci0 dev 3 function 3 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci12 at ppb11 bus 12 > ppb12 at pci0 dev 3 function 4 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci13 at ppb12 bus 13 > ppb13 at pci0 dev 3 function 5 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci14 at ppb13 bus 14 > ppb14 at pci0 dev 3 function 6 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci15 at ppb14 bus 15 > ppb15 at pci0 dev 3 function 7 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 23 > pci16 at ppb15 bus 16 > ppb16 at pci0 dev 4 function 0 vendor "Red Hat", unknown product 0x000c rev > 0x00: apic 0 int 20 > pci17 at ppb16 bus 17 > pcib0 at pci0 dev 31 function 0 "Intel 82801IB LPC" rev 0x02 > ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.0 > ahci0: port 2: 1.5Gb/s > scsibus2 at ahci0: 32 targets > cd0 at scsibus2 targ 2 lun 0: <QEMU, QEMU DVD-ROM, 2.5+> removable > ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 0 int 16 > iic0 at ichiic0 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0: console keyboard, using wsdisplay0 > pms0 at pckbc0 (aux slot) > wsmouse0 at pms0 mux 0 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > dt: 445 probes > uhidev0 at uhub0 port 5 configuration 1 interface 0 "QEMU QEMU USB Tablet" > rev 2.00/0.00 addr 2 > uhidev0: iclass 3/0 > ums0 at uhidev0: 3 buttons, Z dir > wsmouse1 at ums0 mux 0 > vscsi0 at root > scsibus3 at vscsi0: 256 targets > softraid0 at root > scsibus4 at softraid0: 256 targets > root on sd0a (a8b6cbb5ee0a6472.a) swap on sd0b dump on sd0b > WARNING: / was not properly unmounted > WARNING: R/W mount of /usr/local denied. Filesystem is not clean - run fsck > WARNING: R/W mount of /usr/local denied. Filesystem is not clean - run fsck