DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th October 2018
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default Partitioning a large disk

I would like to install OpenBSD-6.4-amd64 on a machine that has a hardware LSI MegaRAID SAS 9266-4i controller with four 2TB SATA disks configured in a RAID-5 array. This storage subsystem presents a virtual disk as a single 5.5TB device - sd0. UEFI boot is possible with this machine.

Two problems:

1) The OpenBSD installer doesn't seem to recognize more than 2TB of total storage space regardless of MBR or GPT partitioning.

2) Is there a way to get more than fourteen usable partitions?

EDIT - with GPT partitioning the entire ~5.5TB are available.

Code:
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      1.0G   83.9M    925M     8%    /
/dev/sd0p      1.2T    112K    1.1T     0%    /home
/dev/sd0n      1.8T   16.0K    1.7T     0%    /srv
/dev/sd0o      1.8T    8.0K    1.7T     0%    /srv/Library
/dev/sd0d     15.8G   12.0K   15.0G     0%    /tmp
/dev/sd0e     63.0G    2.0G   57.9G     3%    /usr
/dev/sd0f     63.0G    218K   59.9G     0%    /usr/local
/dev/sd0g     31.6G    2.0K   30.0G     0%    /usr/ports/pobj
/dev/sd0h     31.6G    4.6M   30.0G     0%    /var
/dev/sd0k     31.6G   14.0K   30.0G     0%    /var/mail
/dev/sd0j      254G    4.0K    241G     0%    /var/postgresql
/dev/sd0l     31.6G    2.0K   30.0G     0%    /var/svn
/dev/sd0m     31.6G    1.3M   30.0G     0%    /var/www

Last edited by hanzer; 28th October 2018 at 01:55 AM.
Reply With Quote
  #2   (View Single Post)  
Old 28th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

On a boot disk, you're effectively limited to 14 partitions because the 15th is your swap space - partition "d".

While you can set up swap to use a filesystem path instead, this is intended for swapping to NFS from a diskless workstation, not for re-using the swap partition for a filesystem, and you may end up with an operational problem. As an example, swapping with a "d" partition may be required in order to fsck(8) your larger partitions.
Reply With Quote
  #3   (View Single Post)  
Old 28th October 2018
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

I've discovered when using a GPT partitioning scheme with OpenBSD, auto-layout creates a small i partition of type MSDOS. I guess this is for the EFI boot data.

To get GPT to work, I started with the auto-layout, deleted each partition except for i, then added partitions for my scheme.

It's a bit amusing that for large disks, fewer usable partitions are available. <smirk>
Reply With Quote
  #4   (View Single Post)  
Old 28th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Quote:
Originally Posted by hanzer View Post
I guess this is for the EFI boot data.
Correct.
Quote:
It's a bit amusing that for large disks, fewer usable partitions are available. <smirk>
Do you know how most OpenBSD developers are born?
Reply With Quote
  #5   (View Single Post)  
Old 30th October 2018
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

Quote:
Originally Posted by jggimi View Post
Correct.Do you know how most OpenBSD developers are born?
It has probably been a few years since I have looked at any of the project's mailing lists but based on what I had seen back then I would guess that many OpenBSD developers are born in a manner similar to that of an Uruk-hai: Saruman has his Orcs dig them out of the ground. https://www.youtube.com/watch?v=LwinMu7-ZrI
Reply With Quote
  #6   (View Single Post)  
Old 30th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

They are self-propelled. Here is a completely hypothetical example:
  1. Hanzer decides this partition limit is an annoyance, and that more than 4 bits should be used to define a partition.
  2. Hanzer digs into disklabel(5), and greps every chunk of the kernel and userland that use it, so that a solution can be devised that will work with the current disklabel and with new ones that use more bits.
  3. Hanzer develops a solution which appears to work.
  4. Hanzer posts his initial diff set to the tech@ mailing list.
  5. Hanzer receives several replies. Some things about the proposed solution are good, some things aren't acceptable as-is. The proposed solution is interesting, and a very good start, but cannot be implemented as designed.
  6. Hanzer posts new diffs, incorporating the advice received with the first failure.
  7. Hanzer receives several suggestions for improvement. Hanzer tries again. And again.
  8. Eventually, Hanzer's diffs are considered good enough for testing, and are tested by one or two developers. A problem is discovered, requiring a fix.
  9. Hanzer resolves the problem and resubmits. Several developers with large disks and a desire to have more partitions test his diffs. No new problems are found.
  10. Hanzer's diffs are committed!
  11. Beers are hoisted!
  12. Later, Hanzer finds something else about the OS that really annoys. Again.
  13. Hanzer posts new diffs to tech@.
  14. Wow! One of the diffs is OKed quickly, without change!
  15. Hanzer continues to post diffs to tech@. Some things are adopted, some aren't.
  16. Eventually, most everything that Hanzer suggests begins to get committed.
  17. Hanzer is adopted by the Project as its newest developer, and given the ability to review and OK others' diffs, and to commit his own when they are OKed by others.
  18. More beers are hoisted!
Reply With Quote
  #7   (View Single Post)  
Old 30th October 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Not enough beer hoisting in your timeline.
Reply With Quote
  #8   (View Single Post)  
Old 30th October 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

It was purely hypothetical. Hanzer's actual development experience may include bottle elevating, mug raising, growler lifting, and keg heaving.
Reply With Quote
  #9   (View Single Post)  
Old 30th October 2018
hanzer's Avatar
hanzer hanzer is offline
Real Name: Adam Jensen
just passing through
 
Join Date: Oct 2013
Location: EST USA
Posts: 314
Default

This is becoming an epic tangent for the thread but Hanzer's interests (<smirk>) are in the application of second-order cybernetics to socio-technical infrastructures in a way that enables the efficient, effective systems engineering of synthetic information systems that host the institutional knowledge and governance of an organization/enterprise, such as a large FOSS project.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitioning gpatrick OpenBSD General 1 27th September 2018 10:46 PM
Verify integrity of disk image file written to disk ? gustaf OpenBSD General 2 14th December 2017 06:34 AM
Partitioning a Backup Disk? Mantazz FreeBSD Installation and Upgrading 2 29th April 2012 07:34 PM
Partitioning for web/mailserver? DrKrall OpenBSD Installation and Upgrading 3 20th November 2009 01:14 PM
Disk geometry for Seagate disk phreud FreeBSD Installation and Upgrading 5 8th November 2008 10:51 PM


All times are GMT. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick