How to grow my files System?


 
Thread Tools Search this Thread
Operating Systems Solaris How to grow my files System?
# 1  
Old 07-19-2011
MySQL How to grow my files System?

Dear Gurus of Unix.
When I Put this command:
Code:
#  iostat -E
cmdk0     Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: SAMSUNG SV4012H Revision:  Serial No: 0540J1BTC53208  Size: 40.06GB <40060403712 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
sd0       Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
Vendor: HL-DT-ST Product: RW/DVD GCC-4520B Revision: 1.00 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0
sd1       Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
Vendor: HL-DT-ST Product: CD-RW GCE-8525B  Revision: 1.02 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0
sd3       Soft Errors: 6 Hard Errors: 0 Transport Errors: 0
Vendor: hp       Product: v265w            Revision: 4096 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 6 Predictive Failure Analysis: 0
#

I observe that my Hard Disk has 40GB
but when I run this command
Code:
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0d0s0        494M   410M    34M    93%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                   204M   896K   204M     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/dsk/c0d0s6        4.1G   2.4G   1.6G    60%    /usr
/usr/lib/libc/libc_hwcap1.so.1
                       4.1G   2.4G   1.6G    60%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c0d0s3        140M    67M    59M    54%    /var
swap                   661M   458M   204M    70%    /tmp
swap                   204M    24K   204M     1%    /var/run
/dev/dsk/c0d0s5        826M   561M   207M    74%    /opt
/dev/dsk/c0d0s7        5.2G   127M   5.0G     3%    /export/home
/dev/dsk/c0d0s1        435M   285M   107M    73%    /usr/openwin
#

I observe that I only use 16 GB

The question is:
Why I have three files System with the same name swap?
Code:
# df -h | grep swap
swap                   153M   896K   152M     1%    /etc/svc/volatile
swap                   610M   458M   152M    76%    /tmp
swap                   152M    24K   152M     1%    /var/run

and how to use all 40 GB of my hard disk?

Regards
Andres

Last edited by pludi; 07-19-2011 at 05:30 AM..
# 2  
Old 07-19-2011
Not direct answer, but some pointers to proceed.

1. What is swap space: All about Linux swap space | Linux.com

2. Check whether you have partitions ... with those 40 gig, or search about linux partitioning..
if already created, then you can use those ... how ? by creating files and directories in those partitions ...
# 3  
Old 07-19-2011
This is a Solaris system, not Linux. So don't get bogged down over the specifics of Linux swap - it's the concept that's important.

The reason you see "swap" for those file systems is Solaris uses swap for those file systems - they're effectively temporary RAM disks.

And that looks like just about the worst Solaris disk partitioning I've ever seen. If there's an available slice, you can perhaps create a new file system on that slice and somehow use it, but it won't be easy. If possible, you'd be better served doing a clean reinstall and repartitioning your disk with something like 4 GB of swap and the rest all in the root file system.

Because unless you have other reasons for partitioning your file systems (for example, like wanting a separate /var file system so logs don't fill up your root file system), it's a lot easier to manage if you just give the whole disk to /. Splitting the disk into multiple partitions is likely to make whatever space issues that do pop up appear sooner as they have a smaller dedicated partition.
# 4  
Old 07-19-2011
check using the format command.
Code:
# format c0d0s2

check if you still have unused space that you can assign to slice 4.
# 5  
Old 07-20-2011
is there a reason because you have that much slices???
my suggestion is to create a flash-archive and rebuild your server with a new slice-concept ;-)
# 6  
Old 07-20-2011
This may help you understand Solaris virtual file systems (They used be called pseudo file systems) and why thy use swap space if it is available: http://download.oracle.com/docs/cd/E...dl0/index.html.

As for reducing the number of slices or the claim that this is a worst disk partitioning scheme, I respectfully disagree. I suggest that you read http://download.oracle.com/docs/cd/E...dks/index.html
# 7  
Old 07-20-2011
Note that if you are running on x86, not SPARC, there might be other primary partitions than the Solaris one on that disk. You should try by figuring out that first before fiddling with slices.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to grow a zfs file system?

Hi I have the following file system, that needs to be expanded to more 500Gb, so a total of 1Tb: df -h /oradata1 Filesystem Size Used Available Capacity Mounted on oradata1 587G 517G 69G 89% /oradata1 I am not familiar with zfs, I am more... (17 Replies)
Discussion started by: fretagi
17 Replies

2. Solaris

No swap space to grow stack

Dear Solaris Experts, I had a Problem with swap consumption in our Production server. I found error message in /var/adm/message: Aug 1 10:55:40 production genunix: WARNING: Sorry, no swap space to grow stack for pid 29716 (oracle) What should I do for temporary solution? I need no... (4 Replies)
Discussion started by: edydsuranta
4 Replies

3. AIX

Accessing files on AIX system from Linux system

I have a following requirement in production system 1 : LINUX User: abcd system 2: AIX (it is hosting a production DB) Requirement user abcd from system 1 should have read access on archive log files created by DB on system 2. The log files are created with permissions 540 by user ora ,... (2 Replies)
Discussion started by: amitnm1106
2 Replies

4. Shell Programming and Scripting

how to delete files at booting of system (system startup)

hi all I have a problem how to write a shell script which delete files/folder form directory whenever system boot and copy last updated folder/file in the specified directory.pse help me ASAP. i write a script which copy files in directory.I want when system boot up using script it check whether... (1 Reply)
Discussion started by: shubhig15
1 Replies

5. UNIX for Dummies Questions & Answers

Help to Grow the Size of volume

I have a 146Gb drive and want to grow the size from 12G to the max available left. I think 20G is being used so I want to max out from 12 G to 126G. Is this possible? Can you help with the command. root@WRPDWI6k-BU # df -h Filesystem size used avail... (3 Replies)
Discussion started by: udubya
3 Replies

6. Solaris

resize / and grow swap

Hi, this is solaris 10 on sparc sf280r, 2 disks mirrored using SVM, swap is 4GB (slice 1) and rest all is given for / (slice0) in 36G disk. I have already mirrored disks using SVM, for clear picture, I'm pasting some part of config below, # Slice 0 metainit -f d110 1 1 c1t0d0s0... (2 Replies)
Discussion started by: upengan78
2 Replies

7. AIX

Cannot grow jfs file system on AIX 5.2

Hello all, I'm trying to grow a file system by 500MB using SMIT on AIX 5.2 but I receive this error: "0516-404 allocp: This system cannot fulfill the allocation request. There are not enough free partitions or not enough physical volumes to keep strictness and satisfy allocation requests.... (3 Replies)
Discussion started by: need2bageek
3 Replies

8. Solaris

grow filesystem

Hi, how to grow a filesystem when the 2 disks are mirrored using hardware RAID? Only 100G out of 136G is used for now. I would like to increase one of the slices by adding the 36G of space. Pls assist. I only know of using growfs on mirrored disks using SVM.(soft mirror) (12 Replies)
Discussion started by: incredible
12 Replies

9. SuSE

grow /var size how

Hi all, I am using SLES 9 and have following partitions mounted I would like to make /var 10G atleast. fdisk -l This system is doing RAID5(HW). Can someone help me with this issue? Thanks (4 Replies)
Discussion started by: upengan78
4 Replies

10. What is on Your Mind?

Where to grow up?

Hi, all! I've been working for one year as a Unix systems engineer(Solaris) in a large company. Two days ago I found, that I didn't exactly know where should I grow up? I can't drop this idea away and I'm still thinking about it. I'm trying to imagine myself in a next year. Available... (1 Reply)
Discussion started by: movx
1 Replies
Login or Register to Ask a Question