Discussion:
ffs2
Friedrich Locke
2014-03-16 20:39:12 UTC
Permalink
Hi folks,

i just want to know how to format a partition in OpenBSD for ffs2 ?

May some one help me ?

Thanks a lot
c***@arcor.de
2014-03-16 20:53:29 UTC
Permalink
Post by Friedrich Locke
i just want to know how to format a partition in OpenBSD for ffs2 ?
You could have a look in the newfs(8) manpage for the option "-O". -O 2 should be FFS2.
Juan Francisco Cantero Hurtado
2014-03-16 21:43:26 UTC
Permalink
Post by c***@arcor.de
Post by Friedrich Locke
i just want to know how to format a partition in OpenBSD for ffs2 ?
You could have a look in the newfs(8) manpage for the option "-O". -O 2 should be FFS2.
But don't use FFS2 for /. OpenBSD can't boot from FFS2.
--
Juan Francisco Cantero Hurtado http://juanfra.info
Nick Holland
2014-03-17 02:42:07 UTC
Permalink
Post by Juan Francisco Cantero Hurtado
Post by c***@arcor.de
Post by Friedrich Locke
i just want to know how to format a partition in OpenBSD for ffs2 ?
You could have a look in the newfs(8) manpage for the option "-O". -O 2 should be FFS2.
But don't use FFS2 for /. OpenBSD can't boot from FFS2.
And in general, don't use -O2 either, as OpenBSD switches from ffs to
ffs2 when you get big enough on its own. Just let it do its magic, the
days of having to twist knobs for file systems should have been over
quite some years ago.

(Exception: when you make a partition small enough to be ffs, but plan
to growfs it later to a bigger size -- growfs works on ffs and ffs2, but
doesn't convert from one to the other. Oh poo. Just realized I forgot
to do this recently... )

Nick.
Stuart Henderson
2014-03-18 01:24:30 UTC
Permalink
Post by Nick Holland
(Exception: when you make a partition small enough to be ffs, but plan
to growfs it later to a bigger size -- growfs works on ffs and ffs2, but
doesn't convert from one to the other. Oh poo. Just realized I forgot
to do this recently... )
But you have another similar system in a carp cluster so you can
rebuild without downtime, right? :)
Nick Holland
2014-03-18 01:40:34 UTC
Permalink
Post by Stuart Henderson
Post by Nick Holland
(Exception: when you make a partition small enough to be ffs, but plan
to growfs it later to a bigger size -- growfs works on ffs and ffs2, but
doesn't convert from one to the other. Oh poo. Just realized I forgot
to do this recently... )
But you have another similar system in a carp cluster so you can
rebuild without downtime, right? :)
Actually, yes. ;)

(I was wondering who would figure out what I was refering to... Stuart
wasn't my first guess, but he was my third. :)

Nick.
Adam Thompson
2014-03-18 02:19:37 UTC
Permalink
OK, obviously I missed something. How do you resize ffs filesystems without a dump/restore step?
-Adam
Post by Nick Holland
Post by Stuart Henderson
Post by Nick Holland
(Exception: when you make a partition small enough to be ffs, but
plan
Post by Stuart Henderson
Post by Nick Holland
to growfs it later to a bigger size -- growfs works on ffs and ffs2,
but
Post by Stuart Henderson
Post by Nick Holland
doesn't convert from one to the other. Oh poo. Just realized I
forgot
Post by Stuart Henderson
Post by Nick Holland
to do this recently... )
But you have another similar system in a carp cluster so you can
rebuild without downtime, right? :)
Actually, yes. ;)
(I was wondering who would figure out what I was refering to... Stuart
wasn't my first guess, but he was my third. :)
Nick.
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
Jean-Philippe Ouellet
2014-03-18 02:34:58 UTC
Permalink
Post by Adam Thompson
OK, obviously I missed something. How do you resize ffs filesystems without a dump/restore step?
-Adam
http://www.openbsd.org/cgi-bin/man.cgi?query=growfs
Nick Holland
2014-03-18 02:38:45 UTC
Permalink
Post by Adam Thompson
OK, obviously I missed something. How do you resize ffs filesystems without a dump/restore step?
-Adam
man growfs

short version:
* check your backup.
* dismount partition in question
* enlarge the disklabel partition by changing the endpoint
* run growfs on that partition
* fsck
* mount
* grin.

It is really easy, very fast.

It isn't a fancy volume management system, but if you design and plan
your systems right, it is more than you probably need. You can only
enlarge partitions, and only by changing the endpoint. I firmly believe
that most uses of "volume managers" is more an excuse to poorly design
systems from the beginning and hide the foolishness later, and pat
yourself on the back for having something else to put on your resume.

Of course, if you have two machines which hold the same data on them in
a CARP pair (as I do), you just rebuild the second (standby) one the way
you want it, copy your data back to it, promote it to master, and do the
same for the other machine.

Nick.
Post by Adam Thompson
Post by Nick Holland
Post by Stuart Henderson
Post by Nick Holland
(Exception: when you make a partition small enough to be ffs, but
plan
Post by Stuart Henderson
Post by Nick Holland
to growfs it later to a bigger size -- growfs works on ffs and ffs2,
but
Post by Stuart Henderson
Post by Nick Holland
doesn't convert from one to the other. Oh poo. Just realized I
forgot
Post by Stuart Henderson
Post by Nick Holland
to do this recently... )
But you have another similar system in a carp cluster so you can
rebuild without downtime, right? :)
Actually, yes. ;)
(I was wondering who would figure out what I was refering to... Stuart
wasn't my first guess, but he was my third. :)
Nick.
Craig R. Skinner
2014-03-18 10:29:49 UTC
Permalink
Post by Adam Thompson
OK, obviously I missed something.
How do you resize ffs filesystems without a dump/restore step?
http://thread.gmane.org/gmane.os.openbsd.misc/207756

Loading...