On 2024-10-11, Amelia A Lewis <amyzing@talsever.com> wrote:
> /dev/sd1a 1005M 143M 812M 15% 2160 153742 2% /
> /dev/sd1h 149G 2.8G 139G 2% 1970 9868364 1%
> /home
> /dev/sd1p 181G 1.8G 170G 2% 72 11959222 1%
> /pub
> /dev/sd1d 3.9G 10.0K 3.7G 1% 6 545656 1% /tmp
> /dev/sd1f 2.0G 2.0G -87.0M 105% 18324 267498 7% /usr
> /dev/sd1g 1005M 464M 491M 49% 9628 146274 7%
> /usr/X11R6
> /dev/sd1l 19.7G 587M 18.1G 4% 13812 2636554 1%
> /usr/local
> /dev/sd1o 3.9G 2.0K 3.7G 1% 1 545661 1%
> /usr/obj
> /dev/sd1j 2.0G 527M 1.4G 28% 191282 94540 67%
> /usr/ports
> /dev/sd1i 2.0G 1.1G 743M 62% 118844 166978 42%
> /usr/src
> /dev/sd1m 2.0G 653M 1.2G 35% 32969 252853 12%
> /usr/xenocara
> /dev/sd1n 3.9G 2.0K 3.7G 1% 1 545661 1%
> /usr/xobj
> /dev/sd1e 58.6G 21.0M 55.7G 1% 1169 7845997 1% /var
>
> Presumably I need console access, since sshd isn't running and I don't
> have an exploit to get a shell by breaking dovecot or nsd. But what
> then? Slice k is available on /dev/sd1, and either there's free space
> (it's prolly 500GB, and slice b is prolly 32GB), or if not then the
> contents of slice p (/pub) can be moved to slice h (/home) and the
> space now allocated to p can be reduced by circa 6G to allow creation
> of a /usr that's more appropriately sized.
Assuming they're next to each other on disk, I'd probably remove sd1m
and sd1n and create and newfs a single new partition in the space. 6GB is
probably enough for /usr for a while. (Or if sd1o is also adjacent, there's
another possible 4G). Edit fstab to put /usr there - either comment
out the existing /usr or put it on /mnt or somewhere. Basic knowledge
of ed(1) is helpful here. Reboot onto 7.6 bsd.rd and do an upgrade
install to 7.6 again to install missing files from all sets.
Even if not adjacent, there's still a choice of ~4GB partitiona to
requisition, but 6GB gives a much more acceptable headroom.
(You can probably fix it in the existing 2GB by removing old libraries
and doing an upgrade install, but that's very much a short-term fix).
I doubt you have anything that's not part of base in /usr but if you do,
recover it from the old partition.
> Is there a way to get access remotely?
Not without external changes (remote KVM, management card, etc) unless
you've already arranged it.
> I'm too verbose. Short version: a) with sshd not working and no console
> access, is there a way to work on it, or is console access required? b)
some sort of console access needed.
> assuming (prolly console) access, can the current contents of /usr be
> copied to a new /usr slice, and the rest of the upgrade (pkg_add -u)
> performed, or is a complete/clean install required for stability?
/usr will almost certainly be incomplete, but I'd say there are ways to
fix this (without creating instability) without a reinstall.
--
Please keep replies on the mailing list.
No comments:
Post a Comment