Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:07 AM
Leon
 
Posts: n/a
Default Newbie seeking partitioning suggestions

I'm pretty new to Linux and am looking for thoughts on partitions;
which to have and what sizes.

The machine in question will have two relatively large SCSI disks
(Hardware RAID not available), will be dedicated exclusively to Linux
and will have no more than 3 users (excl Root). This is a "home"
system, i.e. no server functionality like web services, mail etc will
be set up. Obviously TCP/IP (PPP) to speak to the external world.

The two primary things I plan on using it for is Video Editing and
playing around with Kernel compilations.

I plan on setting up a dual Linux boot, i.e. a vanilla distro (Suse
8.2) and my dev/play Linux boot.

I'd like to split out /, /usr, /home, /var and swap.

My thoughts being something along these lines:

A 256MB partition at the start of each disk for each of the / folders
(Dual Linux boot assuming one will include the MBR)

Followed by a 256MB partition on each disk for the swap setup to run
in parallel. (System has 256MB RAM)

Then /usr, /home & /var on separate partitions with ? Sizes. ... don't
really know which sizes to set here. Also would like to share these
between to two Linux versions but not sure how to go about it or even
if it is practical. Will also need a DVD/CD image partition.

Finally I plan on combining all the remaining disk space on the two
drives into a RAID 0 config for storing and manipulating the raw video
data. This data will be transient so "no" worries about reliability.

Thoughts very much appreciated

Thanks
Leon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:07 AM
Jeroen Geilman
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Leon wrote:

> I'm pretty new to Linux and am looking for thoughts on partitions;
> which to have and what sizes.
>
> The machine in question will have two relatively large SCSI disks


HOW large.

How else would anyone be able to give you suggestions ?

> (Hardware RAID not available), will be dedicated exclusively to Linux
> and will have no more than 3 users (excl Root). This is a "home"
> system, i.e. no server functionality like web services, mail etc will
> be set up. Obviously TCP/IP (PPP) to speak to the external world.
>
> The two primary things I plan on using it for is Video Editing and
> playing around with Kernel compilations.
>
> I plan on setting up a dual Linux boot, i.e. a vanilla distro (Suse
> 8.2) and my dev/play Linux boot.


Do you mean 2 *separate* installations ?

> I'd like to split out /, /usr, /home, /var and swap.


If you intend to "play around with compiling kernels", as you put it, it
pays to make a separate /boot partition, not too small (100MB+), and maybe
even a dedicated /usr/src partition for all the sources.
Depends on exactly what you want to do with it.

> My thoughts being something along these lines:
>
> A 256MB partition at the start of each disk for each of the / folders
> (Dual Linux boot assuming one will include the MBR)


Not sure what you mean here, but 256 is either too small or unnecessary.

> Followed by a 256MB partition on each disk for the swap setup to run
> in parallel. (System has 256MB RAM)


If you are reasonably certain that there will be little swapping, it pays to
put the swap on ONE drive - since the other will presumably hold streaming
video ?

Having 2 swap partitions only increases the likelyhood that that partition
will be accessed when what you want is as LITTLE drive activity as possible
- outside your video data.

> Then /usr, /home & /var on separate partitions with ? Sizes. ... don't
> really know which sizes to set here.


Neither do we, actually...

> Also would like to share these between to two Linux versions


What do you mean ? Do you mean USE only one /usr and /var for 2 separate
installations ? "Inadvisable" is... an understatement.

You might be able to pull it off, if both installations used the same glibc
and stuff, but since there are a zillion options this is almost impossible.

Only one shared /home partition is possible...when the users have the exact
same UIDs in both installations.(read: also inadvisable)

> but not sure how to go about it or even if it is practical.


Again, depends on what you want to do with it.

> Will also need a DVD/CD image partition.


No you will not - you just need enough *space* for images.

> Finally I plan on combining all the remaining disk space on the two
> drives into a RAID 0 config for storing and manipulating the raw video
> data. This data will be transient so "no" worries about reliability.


Yes, but..since at least 3 other partitions will always be mounted on one or
both of these drives, using software RAID in this fashion is worse than
useless...

Use one drive for Linux and the other in its ENTIRETY for video.

Use a / partition to hold all of your stuff, you can make a separate /usr if
you want; make a /home and mount all data partitions under it somewhere.

(or use /mnt - universally the most used place)

All these separate partitions only start to pay off when the following
conditions hold true:

- You can put almost every partition on its own separate drive, and
- Partitions that share a drive are never accessed simultaneously.

> Thoughts very much appreciated


There they were, then.

One final note:

When you want to improve the overall speed with a setup as you've described
it, put both drives in a RAID-0 configuration and partition from that.

That will give you the video speed you want, and the system may not be as
safe as when run from separate drives, but not so's you'd notice.

(Really - the only risk you take is that a hardware failure is twice as
likely with two drives, and in RAID-0 this means bye-bye...)

--
Jeroen Geilman

All your bits are belong to us.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:07 AM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Jeroen Geilman wrote:
> Leon wrote:
>
>
>>I'm pretty new to Linux and am looking for thoughts on partitions;
>>which to have and what sizes.
>>
>>The machine in question will have two relatively large SCSI disks

>
>
> HOW large.
>
> How else would anyone be able to give you suggestions ?
>
>
>>(Hardware RAID not available), will be dedicated exclusively to Linux
>>and will have no more than 3 users (excl Root). This is a "home"
>>system, i.e. no server functionality like web services, mail etc will
>>be set up. Obviously TCP/IP (PPP) to speak to the external world.
>>
>>The two primary things I plan on using it for is Video Editing and
>>playing around with Kernel compilations.
>>
>>I plan on setting up a dual Linux boot, i.e. a vanilla distro (Suse
>>8.2) and my dev/play Linux boot.

>
>
> Do you mean 2 *separate* installations ?
>
>
>>I'd like to split out /, /usr, /home, /var and swap.

>
>
> If you intend to "play around with compiling kernels", as you put it, it
> pays to make a separate /boot partition, not too small (100MB+), and maybe
> even a dedicated /usr/src partition for all the sources.
> Depends on exactly what you want to do with it.


I'd actually recommend against splitting up this much. Recompiling
kernel RPM's, for example, creates many meg of files in /usr/src/redhat,
and /var/tmp, compiling modified or patched from raw kernel-source
RPM's, installing different versions of mailman puts things in
/usr/local, /home, or /var depending on whose defaults you use, putting
in various commercial packages or games wind up in /opt, etc., etc.

Also, unless you're stuck with LILO, grub handles a /boot directory that
lives on your main boot disk for any reasonable size, unlike the old
1023 cylinder limit of plain LILO. (1023 cylinder * 255 sectors * 63
heads * 512 byte blocks gives roughly 8 Gigabytes, which was the old
limit of the / partition with /boot on it.)

Do you need to split off /var for backup or performance, for example to
get /var/spool and /var/mailman and /var/www mounted with the "noatime"
option? Then split off /var. Do you need smaller partitions because
you're running into the 600 Gigabyte 65,535 cylinder limit? Fine, split
things. But don't split things off just for laughs: there's really no
significant performance benefit anymore from it.


>>My thoughts being something along these lines:
>>
>>A 256MB partition at the start of each disk for each of the / folders
>>(Dual Linux boot assuming one will include the MBR)

>
>
> Not sure what you mean here, but 256 is either too small or unnecessary.


Agreed. Unless you're over-partitioning, / should be *MUCH* larger and
include /usr on a modern Linux.

>>Followed by a 256MB partition on each disk for the swap setup to run
>>in parallel. (System has 256MB RAM)


Seems reasonable. You may need to expand this later, but that's fairly
easy, and you can create swapfiles that perform nearly as well in a pinch.

> If you are reasonably certain that there will be little swapping, it pays to
> put the swap on ONE drive - since the other will presumably hold streaming
> video ?


If he's doing big software compiles or multiple streaming video
applications, that 256 Meg of RAM will run short pretty fast.

> Having 2 swap partitions only increases the likelyhood that that partition
> will be accessed when what you want is as LITTLE drive activity as possible
> - outside your video data.


??? If he's got one drive dedicated to video, then it's not access to
the *partition*, it's additional access to the *drive* for any reason
that will reduce streaming bandwidth. Unfortunately, if the drives are
fairly big and the traffic large, he's probably planning to dump the
files onto both drives and possibly software RAID them. In that case,
symmetric swap can in help by reducing average seek time.


>>Then /usr, /home & /var on separate partitions with ? Sizes. ... don't
>>really know which sizes to set here.

>
>
> Neither do we, actually...
>
>
>>Also would like to share these between to two Linux versions

>
>
> What do you mean ? Do you mean USE only one /usr and /var for 2 separate
> installations ? "Inadvisable" is... an understatement.
>
> You might be able to pull it off, if both installations used the same glibc
> and stuff, but since there are a zillion options this is almost impossible.


Unless they're *VERY* closely related Linux versions, such as a test OS
you can chroot to and run software, then I agree completely.

> Only one shared /home partition is possible...when the users have the exact
> same UIDs in both installations.(read: also inadvisable)


And the shell/X/other configs are similar enough. I've had serious pain
when people wrote terrible, terrible .bashrc files with amazingly bad
assumptions, then expected them to run under another OS seamlessly, and
wanted me to fix the OS rather than fix their config scripts. (Hint:
*never* put "." at the beginning of your PATH...)

>>Will also need a DVD/CD image partition.

>
>
> No you will not - you just need enough *space* for images.


True. The modern verson of xcdroast no longer requires a dedicated
partition, it just assembles cd images in a directory.

>>Finally I plan on combining all the remaining disk space on the two
>>drives into a RAID 0 config for storing and manipulating the raw video
>>data. This data will be transient so "no" worries about reliability.

>
>
> Yes, but..since at least 3 other partitions will always be mounted on one or
> both of these drives, using software RAID in this fashion is worse than
> useless...
>
> Use one drive for Linux and the other in its ENTIRETY for video.


Not always feasible or appropriate. Trust me on this one. If he's got 40
Gig drives and needs at least 40 Gig for his archived video, your
suggestion ain't gonna work.

> All these separate partitions only start to pay off when the following
> conditions hold true:
>
> - You can put almost every partition on its own separate drive, and
> - Partitions that share a drive are never accessed simultaneously.


Or your mounting parameters are significantly different for performance
reasons. Read-only for archives, noatime for large caches of small
files, etc.

> There they were, then.
>
> One final note:
>
> When you want to improve the overall speed with a setup as you've described
> it, put both drives in a RAID-0 configuration and partition from that.


This only works if you have hardware RAID. Otherwise, you must partition
at least one drive and put at least /boot on it.

> That will give you the video speed you want, and the system may not be as
> safe as when run from separate drives, but not so's you'd notice.
>
> (Really - the only risk you take is that a hardware failure is twice as
> likely with two drives, and in RAID-0 this means bye-bye...)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:08 AM
Stefan Patric
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Leon on Friday 26 September 2003 08:15 wrote:

> I'm pretty new to Linux and am looking for thoughts on partitions;
> which to have and what sizes.
>
> The machine in question will have two relatively large SCSI disks
> (Hardware RAID not available), will be dedicated exclusively to
> Linux and will have no more than 3 users (excl Root). This is a
> "home" system, i.e. no server functionality like web services, mail
> etc will be set up. Obviously TCP/IP (PPP) to speak to the external
> world.
>
> The two primary things I plan on using it for is Video Editing and
> playing around with Kernel compilations.
>
> I plan on setting up a dual Linux boot, i.e. a vanilla distro (Suse
> 8.2) and my dev/play Linux boot.
>
> I'd like to split out /, /usr, /home, /var and swap.
>
> My thoughts being something along these lines:
>
> A 256MB partition at the start of each disk for each of the /
> folders (Dual Linux boot assuming one will include the MBR)
>
> Followed by a 256MB partition on each disk for the swap setup to run
> in parallel. (System has 256MB RAM)
>
> Then /usr, /home & /var on separate partitions with ? Sizes. ...
> don't really know which sizes to set here. Also would like to share
> these between to two Linux versions but not sure how to go about it
> or even if it is practical. Will also need a DVD/CD image partition.
>
> Finally I plan on combining all the remaining disk space on the two
> drives into a RAID 0 config for storing and manipulating the raw
> video data. This data will be transient so "no" worries about
> reliability.


If I understand correctly, basically, you want to put your "main"
distro on one drive, and your "play" distro with numerous custom
kernels on the other, each distro with their own swap, /usr, etc.
Correct? You don't have to do this. Linux can be booted using any
number of custom compiled kernels, that are stored along with support
files in /boot, which can either be a directory in / or its own
partition. Here's the partitioning scheme I'd recommend.

On the first HD:

/boot -- 30 - 50 MB, depends on how many kernels.
/ -- 300MB or more, depends on other factors. See /opt, /var below.
/usr -- 2.5 - 5 GB, depends on how many apps and future expansion.
/opt -- optional, gets it out of /. Or you can symbolically link it
to a directory anywhere. I put my /opt in /usr. I like to
have all applications together in the same place, but that's
just me.
/var -- 100 - 256MB -- more (1GB) if you symbolic link /tmp there to
get it out of /, which is what I do.
/home -- the balance of the drive.

On drive 2:

/swap -- 256MB is good enough. I have a system with 256MB RAM and a
256MB swap, and the swap is rarely used and, then, only 10 to 30K (!)
of it, even when compiling. Also, by putting swap on another drive,
you'll eliminate head thrashing when the main drive needs to be read
or written to, and swap needs to be used at the same time. You'll
also improve read/write performance in those situations, too.

The balance of the drive, I'd partition to hold all your video
editing files. You can "mount" those partitions to directories in
your personal /home directory for easy access, and set the
"permission" on the partitions, so no one, except you and root can
access them.

FWIW, there are any number of partitioning schemes that will work. How
you do it really depends on your criteria and what works for you.
When I first got into Linux -- about 3 years ago -- I repartitioned
my hard drive, including complete, clean reinstalls everytime --
about 6 times in a 2 week period before I got something I was happy
with.

Of course, you could always use Logical Volume Manager (LVM), which
enables you to change/adjust partition sizes at will without
destroying data. 'man lvm' for a general overview. It's basically a
software RAID setup. LVM also makes it easy to add or subtract whole
hard drives from the pool of available space.

Good Luck.

--
Stefan Patric
tootek2@yahoo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:10 AM
Leon
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Apologies for the delay in replying, but have been away for the
weekend.

Thank you for the great advice. It seems that much of the partitioning
information available is a little outdated? (Too many partitions?)

This information may be a little late, but in case you're still out
there.

The disks are 36GB each.

I was planning on doing two seperate installs, but after Stefan's
comments think I'll do my Kernel compilations in the main distro, i.e.
multi-boot on the same 'partition'.

I am convinced that performance would be best by having one disk
dedicated to video, but on the other hand I suppose it will be mostly
reading or writing depending on if I'm copying from/to tape...

Think, I'll use Grub instead of Lilo.

A general question re software raid 0 (which is the option I have). I
wanted to use as much of the diskspace available for video, i.e. after
installing Linux, combine all the remaining space into one logical
mount.

This obviously isn't an ideal set-up for Video editing, but it the
hardware I have ...

Thanks
Leon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:10 AM
Peter T. Breuer
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Leon <leon.kotze@allenovery.com> wrote:
> Thank you for the great advice. It seems that much of the partitioning
> information available is a little outdated? (Too many partitions?)


You can never have too many partitions (unless you plan on putting /etc
on its own partition)! Please read the partition HOWTO. You don't know
what you are talking about until you do!

> I was planning on doing two seperate installs, but after Stefan's
> comments think I'll do my Kernel compilations in the main distro, i.e.
> multi-boot on the same 'partition'.


Eh? Oh, different kernels, same root partition? Yes. That's normal.

> I am convinced that performance would be best by having one disk
> dedicated to video, but on the other hand I suppose it will be mostly


Don't worry about it. We don't have the faintest idea what you are
talking about and neither do you.

> Think, I'll use Grub instead of Lilo.


I prefer lilo, thogh I use grub in some places.

> A general question re software raid 0 (which is the option I have). I


Eh? That's striping. Why? Unless you are striping across two different
controllers, you won't get anything out of it. And it's probably not
worth bothering about anyway.

> wanted to use as much of the diskspace available for video, i.e. after


What's "video"?

> installing Linux, combine all the remaining space into one logical
> mount.


No sense in that. It will be one logical unit anyway, if you mean one
disk. Why not use lvm if you really want to fiddle that way?

> This obviously isn't an ideal set-up for Video editing, but it the


What's "video editing"? Do you mean cutting and splicing fillums? How
do you do that? I don't know of any applications, but I suppose there
are some.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:10 AM
Steve Martin
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Peter T. Breuer wrote:

> What's "video editing"? Do you mean cutting and splicing fillums? How
> do you do that? I don't know of any applications, but I suppose there
> are some.


http://www.heroinewarrior.com/cinelerra.php3
http://www.mainconcept.com

Just a couple that come to mind. There are others.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 07:10 AM
Peter T. Breuer
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

Steve Martin <smartinwate@adelphia.net> wrote:
> Peter T. Breuer wrote:


> > What's "video editing"? Do you mean cutting and splicing fillums? How
> > do you do that? I don't know of any applications, but I suppose there
> > are some.


> http://www.heroinewarrior.com/cinelerra.php3
> http://www.mainconcept.com


> Just a couple that come to mind. There are others.



Seem genuine. First with source code. Second not and alpha, will cost.

Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 07:11 AM
Leon
 
Posts: n/a
Default Re: Newbie seeking partitioning suggestions

"Peter T. Breuer" <ptb@oboe.it.uc3m.es> wrote in message news:<2c89lb.c5t.ln@news.it.uc3m.es>...

> > I am convinced that performance would be best by having one disk
> > dedicated to video, but on the other hand I suppose it will be mostly

>
> Don't worry about it. We don't have the faintest idea what you are
> talking about and neither do you.


That should have read, I am "not" convinced. One of the posters
suggested that I reserve one of the disks for Digital Video capture
and manipulation.

Thanks
Leon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 <