Sponsored Content
Full Discussion: Partition Sizes
Top Forums UNIX for Beginners Questions & Answers Partition Sizes Post 303012277 by Stellaman1977 on Thursday 1st of February 2018 04:17:34 PM
Old 02-01-2018
Quote:
Originally Posted by hicksd8
Please explain.

Why would you possibly want to size a partition with byte accuracy? Are you short on disk space or something??

Anyway, normally, the disk sector is the smallest unit of currency so that's 512 bytes. Also, many OS's operate to the nearest disk cylinder.

Usually, if a filesystem fills up you are stuffed and need to expand it. Depending on what disk/filesystem you are running that could prove labor intensive unless you are running a OS that allows you to expand a filesystem easily. You normally need to leave good headroom to ensure the filesystem doesn't fill.
It has to do with my cloning efforts with
Code:
ufsrestore

and disk mirroring. I believe when creating a mirror, the slices have to be precise and I'm about to format a drive for it.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

understanding logical partition, physical partition

hi, 1) is logical partition the same as physical partition except that one is physical and the other is logical? 2) then it must a one to one ratio? (3 Replies)
Discussion started by: yls177
3 Replies

2. UNIX for Dummies Questions & Answers

Directory sizes

Can someone tell me how to read these damn sizes. i mean, i prefer to see sizes in MB but that is not the case when you do an ls -l on directories. i have a had time converting these to MB just for verification purposes, what would a directory size like this = 3499990308 represent in MB or... (3 Replies)
Discussion started by: TRUEST
3 Replies

3. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

4. UNIX for Dummies Questions & Answers

Directories sizes

Hello everyone, can anybody help me in finding a way to obtain a list of all the directories and their sizes. I would like to be able to run this and obtain an output like a tree structure with each branch saying how much space it is taking up . Hope you can point me in the right direction.... (1 Reply)
Discussion started by: gio001
1 Replies

5. Shell Programming and Scripting

rsync from partition to partition fastest

Gentleman, Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Discussion started by: jaysunn
6 Replies

6. UNIX for Advanced & Expert Users

df vs du for directory sizes

Is it better to use df or du to calculate directory sizes? I tried both and got different numbers with both. $ du -h /home 1.7G /home/bob1 1.7G /home $ df -h /home Filesystem Size Used Avail Use% Mounted on /dev/mapper/VG-lv_home 25G 1.9G 22G ... (2 Replies)
Discussion started by: cokedude
2 Replies

7. Slackware

Ideal partition sizes of 17 gb space.

I am planning to install slack 13.37 on an old stand-alone PIII (512 mb ram) with 17 gb disk space. I need to keep lotsa pdf, chm type e-books for programming with few other misc. documents. I'm going to use this system for my personal use. It has no network but I browse internet with cable... (0 Replies)
Discussion started by: vectrum
0 Replies

8. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

9. Filesystems, Disks and Memory

Ask concept soft partition vs hard partition

Hi Experts I would like to know different between soft partition concept and hard partition concept on solaris. Here is little explanation between soft partition concept and hard partition concept on solaris. Soft Partition: 1TB total space available in storage in all mapped to the OS to... (2 Replies)
Discussion started by: edydsuranta
2 Replies

10. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
Data::ObjectDriver::Driver::Partition(3pm)		User Contributed Perl Documentation		Data::ObjectDriver::Driver::Partition(3pm)

NAME
Data::ObjectDriver::Driver::Partition - base class for partitioned object drivers SYNOPSIS
package SomeObject; __PACKAGE__->install_properties({ ... primary_key => 'id', driver => Data::ObjectDriver::Driver::Partition->new(get_driver => &find_partition), }); # Say we have a list of 5 arrayrefs of the DBI driver information. my @DBI_INFO; sub find_partition { my ($part_key, $args) = @_; my $id; if (ref $terms && ref $terms eq 'HASH') { # This is a search($terms, $args) call. my $terms = $part_key; $id = $terms->{id} or croak "Can't determine partition from a search() with no id field"; } else { # This is a lookup($id) or some method invoked on an object where we know the ID. my $id = $part_key; } # "ID modulo N" is not a good partitioning strategy, but serves as an example. my $partition = $id % 5; return Data::ObjectDriver::Driver::DBI->new( @{ $DBI_INFO[$partition] } ); } DESCRIPTION
Data::ObjectDriver::Driver::Partition provides the basic structure for partitioning objects into different databases. Using partitions, you can horizontally scale your application by using different database servers to hold sets of data. To partition data, you need a certain criteria to determine which partition data goes in. Partition drivers use a "get_driver" function to find the database driver for the correct partition, given either the arguments to a "search()" or the object's primary key for a "lookup()", "update()", etc where the key is known. SUGGESTED PRACTICES
While you can use any stable, predictable method of selecting the partition for an object, the most flexible way is to keep an unpartitioned table that maps object keys to their partitions. You can then look up the appropriate record in your get_driver method to find the partition. For many applications, you can partition several classes of data based on the ID of the user account that "owns" them. In this case, you would include the user ID as the first part of a complex primary key. Because multiple objects can use the same partitioning scheme, often Data::ObjectDriver::Driver::Partition is subclassed to define the "get_driver" function once and automatically specify it to the Data::ObjectDriver::Driver::Partition constructor. Note these practices are codified into the Data::ObjectDriver::Driver::SimplePartition class. USAGE
"Data::ObjectDriver::Driver::Partition->new(%params)" Creates a new partitioning driver. The required members of %params are: o "get_driver" A reference to a function to be used to retrieve for a given object or set of search terms. Your function is invoked as either: o "get_driver(\%terms, \%args)" Return a driver based on the given "search()" parameters. o "get_driver($id)" Return a driver based on the given object ID. Note that $id may be an arrayref, if the class was defined with a complex primary key. o "pk_generator" A reference to a function that, given a data object, generates a primary key for it. This is the same "pk_generator" given to "Data::ObjectDriver"'s constructor. "$driver->search($class, $terms, $args)" "$driver->lookup($class, $id)" "$driver->lookup_multi($class, @ids)" "$driver->exists($obj)" "$driver->insert($obj)" "$driver->update($obj)" "$driver->remove($obj)" "$driver->fetch_data($what)" Performs the named action, by passing these methods through to the appropriate database driver as determined by $driver's "get_driver" function. DIAGNOSTICS
No errors are created by Data::ObjectDriver::Driver::Partition itself. Errors may come from a specific partitioning subclass or the driver for a particular database. BUGS AND LIMITATIONS
There are no known bugs in this module. SEE ALSO
Data::ObjectDriver::Driver::SimplePartition LICENSE
Data::ObjectDriver is free software; you may redistribute it and/or modify it under the same terms as Perl itself. AUTHOR &; COPYRIGHT Except where otherwise noted, Data::ObjectDriver is Copyright 2005-2006 Six Apart, cpan@sixapart.com. All rights reserved. perl v5.12.4 2011-08-29 Data::ObjectDriver::Driver::Partition(3pm)
All times are GMT -4. The time now is 06:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy