|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
resize root partition of my server
Hi,
my root size has a strange partition layout at delivery. The 1GB HDD has 1 partition with 2 slice. Code:
# size offset fstype [fsize bsize cpg] a: 10485760 63 4.2BSD 2048 16384 1 # / b: 2097585 10485823 swap # none c: 1953525168 0 unused Can please someone give me a hint or how to? Thx for your help, Tzzzzzzzz |
|
|||
growfs(8) is usually used for this sort of thing. But it only works on unmounted partitions.
But I'm more inclined to suggest that if this really is the root you just reinstall the OS and do the right thing from the get-go (what arch is this that you only have a 1 GB HDD?). |
|
||||
Posting again to add some additional background for my comment regarding the various BIOS boot sector location limits. This is an excerpt from OpenBSD FAQ 4.8: How should I partition my disk?
Code:
* Size: Many machines have limits on the area of a disk where the boot ROM can load the kernel from. In some cases, this limit may be very small (504M for an older 486), in other cases, a much larger limit (for example, 2G, 8G, or 128G on i386 systems). As the kernel can end up anywhere within the root partition, the entire root partition should be within this area. For more details, see this section. A good guideline might be to keep your / partition completely below 2G, unless you know your platform (and particular machine) can handle more (or less) than that. |
|
||||
Correction:
Boot sector limits can affect other architectures, not just those with MBRs (amd64, armish, armv7, i386, macppc, zaurus). Both the bootloader and the kernel must reside within the BIOS sector addressing limit, as the kernel is read by the bootloader using BIOS I/O services. |
|
|||
Sorry, my mistake: of course the size is 1000GB (about 1TB).
Ok the recommendation is to set up the OS new and to resize the partitions while reinstalling. But where to start now. It is root server and i have just vKVM and Rescue Mode (Linux/FreeBSD) to choose from. Can you give me please a starting point. Thx, Tzzzzzzzz |
|
||||
Quote:
Based on what little we know -- that there is a mostly empty disk drive available to you -- you should be able to add additional partitions. The "a" partition is your root partition, "b" is your swap partition, and "c" is reserved as the full drive. You can add 13 more partitions, up to "p". The disklabel(8) program is used to add more partitions -- and they can be set to mount automatically in fstab(5). For example, let us pretend that you need a 100GB /var for a database. You could create a new 100GB partition with some new disklabel letter, such as "d", format it with newfs(8), mount(8) it temporarily, use mv(1) or tar(1) or pax(1) or dump(8) / restore(8) to migrate all of /var into the new partition, then use $EDITOR to add the new partiion to /etc/fstab as mount point /var, and reboot. How you proceed is up to you, whether you create new mount points or move data around. All of FAQ 14 will be helpful, and FAQ 14.4 in particular can be used as a guide, with the understanding that it covers adding partiitons on new drives, and you would be adding partitions to the existing drive. My apologies for any confusion. My initial assumption here, due to lack of other information, was that you had control of your hardware. My understanding now is that you do not. Last edited by jggimi; 21st May 2014 at 10:18 PM. Reason: clarity, typos. As usual. |
|
|||
Ok. That was exactly question. I thought that the best way would be to resize the root slice )to the biggest possible size. But perhaps it is better to use different mounting points.
What do you think about this? Code:
a: 5GB / b: 1GB SWAP c: 1000GB unused d: 20GB /usr e: 10GB /tmp f: 10GB /var h: 850GB /home |
|
|||
Quote:
dmesg(8) output can also help you determine the amount of addressable RAM. |
|
|||
This looks like something the autoformatter would do. Of course, you haven't told us what your use-case for the machine looks like. That would get you better answers.
|
|
|||
Just small mail server (with mySQL-database for postfix) and private ftp server (backup). Normally i use encrypt to create a virtual drive and mount it into the ftp server directory.
|
|
||||
Quote:
For data at rest, OpenBSD has two encryption technologies for filesystems. There is the CRYPTO discipline of softraid(4), which is recommended for general use, and the older encryption capability of vnconfig(8), which may be useful in some circumstances. Last edited by jggimi; 21st May 2014 at 11:08 PM. Reason: clarity again. And two typos. |
|
||||
Quote:
|
|
||||
First:
I don't have any opinion about the sizes you've selected, since storage needs are entirely dependent upon the use of the system. For example, that 850GB /home partition may sit nearly empty and unused. Or, the 850GB may not be enough. It depends what you plan to use the partition for. Or any of the partitions. Keep in mind: you do not need to pre-allocate space if you do not yet know what your needs are.
Your service provider has given you a 5GB system in a single partition., apparently pre-configured. That may or may not be enough space for your intended "system" even if application data is stored in other, new partitions. Talk to them.
Third: I recommend you install this OS on a hardware platform you control yourself. One that you can touch and feel. Where you can practice, safely make administrative mistakes, and learn. A remote platform out of your operational control is not conducive to learning. Last edited by jggimi; 21st May 2014 at 10:53 PM. Reason: clarity. again. (sigh.) |
|
|||
Partitions
Quote:
jggimi's Third quote is especially useful for newbies. Used industrial hardware is cheap. In my area you can pick up an IBM or HP server for under $100. These servers offer speeds of 1 to 3 ghz, hot swap scsi hd's, dual pwr supplies, multiple nic cards, reasonable monitor resolition, ps2 or usb mice and keyboards, rack mounted, hardware raid, expandable memory, etc. They are designed for web hosting, data transfer, sftp, ssh, from the gitgo, and their performance is designed for continuous industrial use. The majority of these servers are very compatible with the BSD and Linux world. (most are just not leading edge enough for those who care) I currently run several IBM series 330e's (relatively quiet and eff), for web service and data storage. Oscasionally I run up to 4 HPDL series 360 and 380's, but they like the amps and produce alot of noise. As a newbie I can't imagine the amount of time I would have spent if I had to deal with hd being physically located/hosted elsewhere. Having hands on capability encourages experimentation! The results, although not without pain sometimes, do lend themselves to being characterized as learning. Simply re-install the OS, and try something different.......... "You do back up your data, right?" Security,,,,,,having physical access control will indeed enhance it. Too many references to list here..... Although it may be a necessary step now, communicating with a hosting co, takes away time and resourses that could be applied to becomming more proficient with OpenBSD Last edited by frcc; 2nd June 2014 at 11:29 PM. |
|
||||
Ted Unangst (tedu@) has additional information regarding his patch to vnconfig/mount_vnd:
Quote:
Last edited by jggimi; 2nd June 2014 at 08:57 PM. Reason: typo |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FreeBSD won't boot after mounting root partition on OpenBSD | Jtf | FreeBSD Installation and Upgrading | 12 | 19th March 2014 04:43 AM |
add another partition? | amandus | FreeBSD General | 2 | 11th June 2013 02:51 PM |
China censorship leaks outside Great Firewall via DNS root server | J65nko | News | 0 | 25th March 2010 08:23 PM |
tmux disable automatic resize | Carpetsmoker | General software and network | 7 | 25th June 2009 10:54 PM |
Sun Java System Web Server - Active Server Pages (yes ASP) | hopla | FreeBSD General | 0 | 26th September 2008 08:22 AM |