Hello,
I need to force a filesystemcheck of my root filesystem. Is there a way
to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
single user mode or a way to remount it ro later on to perform a
filesystemcheck?
Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
7/17/2007 12:22:17 PM |
|
On 17 Jul, 13:22, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:
> Hello,
> I need to force a filesystemcheck of my root filesystem. Is there a way
> to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
> single user mode or a way to remount it ro later on to perform a
> filesystemcheck?
>
> Thomas
Thomas
Yes it's fairly straight forward and something I found out because a
system was coming up in read only mode. I had to figure out why it was
doing that.
At the OBP ok prompt have a look at the full path for the boot-device,
eg
/pci@1f,4000/scsi@3/disk@0,0:a
Now copy that and type
boot /pci@1f,4000/scsi@3/disk@0,0:c
Changing the :a to :c will force it to boot into read only.
HTH
Sean
|
|
0
|
|
|
|
Reply
|
Sean
|
7/17/2007 1:26:26 PM
|
|
Hello Sean,
> boot /pci@1f,4000/scsi@3/disk@0,0:c
> Changing the :a to :c will force it to boot into read only.
That doesn't work for me because my "a" partition is swap, "b" is root.
"c" stands for whole disk. But swap is at the beginning of our root
partition.
Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
7/17/2007 1:40:45 PM
|
|
On 17 Jul., 14:22, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:
> Hello,
> I need to force a filesystemcheck of my root filesystem. Is there a way
> to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
> single user mode or a way to remount it ro later on to perform a
> filesystemcheck?
>
> Thomas
What about "boot cdrom -s"?
--
HTH Roland
|
|
0
|
|
|
|
Reply
|
news_rt
|
7/17/2007 2:39:57 PM
|
|
Thomas Glanzmann wrote:
> Hello,
> I need to force a filesystemcheck of my root filesystem. Is there a way
> to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
> single user mode or a way to remount it ro later on to perform a
> filesystemcheck?
>
> Thomas
I can't answer your question as asked. I'd suggest booting from CDROM
and doing the fsck from there! I haven't ever tried that; it may not work!
|
|
0
|
|
|
|
Reply
|
Richard
|
7/17/2007 3:50:22 PM
|
|
Hello,
{0} ok boot -a -s
Resetting ...Probing system devices
Sun Fire 280R (2 X UltraSPARC-III) , No Keyboard
Copyright 1998-2004 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.16.4, 4096 MB memory installed, Serial #50513069.
Ethernet address 0:3:ba:2:c4:ad, Host ID: 8302c4ad.
Rebooting with command: boot -a -s
Boot device: /pci@8,600000/SUNW,qlc@4/fp@0,0/disk@0,0:b File and args: -a -s
Enter filename [kernel/sparcv9/unix]:
Enter default directory for modules [/platform/SUNW,Sun-Fire-280R/kernel /platform/sun4u/kernel /kernel /usr/kernel]:
=> Name of system file [etc/system]: /dev/null
SunOS Release 5.10 Version Generic_118833-24 64-bit
Copyright 1983-2006 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
root filesystem type [ufs]:
Enter physical name of root device
[/pci@8,600000/SUNW,qlc@4/fp@0,0/disk@w500000e0155145d1,0:b]:
Booting to milestone "milestone/single-user:default".
Hostname: faui04a
SUNW,eri0 : 100 Mbps full duplex link up
Requesting System Maintenance Mode
SINGLE USER MODE
Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode
Jul 17 16:02:24 su: 'su root' succeeded for root on /dev/console
===============================================================================
Welcome to the Computer Science CIP-Pool at FAU-Erlangen
If you have questions or need help, please look at our web-site
located at: http://wwwcip.informatik.uni-erlangen.de/
By using this machine, you agree to our Acceptable-Use Policies:
http://wwwcip.informatik.uni-erlangen.de/pools/rules/
===============================================================================
# touch /asd
touch: /asd cannot create
at least if you have a root mirror you can specify after booting "boot -a -s"
as system file "/dev/null" and press return everywhere else and you get a ro
mounted root filesystem. But hopefully somone in this group will
enlighten me if there is another way to obtain the same on an enterprise
class unix system.
Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
7/17/2007 4:10:27 PM
|
|
Hello,
> I can't answer your question as asked. I'd suggest booting from CDROM
> and doing the fsck from there! I haven't ever tried that; it may not work!
well it does work. You also can boot from net. But there must be
documented way to boot Solaris into Single user mode with the root
filesystem read-only. I mean Solaris did more than once when the ufs
filesystem was that obvious broken that Solaris recognized it.
Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
7/17/2007 4:19:41 PM
|
|
Thomas Glanzmann <sithglan@stud.uni-erlangen.de> wrote:
> Hello,
>> I can't answer your question as asked. I'd suggest booting from CDROM
>> and doing the fsck from there! I haven't ever tried that; it may not work!
> well it does work. You also can boot from net. But there must be
> documented way to boot Solaris into Single user mode with the root
> filesystem read-only. I mean Solaris did more than once when the ufs
> filesystem was that obvious broken that Solaris recognized it.
It does a fsck on the filesystem before it remounts read-write anyway.
But if you really want to, do a 'boot -b' on Solaris 9 and earlier, and
a 'boot -m milestone=none' on Solaris 10 and up. You'll have only the
root filesystem mounted read-only. I can't remember if you'll have to
mount /usr yourself or not if separate.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
0
|
|
|
|
Reply
|
Darren
|
7/17/2007 5:13:20 PM
|
|
Hello,
> It does a fsck on the filesystem before it remounts read-write anyway.
but for example when you have ufs mounted logging. And do a unlink on a
directory as root. Solaris doesn't gets that the Solaris needs to be
checked.
> But if you really want to, do a 'boot -b' on Solaris 9 and earlier,
> and a 'boot -m milestone=none' on Solaris 10 and up. You'll have only
> the root filesystem mounted read-only. I can't remember if you'll
> have to mount /usr yourself or not if separate.
thank you a lot! That was exactly the information I was looking for.
Thomas
|
|
0
|
|
|
|
Reply
|
Thomas
|
7/17/2007 5:20:56 PM
|
|
On Jul 17, 7:22 am, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:
> Hello,
> I need to force a filesystemcheck of my root filesystem. Is there a way
> to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
> single user mode or a way to remount it ro later on to perform a
> filesystemcheck?
>
> Thomas
You can boot from cdrom, then fsck the root slice.
Victor
|
|
0
|
|
|
|
Reply
|
victorfeng1973
|
7/18/2007 2:53:17 AM
|
|
On Jul 17, 8:22 am, Thomas Glanzmann <sithg...@stud.uni-erlangen.de>
wrote:
> Hello,
> I need to force a filesystemcheck of my root filesystem. Is there a way
> to tell Solaris 10 on a SunFIRE 280R not to mount its fileystems rw in
> single user mode or a way to remount it ro later on to perform a
> filesystemcheck?
>
> Thomas
You could boot cdrom -s and fsck the root filesystem that way.
Dean
|
|
0
|
|
|
|
Reply
|
Dean
|
7/19/2007 4:14:12 PM
|
|
|
10 Replies
2453 Views
(page loaded in 0.15 seconds)
|