Sponsored Content
Full Discussion: Resizing file
Top Forums UNIX for Dummies Questions & Answers Resizing file Post 46588 by Kelam_Magnus on Tuesday 20th of January 2004 10:39:57 AM
Old 01-20-2004
good example Jsilva.


This is really about determining what type of data you have on a particular filesystem... On systems with large amounts of data you will see the real impact of proper sizing of blocks.

However, In HPUX we dont use block size, we use extent-based sizing. All of our extents are divisible by 4mb... 4/8/12/16 etc... upto 256mb extents...

Many Filesystems in HPUX with mounted databases, use 64/128 for the extent size. My DBAs had me make my stripesize to 128mb b/c of the characteristics of their data.

The other thing about choosing the correct extent or block size is so that your number of writes are fewer...

If you have chunks of data... a small block size can be equally detrimental... causing you to have many more writes to those smaller blocks.

Choosing the right size is very important... Many vendors have recommendations that you can use to help determine what is right for your system.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

filesystems resizing

I want to resize my filesystem partitions. Reason is that I have 11GB of disk space unused by Unix which divvy reveals. Is there a way I could resize my filesystems without doing a reinstallation. The secondary problem is that the boot image is too large for a diskette (5MB). I'm running SCO... (10 Replies)
Discussion started by: sshokunbi
10 Replies

2. UNIX for Dummies Questions & Answers

resizing slices

I downloaded the Solaris recommended patched for x86 and tried to install it, but I got the message that I dont have enough disk space. I don't want to install the patches without the option to back out. Anyway I did a df -k and found that my root mount point is in 948MB whereas my /export/home is... (5 Replies)
Discussion started by: dangral
5 Replies

3. UNIX for Dummies Questions & Answers

Resizing File-Systems

can someone tell me the basic steps needed to resize and existing filesystem that already has data on it? thanks I dont need to be pointed to a website so any real time real life advice or help will be wholly appreciated (4 Replies)
Discussion started by: TRUEST
4 Replies

4. AIX

Resizing VG with mirror

Dear Friends, I would like to know if there is any chance to expand a Volume Group, If this VG have a mirror. If there is any chance to do this what would be the safer way to avoid lost any data. Sorry about my English.:D Thanks a lot. (1 Reply)
Discussion started by: chrispaz
1 Replies

5. Filesystems, Disks and Memory

Help with resizing partitions

Hi First post :o I have recently used Acronis (Backup software for data backup and disaster recovery in Windows and Linux - Acronis) to create identical systems that I need to build. Everything works OK, but one of the machine has a bigger harddisk (250G) than the one I used to create the... (2 Replies)
Discussion started by: forte712
2 Replies

6. SuSE

lvextend on ext3 resizing

Hi all IM very curious about one thing Im currently playing with a test server SLES x64 SP2, and I got to a serious issue which is really sorry for the word pissing me off. :mad: I created an pv, then vg and finaly some lv's which is fine. I mounted then and everything worked fine... (0 Replies)
Discussion started by: kl1ngac1k
0 Replies

7. Solaris

Parition Resizing

Is there a way to take space from the /opt slice (/dev/dsk/c1t0d0s5) and then put it in the /var (/dev/dsk/c1t0d0s1)? In theory, I should be able to ufsdump /opt and /var to another drive. Use disk label to resize those two slices (ex. take 10G from opt and add to /var) and then newfs and dump back... (1 Reply)
Discussion started by: adelsin
1 Replies

8. Solaris

vxfs online resizing

Hi, I have two filesystems called /u009 and /u008. I need to release 60gb from /u009 and add it to /u008 fs through fsadm command.. these are vxfs filesystem..its urgent.. thanx in advance (5 Replies)
Discussion started by: bpsunadm
5 Replies

9. Solaris

Resizing a disk

I'm used to using AIX but a new box running Solaris I need a little help with. The disk are presented from a SAN, the disk needing to change is presented as 148GBs drive which was allocated to a file system as the same. I need to change that without losing any data. I know I can change the disk... (7 Replies)
Discussion started by: ltlawnman
7 Replies

10. HP-UX

Some doubts about resizing fs's in HP-UX

Hello, I'm new to HP-UX and I'm not sure about some concepts related to resizing fs's under this OS. First of all I'm only asking about resizing ONLINE, it means, without having to umount the fs nor rebooting, etc. Q1. I've read that in order to resize a fs online there are 2 requirements:... (3 Replies)
Discussion started by: asanchez
3 Replies
setext(1M)																setext(1M)

NAME
setext - set VxFS extent attributes SYNOPSIS
extent_size] flag] reservation] file DESCRIPTION
specifies a fixed extent size for a file, and reserves space for a file. The file must already exist. In some cases, fsadm may reorganize the extent map of a file in such a way as to make it less contiguous. However, it does not change the geometry of a file that has a fixed extent size. Options recognizes the following options: Specify a fixed extent size. extent_size is the number of file system blocks to allocate for the extent. An extent_size of zero cancels previous fixed-size extents for the file and uses the default extent allocation policy. See vxtunefs(1M) for information on extent size parameters. The available allocation flags are Specify that all extents must be aligned on extent_size boundaries relative to the start of allocation units. Immediately incorporate the reservation into the file and update the file's on-disk inode with size and block count information that is increased to include the reserved space. The space added to the file is not initialized. Only users with appropriate privileges can use the option. Specify that the reservation must be allocated contiguously. Specify that the file may not be extended after the preallocated space is used. Specify that the reservation is not a persistent attribute of the file. Instead, the space is allocated until the final close of the file, when any space not used by the file is freed. The temporary reservation is not visible to the user (via getext(1M) or the ioctl, for example). Specify that the reservation is reduced to the current file size after the last close by all processes that have the file open. Specify the VxFS file system type. Preallocate space for file. reservation is specified in file system blocks or the actual size in bytes. Echo the completed command line, but do not execute the command. The command line is generated by incorporating the user-specified options and other information derived from This option allows the user to verify the command line. Operands recognizes the following operand: file Name of an existing VxFS file. Notes is available only with the HP OnLineJFS product. You can specify multiple flags by entering multiple instances of on the command line. You must specify the allocation flags with either the or option. Only the and allocation flags are persistent attributes of the file and therefore visible via getext(1M) or the ioctl. Although is not a persistent attribute of the file, it is visible until it is cleared during the final close of the file. Other allocation flags may have persistent effects, but are not visible as allocation flags. In some cases, may reorganize the extent map of a file in such a way as to make it less contiguous. However, it will not change the geome- try of a file that has a fixed extent size. For the or options, you can specify the size in number of file system blocks or in bytes. A numeric value indicates file system blocks, a numeric value with a suffix specifies the size in bytes: for kilobytes, for megabytes, or for gigabytes. SEE ALSO
getext(1M), fsadm_vxfs(1M), vxtunefs(1M), vxfsio(7). enhancement in Description section of vxfsio(7). setext(1M)
All times are GMT -4. The time now is 10:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy