[Gluster-infra] Netbsd folders filling up
Emmanuel Dreyfus
manu at netbsd.org
Mon Jul 18 09:59:20 UTC 2016
On Mon, Jul 18, 2016 at 09:37:19AM +0000, Emmanuel Dreyfus wrote:
> On Mon, Jul 18, 2016 at 10:35:45AM +0530, Nigel Babu wrote:
> > Would it be problematic if I added 20GB of block storage per machine for the
> > /build, /home/jenkins and /archives folder? That should easily sort out our
> > disk space troubles.
>
> No, but first check that current image does not have some spare space
> beyond the / partition
That is the case: diskabel xbd0 says
# size offset fstype [fsize bsize cpg/sgs]
a: 19922881 63 4.2BSD 2048 16384 0 # (Cyl. 0*- 9727)
b: 4194304 19922944 swap # (Cyl. 9728 - 11775)
c: 20971457 63 unused 0 0 # (Cyl. 0*- 10239)
d: 83886080 0 unused 0 0 # (Cyl. 0 - 40959)
e: 8388608 24117248 4.2BSD 2048 16384 0 # (Cyl. 11776 - 15871)
NetBSD has some historic curiosity: c is the NetBSD partition in MBR, d is
the whole disk. This means you have 51380224 sectors of 512 bytes left after
partiton e: 24 GB.
Run disklabel -e xbd0 and add a f line:
f: 51380161 32505856 4.2BSD 2048 16384 0
While there it will not hurt to resize c (for the sake of clarity)
c: 83886017 63 unused 0 0
And still while there, fdisk -iau xbd0 to ajust NetBSD partiton size in MBR.
Then you can
newfs /dev/rxbd0f
add /dev/xbd0f in :etc/fstab
mount /dev/xbd0f
--
Emmanuel Dreyfus
manu at netbsd.org
More information about the Gluster-infra
mailing list