Hi,
After a series of power cuts the file systems on my B2 are all reporting as having errors.
I've run fsck on the root of /dev/sda1 by using the "touch /forcefsck" method but I'm not sure on the best way to run one on /dev/bubba-storage (i.e. what is mounted as /home/storage). Even if I dismount it fsck complains that it's still mounted so I don't want to run one under those circumstances. If I do "touch /home/storage/forcefsck" will that run an fsck when I reboot the machine? I though that only worked for /.
The only other way I can think of is to boot up from the USB installer and do it that way but getting physical access to my B2 is a bit involved so I'd like to avoid that if I can.
Thanks for any suggestions.
Darren.
Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
Best way to fsck bubba-storage
Re: Best way to fsck bubba-storage
Couple of things you can try to unmount /home/storage:
- fuser /home/storage, shows what processes are using /home/storage
- umount -f (force)
- /etc/init.d/smb stop, stop samba
Just a few ideas.
Albert
- fuser /home/storage, shows what processes are using /home/storage
- umount -f (force)
- /etc/init.d/smb stop, stop samba
Just a few ideas.
Albert
-
- Posts: 904
- Joined: 09 Oct 2009, 18:49
Re: Best way to fsck bubba-storage
Thanks. I did try "umount -f".
What I perhaps wasn't clear about is that apart from the message from fsck, AFAICS it was dismounted. i.e. it doesn't show up if I just run "mount", I can't cd into /home/storage etc.
What I perhaps wasn't clear about is that apart from the message from fsck, AFAICS it was dismounted. i.e. it doesn't show up if I just run "mount", I can't cd into /home/storage etc.
Re: Best way to fsck bubba-storage
So it doesn't show up in mount, then it isn't mounted.
Are you using your bubba-storage as a separate storage or using the raid option (don't know if B2 can do this, but it is an option in B3).
Do you have the filesystem mounted automatically at boot time? If so you can set the system to check the filesystem at boot time, in /etc/fstab and change the last number on the appropriate line to 2, if it is 0.
If it says it is mounted, it should show up at the mount command. Maybe not as you expected it.
Could you show your fstab and the output of vgdisplay -v and mount?
Are you using your bubba-storage as a separate storage or using the raid option (don't know if B2 can do this, but it is an option in B3).
Do you have the filesystem mounted automatically at boot time? If so you can set the system to check the filesystem at boot time, in /etc/fstab and change the last number on the appropriate line to 2, if it is 0.
If it says it is mounted, it should show up at the mount command. Maybe not as you expected it.
Could you show your fstab and the output of vgdisplay -v and mount?
-
- Posts: 904
- Joined: 09 Oct 2009, 18:49
Re: Best way to fsck bubba-storage
Thanks for the tips. I'm at work now so will follow up when I get home.
Re: Best way to fsck bubba-storage
You could also email the excito team at rt@excito.net.
They know the thing inside out and I have very good experience with them for fixing problems.
Albert
They know the thing inside out and I have very good experience with them for fixing problems.
Albert
-
- Posts: 904
- Joined: 09 Oct 2009, 18:49
Re: Best way to fsck bubba-storage
I've been sshing into my box from work and / is still reporting errors even though I did the /forcefsck method. Looks like I'm going to have to boot from a USB stick to sort this one out anyway so I may as well fsck all the partitions while I'm there.