LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2011, 10:03 AM   #1
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Rep: Reputation: 16
My filesystems are read only


hi guys

suse 10.2

today some guys are adding some luns from a SAN so in order to add them I followed this command

Code:
echo 1 > /sys/class/fc_host/host1/issue_lip
echo "- - -" > /sys/class/scsi_host/host<number>/scan
nice now

after that I tried to create a folder in /
but it won't let me
Code:
# mkdir /backup1
mkdir: cannot create directory `/backup1': Read-only file system
and If I try to remount / as rw I get these. I've tried mounting other filesystem as well same error
Code:
# mount -o remount,rw /opt/IBM
-bash: /bin/mount: Input/output error
any idea how to fix this?

thanks a lot
 
Old 05-21-2011, 11:18 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Please let us know the output of the following command:

mount | grep /

Also I would like to know if you tried mount -a and then tried to create directory under / ?
 
Old 05-21-2011, 11:23 AM   #3
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by T3RM1NVT0R View Post
Hi there,

Please let us know the output of the following command:

mount | grep /

Also I would like to know if you tried mount -a and then tried to create directory under / ?
any command I run I get this

-bash: /bin/mount: Input/output error
 
Old 05-21-2011, 11:26 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Did you try restarting your server and then giving it a try?
 
Old 05-21-2011, 11:27 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Your Linux is hosed and you need to, at the least, reboot. It sounds like your system has lost track of its root partition. With luck, a reboot will re-detect all disks and bring it back.
 
Old 05-21-2011, 11:46 AM   #6
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
I think the point was this is a IBM enviroment....which uses RDAC and according to documentation the command to rescan LUNs is mppBusRescan - hot_add

I only think trying the normal commands turned my filesystem on my SAN as read only

has someone worked with RDAC multipath driver? and ibm?
 
Old 05-21-2011, 12:01 PM   #7
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Quote:
today some guys are adding some luns from a SAN so in order to add them I followed this command
Alright lets start from the beginning. As per the above line I think what has happened is SAN guys added some LUNS which I will take it as device because LUNS on SAN is device for server like /dev/sda or /dev/sdb etc. You said that you issued the command to re-scan the LUN but now you are not able to write anything and the file system is mounted as read-only.

Now the above is not possible until and unless re-scanning mounted the file-system as read only. My only motive for running mount -a command was to remount the all the partitions using the options present in /etc/fstab but you said that none of the commands are working.

1. Let us know if they have increase the size of the existing LUNs or they added up new LUNs.
2. As far as I know adding up new LUNs shouldn't affect existing partitions.
3. mount commands should work. Is the document you are referring says anything about this.

I would still suggest a restart as without getting the commands to work I dont think we are going anywhere.
 
Old 05-21-2011, 02:38 PM   #8
kopper27
Member
 
Registered: Nov 2009
Posts: 147

Original Poster
Rep: Reputation: 16
that was the issue guys

thanks a lot

I have to use either mppBusRescan or hot_add
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
df: cannot read table of mounted filesystems atheist Linux - General 3 08-28-2009 10:47 AM
How can I read FAT32 and NTFS filesystems vvkozmenko Linux - Desktop 7 06-02-2007 08:14 AM
How to disable read and write caching in filesystems Kumar Programming 1 11-11-2005 04:36 AM
cannot read table of mounted filesystems storto Linux From Scratch 4 08-16-2004 11:41 AM
read-only filesystems jwalker730 Linux - General 1 03-14-2004 11:48 AM

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

All times are GMT -5. The time now is 09:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration