LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-22-2019, 01:36 PM   #1
james000
Member
 
Registered: Sep 2018
Posts: 143

Rep: Reputation: 2
Not able to create file in directory


Hi,
I have RHEL 7.2. In a directory, I am not able to write anything. Permissions looks good. This is a VM running on VMWare, so disks are good, coming from same source. This file-system is part of rootvg. Every other directory in that vg is good.
Code:
[root@server-22 /]# ls -ld /export /export/home /export/home/john
drwxr-xr-x.  5 root    root    4096 Dec 14 15:10 /export
drwxr-xr-x. 28 root    root    4096 May 14 13:03 /export/home
drwxr-xr-x  13 john john 4096 May 22 11:00 /export/home/john
[root@server-22 /]# cd /export/home/john
[root@server-22 john]# touch test-file
[root@server-22 john]# ls -ld Test_Plan_Today
drwxrwxrwx 3 john john 4096 May 22 10:41 Test_Plan_Today
[root@server-22 john]# cd Test_Plan_Today
[root@server-22 Test_Plan_Today]# touch test-file
touch: cannot touch ātest-fileā: Input/output error
[root@server-22 Test_Plan_Today]# ls -ltar
total 0
[root@server-22 Test_Plan_Today]#
[root@server-22 Test_Plan_Today]# df -h .
Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-export  9.1G  435M  8.2G   5% /export
[root@server-22 Test_Plan_Today]#
Can somebody help me to understand this and fix it (instead of deleting it)?
Thanks
 
Old 05-22-2019, 01:57 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by james000 View Post
Hi,
I have RHEL 7.2. In a directory, I am not able to write anything. Permissions looks good. This is a VM running on VMWare, so disks are good, coming from same source. This file-system is part of rootvg. Every other directory in that vg is good.
Code:
[root@server-22 /]# ls -ld /export /export/home /export/home/john
drwxr-xr-x.  5 root    root    4096 Dec 14 15:10 /export
drwxr-xr-x. 28 root    root    4096 May 14 13:03 /export/home
drwxr-xr-x  13 john john 4096 May 22 11:00 /export/home/john
[root@server-22 /]# cd /export/home/john
[root@server-22 john]# touch test-file
[root@server-22 john]# ls -ld Test_Plan_Today
drwxrwxrwx 3 john john 4096 May 22 10:41 Test_Plan_Today
[root@server-22 john]# cd Test_Plan_Today
[root@server-22 Test_Plan_Today]# touch test-file
touch: cannot touch ātest-fileā: Input/output error
[root@server-22 Test_Plan_Today]# ls -ltar
total 0
[root@server-22 Test_Plan_Today]#
[root@server-22 Test_Plan_Today]# df -h .
Filesystem                 Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-export  9.1G  435M  8.2G   5% /export
[root@server-22 Test_Plan_Today]#
Can somebody help me to understand this and fix it (instead of deleting it)?
Thanks
What's in dmesg and /var/log/messages?
Do you have any problems with disk read/write at the host level?
 
Old 05-22-2019, 02:03 PM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
how /export is mounted?
probably selinux is enabled and you need to check that too.
 
Old 05-22-2019, 02:47 PM   #4
james000
Member
 
Registered: Sep 2018
Posts: 143

Original Poster
Rep: Reputation: 2
Ah..I found these errors, I missed to check this earlier
Code:
[39784539.692690] Buffer I/O error on device dm-5, logical block 576478
[39784539.694632] Buffer I/O error on device dm-5, logical block 576479
[39784539.698128] EXT4-fs warning (device dm-5): ext4_end_bio:332: I/O error -5 writing to inode 133388 (offset 0 size 16384 starting block 576480)
[39784539.698134] Buffer I/O error on device dm-5, logical block 576480
[39784539.699900] Buffer I/O error on device dm-5, logical block 576481
[39784539.701550] Buffer I/O error on device dm-5, logical block 576482
[39784539.703189] Buffer I/O error on device dm-5, logical block 576483
[39785126.443762] EXT4-fs error (device dm-5): ext4_find_dest_de:1653: inode #133747: block 532812: comm touch: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0
[39785188.105709] EXT4-fs error (device dm-5): htree_dirblock_to_tree:914: inode #133747: block 532812: comm ls: bad entry in directory: rec_len is smaller than minimal - offset=0(0), inode=0, rec_len=0, name_len=0
[39789602.900584] EXT4-fs warning (device dm-5): ext4_end_bio:332: I/O error -5 writing to inode 133710 (offset 0 size 4096 starting block 576484)
[39789602.900598] Buffer I/O error on device dm-5, logical block 576484
Also it says -->
Code:
# pvs
  WARNING: /dev/rootvg/root: Thin's thin-pool needs inspection.
  WARNING: /dev/rootvg/export: Thin's thin-pool needs inspection.
  PV         VG     Fmt  Attr PSize  PFree
  /dev/sda3  rootvg lvm2 a--  35.72g 5.89g
===========
Update - Reboot fixed this issue.

Last edited by james000; 05-22-2019 at 05:21 PM. Reason: Solved
 
  


Reply

Tags
linux, rhel7



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
Making directories immutable and being able to create files within the directory? linux_nerd Linux - Software 11 12-31-2019 08:24 PM
slackware64 14.1: not able to install LILO to MBR; not able to boot from USB drive. dcsst28 Slackware 1 11-17-2013 09:03 PM
Not able to Create Samba account in Home Directory Machine. Arunsb1217 Linux - Networking 1 07-15-2010 11:37 AM
not able to run php cammand. Not able to find php novinjaiswal Linux - Newbie 4 10-31-2008 01:28 PM
Not able to create directory, upload/delete files from another network chualk Linux - Server 6 03-26-2008 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:20 AM.

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