LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-19-2010, 01:45 AM   #1
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Rep: Reputation: 0
cp "No space left on device"



Hello Everybody,

I have the external harddisk that is connected to linux server as u03 partion as ext3 filesystem.Eventhough i have enough space in the disk.

df -h


Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 117G 67G 45G 60% /
tmpfs 7.9G 5.1G 2.8G 65% /dev/shm
//192.168.6.59/vijaysamba
342G 13G 330G 4% /mnt/vijaysamba
/dev/sdc1 1.8T 1.3T 484G 73% /u03


df -i


Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/cciss/c0d0p1 31653888 745578 30908310 3% /
tmpfs 2054837 840 2053997 1% /dev/shm
//192.168.6.59/vijaysamba
0 0 0 - /mnt/vijaysamba
/dev/sdc1 244203520 4935203 239268317 3% /u03



cp: writing `/u03/Archivelogs_6.64_from_may19/arclog_719414640_54p1': No space left on device

Please let me know the reason for not copying to the disk

Thanks in Advance
vijay

Last edited by unixvijay; 05-19-2010 at 01:47 AM.
 
Old 05-19-2010, 01:58 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

How big is the file you are copying?
 
Old 05-19-2010, 02:00 AM   #3
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Hi, welcome to the LQ forums.

Have you tried to copy some other file via cp?

Do you have write permissions FOR THAT USER?

What is the version of your system?
 
Old 05-19-2010, 02:01 AM   #4
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

How big is the file you are copying?

file size is only 3.4GB

it is copying only 1.4 GB and then giving the error
cp "no space left on the device"

Thanks
vijay
 
Old 05-19-2010, 02:04 AM   #5
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DrLove73 View Post
Hi, welcome to the LQ forums.

Have you tried to copy some other file via cp?

Do you have write permissions FOR THAT USER?

What is the version of your system?
yes, i can able to copy some files to u03

centOS 5.4
how to check the write permission for the user

Thanks
vijay
 
Old 05-19-2010, 02:08 AM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
If you can write with that same user, then you already have write permissions.

Can you copy file smaller then 1.4GB? Try splitting it or compressing it with zip or tar (you can do it directly to /u03 partition.
 
Old 05-19-2010, 02:08 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Assuming that this disk is ext2 or ext3, what does the following command show: tune2fs -l /dev/sdc1

I'm suspecting the reserved blocks (default 5% of all space) to be the culprit.

If this is true, then the following command will reduce this to 1% (see man page tune2fs for details):

tune2fs -m 1 /dev/sdc1

Hope this helps.
 
1 members found this post helpful.
Old 05-19-2010, 02:09 AM   #8
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unixvijay View Post
yes, i can able to copy some files to u03

centOS 5.4
how to check the write permission for the user

Thanks
vijay

Actually
i got the error when i try to copy archivelogs to external harddisk

ORA-19502: write error on file "/u03/Archivelogs_6.64_from_may19/arclog_719403520_49p1", block number 20310016 (block size=512)
ORA-27072: File I/O error
Linux-x86_64 Error: 25: Inappropriate ioctl for device
Additional information: 4
Additional information: 20310016
Additional information: 438272

Thanks
vijay
 
Old 05-19-2010, 02:14 AM   #9
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DrLove73 View Post
If you can write with that same user, then you already have write permissions.

Can you copy file smaller then 1.4GB? Try splitting it or compressing it with zip or tar (you can do it directly to /u03 partition.

I cannot split or compress the file and i dont want to that.
Is there any to copy a file as it is?

thanks
vijay
 
Old 05-19-2010, 02:18 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

This (ORA-19502 and ORA-27072) looks like an Oracle error.

Have a look here: Oracle Thread: RMAN-3002 ORA-19502 ORA-27072

Hope this helps.
 
Old 05-19-2010, 02:19 AM   #11
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

Assuming that this disk is ext2 or ext3, what does the following command show: tune2fs -l /dev/sdc1

I'm suspecting the reserved blocks (default 5% of all space) to be the culprit.

If this is true, then the following command will reduce this to 1% (see man page tune2fs for details):

tune2fs -m 1 /dev/sdc1

Hope this helps.
i have given the following command in root user


[root@nixon /]# tune2fs -l /dev/sdc1
tune2fs 1.39 (29-May-2006)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: af0e4505-fdc1-4d6d-b7e9-468e41187670
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode dir_index filetype needs_reco very sparse_super large_file
Default mount options: (none)
Filesystem state: not clean with errors
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 244203520
Block count: 488378000
Reserved block count: 24418900
Free blocks: 153669075
Free inodes: 239268387
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 907
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 512
Filesystem created: Mon Feb 22 23:46:22 2010
Last mount time: Thu May 13 17:24:55 2010
Last write time: Thu May 13 17:24:55 2010
Mount count: 59
Maximum mount count: 22
Last checked: Mon Feb 22 23:46:22 2010
Check interval: 15552000 (6 months)
Next check after: Sat Aug 21 23:46:22 2010
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 8b4899b4-fd74-465e-98f2-d4fd27294715
Journal backup: inode blocks

Have you got idea in my outputs?

Thanks
vijay
 
Old 05-19-2010, 02:27 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

This: Filesystem state: not clean with errors doesn't look good.

You need to check the partition/disk.

1) unmount disk
2) run fsck on it (fsck.ext3 /dev/sdc1)

Hope this helps.
 
Old 05-19-2010, 02:34 AM   #13
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

Assuming that this disk is ext2 or ext3, what does the following command show: tune2fs -l /dev/sdc1

I'm suspecting the reserved blocks (default 5% of all space) to be the culprit.

If this is true, then the following command will reduce this to 1% (see man page tune2fs for details):

tune2fs -m 1 /dev/sdc1

Hope this helps.



i have given the below command
and my harddisk free space has been increased.
even though i cant able to copy again i am facing the same error


tune2fs -m 1 /dev/sdc1
tune2fs 1.39 (29-May-2006)
Setting reserved blocks percentage to 1% (4883780 blocks)


df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 117G 67G 45G 60% /
tmpfs 7.9G 5.1G 2.8G 65% /dev/shm
//192.168.6.59/vijaysamba
342G 13G 330G 4% /mnt/vijaysamba
/dev/sdc1 1.8T 1.3T 558G 70% /u03




cp -r /u01/app/temp_arc/* /u03/Archivelogs_6.64_from_may19/
cp: writing `/u03/Archivelogs_6.64_from_may19/arclog_719414640_54p1': No space left on device

Thanks
vijay
 
Old 05-19-2010, 02:38 AM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I think the file system isn't clean and needs to be checked (see post #11 and #12). Focus on that first.

Hope this helps.
 
Old 05-19-2010, 03:07 AM   #15
unixvijay
LQ Newbie
 
Registered: May 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by druuna View Post
Hi,

This: Filesystem state: not clean with errors doesn't look good.

You need to check the partition/disk.

1) unmount disk
2) run fsck on it (fsck.ext3 /dev/sdc1)

Hope this helps.
Hi

i have done umount /u03
and fsck.ext3 /dev/sdc1
it is displaying a message as shown below.i have given yes
and it takes too much time
I dont know how long it takes ? the hard disk size 2TB
Let me know, what will happen, whether the existing data in harddisk will exist or erased?


fsck.ext3 /dev/sdc1
e2fsck 1.39 (29-May-2006)
Resize inode not valid. Recreate<y>? yes

/dev/sdc1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes



Thanks
vijay

Last edited by unixvijay; 05-19-2010 at 03:24 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get -f install fails due to "No space left on device" madkayaker Linux - Newbie 9 01-05-2014 09:39 PM
vcdxbuild in K3b = "fwrite(): No space left on device" Muraii Linux - Software 0 01-18-2009 12:59 PM
Moving a file into a large directory: "No space left on device" Jimantha Linux - General 2 09-09-2008 11:40 PM
"No space left on device" error using SystemV shared memory clalfa Programming 5 07-09-2007 07:34 AM
"no space left on device" - But df shows free space! monita Linux - General 7 03-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration