9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] disk/prep partitioning issue
@ 2024-04-17 18:52 Marco Feichtinger
  2024-04-18  7:14 ` Richard Miller
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Feichtinger @ 2024-04-17 18:52 UTC (permalink / raw)
  To: 9fans

I have a behaviour from disk/prep I do not understand.
I want to setup a partition table on a venti server as follows.

%disk/prep /dev/sdE0/plan9
        empty                             0 204800              (204800 sectors, 100.00 MB)
        nvram                   204800 204801           (1 sectors, 512 B )
        empty                   204801 204816           (15 sectors, 7.50 KB)
        arenas0                 204816 209920016                (209715200 sectors, 100.00 GB)
        isect0            209920016 220405776           (10485760   sectors, 5.00 GB)
        arenas1           220405776 430120976           (209715200 sectors, 100.00 GB)
        isect1            430120976 440606736           (10485760   sectors, 5.00 GB)
        arenas2           440606736 650321936           (209715200 sectors, 100.00 GB)
        isect2            650321936 660807696           (10485760   sectors, 5.00 GB)
        arenas3           660807696 870522896           (209715200 sectors, 100.00 GB)
        isect3            870522896 881008656           (10485760   sectors, 5.00 GB)
        arenas4           881008656 1090723856  (209715200 sectors, 100.00 GB)
        isect4          1090723856 1101209616   10485760   sectors,  5.00 GB)
        arenas5         1101209616 1310924816   (209715200 sectors, 100.00 GB)
        isect5          1310924816 1321410576   (10485760   sectors,  5.00 GB)
        arenas6         1321410576 1531125776   (209715200 sectors, 100.00 GB)
        isect6          1531125776 1541611536   (10485760   sectors, 5.00 GB)
        arenas7         1541611536 1751326736   (209715200 sectors, 100.00 GB)
        isect7          1751326736 1761812496   (10485760   sectors, 5.00 GB)
        bloom           1761812496 1762861072   (1048576     sectors, 512.00 MB)
        empty           1762861072 1875379842   (112518770 sectors, 53.65 GB)

Now if I write the partition to disk, and exit the prep,
the bloom, isect7 and arenas7 partition are gone.

If I prep the disk again it shows following

%disk/prep /dev/sdE0/plan9
        empty                             0 204800              (204800 sectors, 100.00 MB)
        nvram                   204800 204801           (1 sectors, 512 B )
        empty                   204801 204816           (15 sectors, 7.50 KB)
        arenas0                 204816 209920016                (209715200 sectors, 100.00 GB)
        isect0            209920016 220405776           (10485760   sectors, 5.00 GB)
        arenas1           220405776 430120976           (209715200 sectors, 100.00 GB)
        isect1            430120976 440606736           (10485760   sectors, 5.00 GB)
        arenas2           440606736 650321936           (209715200 sectors, 100.00 GB)
        isect2            650321936 660807696           (10485760   sectors, 5.00 GB)
        arenas3           660807696 870522896           (209715200 sectors, 100.00 GB)
        isect3            870522896 881008656           (10485760   sectors, 5.00 GB)
        arenas4           881008656 1090723856  (209715200 sectors, 100.00 GB)
        isect4          1090723856 1101209616   (10485760   sectors, 5.00 GB)
        arenas5         1101209616 1310924816   (209715200 sectors, 100.00 GB)
        isect5          1310924816 1321410576   (10485760   sectors, 5.00 GB)
        arenas6         1321410576 1531125776   (209715200 sectors, 100.00 GB)
        isect6          1531125776 1541611536   (10485760   sectors, 5.00 GB)
        empty           1541611536 1875379842   (333768306 sectors, 159.15 GB)

What's causing that?

-marco


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-Me8793ca87b6411c7971f8edb
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] disk/prep partitioning issue
  2024-04-17 18:52 [9fans] disk/prep partitioning issue Marco Feichtinger
@ 2024-04-18  7:14 ` Richard Miller
  2024-04-18  7:59   ` Richard Miller
  2024-04-18  9:29   ` [9fans] disk/prep partitioning issue Marco Feichtinger
  0 siblings, 2 replies; 8+ messages in thread
From: Richard Miller @ 2024-04-18  7:14 UTC (permalink / raw)
  To: 9fans

> ...
> the bloom, isect7 and arenas7 partition are gone.
> ...
> What's causing that?

The partition table has to fit in one disk sector. Has yours
got bigger than 512 bytes? You might have to split it up
into two fdisk partitions, or shorten some names.

Try 'disk/prep -p /dev/sdE0/plan9 | wc -c'


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-Mffe2a9371294cdca649ead2f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] disk/prep partitioning issue
  2024-04-18  7:14 ` Richard Miller
@ 2024-04-18  7:59   ` Richard Miller
  2024-04-20  7:19     ` [9fans] boot order on separate venti/fossil machines Marco Feichtinger
  2024-04-18  9:29   ` [9fans] disk/prep partitioning issue Marco Feichtinger
  1 sibling, 1 reply; 8+ messages in thread
From: Richard Miller @ 2024-04-18  7:59 UTC (permalink / raw)
  To: 9fans

I said:
> You might have to split it up
> into two fdisk partitions, or shorten some names.

Actually, shortening names isn't likely to help much.

If you're setting up a new venti, not expanding an
existing one, could you make the arena partitions
fewer and larger? The original idea behind limiting
arena size was so that they could be conveniently
backed up onto optical media, but I suspect nobody
does that any more.  Nowadays large arenas can be
backed up onto a big USB flash drive, or onto another
venti server.


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-Ma377c9908c8c5533e3ccca0b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] disk/prep partitioning issue
  2024-04-18  7:14 ` Richard Miller
  2024-04-18  7:59   ` Richard Miller
@ 2024-04-18  9:29   ` Marco Feichtinger
  2024-04-18 12:17     ` Richard Miller
  1 sibling, 1 reply; 8+ messages in thread
From: Marco Feichtinger @ 2024-04-18  9:29 UTC (permalink / raw)
  To: 9fans

> Try 'disk/prep -p /dev/sdE0/plan9 | wc -c'

Tried it; output:
        syntax error reading partition
                488

So my partition count is too much, correct?


> The original idea behind limiting
> arena size was so that they could be conveniently
> backed up onto optical media, but I suspect nobody
> does that any more.  

That was the plan.
Now I might change that.

-marco


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-M87035549b62948583d85e24f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] disk/prep partitioning issue
  2024-04-18  9:29   ` [9fans] disk/prep partitioning issue Marco Feichtinger
@ 2024-04-18 12:17     ` Richard Miller
  2024-04-18 12:21       ` Marco Feichtinger
  0 siblings, 1 reply; 8+ messages in thread
From: Richard Miller @ 2024-04-18 12:17 UTC (permalink / raw)
  To: 9fans

> Tried it; output:
>         syntax error reading partition
>                 488
> 
> So my partition count is too much, correct?

Correct. The last line has been truncated at the end of the block
so it has no newline, which is a syntax error.

It's ok to use fdisk to create more than one plan9 partition on a disk.
They'll appear as /dev/sd*/plan9, /dev/sd*/plan9.1 etc. Then you can
use prep to put some of your arenas on each plan9 partition, to avoid
overflowing the partition tables.


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-M2591dfe674a68c1b200aeca1
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] disk/prep partitioning issue
  2024-04-18 12:17     ` Richard Miller
@ 2024-04-18 12:21       ` Marco Feichtinger
  0 siblings, 0 replies; 8+ messages in thread
From: Marco Feichtinger @ 2024-04-18 12:21 UTC (permalink / raw)
  To: 9fans

Okey, thanks

-marco


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T798ae549700d1ad5-Mdd2b243c924cccbf1b83646c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [9fans] boot order on separate venti/fossil machines
  2024-04-18  7:59   ` Richard Miller
@ 2024-04-20  7:19     ` Marco Feichtinger
  2024-04-21 18:14       ` Charles Forsyth
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Feichtinger @ 2024-04-20  7:19 UTC (permalink / raw)
  To: 9fans

I am curios.
In an environment where you have separate machines for fossil and venti,
do you boot fossil first, and let venti pxe boot over it,
or do you boot venti first, with a small, local, fossil partition?

-marco

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tc731bf1d8c36e0a4-M56c266fc875febb66b5af331
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] boot order on separate venti/fossil machines
  2024-04-20  7:19     ` [9fans] boot order on separate venti/fossil machines Marco Feichtinger
@ 2024-04-21 18:14       ` Charles Forsyth
  0 siblings, 0 replies; 8+ messages in thread
From: Charles Forsyth @ 2024-04-21 18:14 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]

Fossil once attached to venti can't serve without it, so venti must arrive
first.
My machine is fossil+venti, so not quite what you asked about, but the
mechanism would
be similar. The server boots the kernel from 9fat. (If I wanted to pxe boot
the venti,
I could push the boot server problem back to a boot server, perhaps the
auth server.)
The kernel uses configuration pcfs, which contains enough in bootdir to
start and run fossil,
which checks $venti (set in plan9.ini) to see if it should run that first,
if local. If venti isn't
local, it sets up the network so fossil can dial it.
/sys/src/9/boot/local.c organises that. I don't think a configuration is
provided
that starts just venti, but some of the pc* configurations in /sys/src/9/pc
hint at ways to
make various custom systems.

(9front's /sys/src/9/boot use rc scripts, which is much easier to change,
but it doesn't provide fossil at all.)

On Sat, 20 Apr 2024 at 08:21, Marco Feichtinger <marco@germteig.com> wrote:

> I am curios.
> In an environment where you have separate machines for fossil and venti,
> do you boot fossil first, and let venti pxe boot over it,
> or do you boot venti first, with a small, local, fossil partition?
> 
> -marco

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tc731bf1d8c36e0a4-Md17bb5ecf553fcbfb1b3eae9
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2861 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-04-21 18:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-17 18:52 [9fans] disk/prep partitioning issue Marco Feichtinger
2024-04-18  7:14 ` Richard Miller
2024-04-18  7:59   ` Richard Miller
2024-04-20  7:19     ` [9fans] boot order on separate venti/fossil machines Marco Feichtinger
2024-04-21 18:14       ` Charles Forsyth
2024-04-18  9:29   ` [9fans] disk/prep partitioning issue Marco Feichtinger
2024-04-18 12:17     ` Richard Miller
2024-04-18 12:21       ` Marco Feichtinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).