Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 10-15-2018, 01:35 PM   #1
LQ Newbie
Registered: Oct 2018
Posts: 1

Rep: Reputation: Disabled
Can't mount back filesystem in solaris 5.8

hi everyone, I'm on a need of help. I'm a bit new to Solaris.

So a bit of explanation about what's going on:

I have and LDOM Solaris 5.10 (called pro-ldom1) and it has a zone residing in it, called server which has a Solaris 5.8 installed.

The Zone had a fileystem (Lofs) called /REMOTOS, this is looking it from the LDOM

pool      2.50T   272G  10.6G  /pool
pool/REMOTOS   306G   272G   306G  /pool/REMOTOS
We needed to move that FS to a new pool, which was created in the LDOM and the new pool is called bdbackup.

root@pro-ldom1 # zpool list
pool       2.81T  2.17T   654G  77%  ONLINE  -
backupbd   496G    94K   496G   0%  ONLINE  -
The FS is shared to other servers as NFS, so I proceeded to remove (unmount) from the other servers, that FS. Finally shutdown the NFS service in the LDOM only

root@ldom1 # svcs -a | grep nfs
disabled       10:49:59 svc:/network/nfs/cbd:default
disabled       10:50:16 svc:/network/nfs/client:default
disabled       11:38:09 svc:/network/nfs/server:default
disabled       11:38:29 svc:/network/nfs/rquota:default
disabled       11:38:29 svc:/network/nfs/mapid:default
disabled       11:38:29 svc:/network/nfs/status:default
disabled       11:38:29 svc:/network/nfs/nlockmgr:default
I entered the zone to confirm nothing was being written to the FS

[CODE]root@server # date
Mon Oct 15 10:26:55 GMT 2018
root@server # cd /REMOTOS
root@server # ls -l
total 21
drwxr-xrwx 2 root other 15 Oct 14 16:18 dir1
drwxr-xrwx 2 root other 14 Oct 14 21:40 dir2
drwxr-xrwx 2 root other 6 Oct 14 16:00 dir3
drwxr-xrwx 2 root other 4 Oct 15 09:56 dir4
drwxr-xrwx 2 root other 12 Oct 14 20:07 dir5

I copied the data of the FS to another server, just as backup and proceed to unmount the FS, by first removing the dir from the zone configuration and then unmounting the fs

root@ldom1 # zonecfg -z server
zonecfg:server> remove fs dir=/REMOTOS
zonecfg:server> commit
zonecfg:server> exit

root@ldom1 # umount /server/REMOTOS
cannot unmount '/server/REMOTOS': Device busy
root@ldom1 #
root@ldom1 # umount -f /server/REMOTOS

It effectively was removed when I listed the FS with df -h

When I enter the zone, for some reason the dir /REMOTOS don't showed up, I realized the data is lost, since there is more space available now in the server.

Now I tried to recreate the dir /REMOTOS but I get these errors

root@server # cd /REMOTOS
bash: cd: /REMOTOS: I/O error
root@server# mkdir /REMOTOS
mkdir: Failed to make directory "/REMOTOS"; File exists
root@server# cd /REMOTOS
bash: cd: /REMOTOS: I/O error
root@server# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/.SUNWnative/usr     30916558 16552461 14054932    55%    /.SUNWnative/usr
**df: cannot statvfs /REMOTOS: I/O error**
When I do a simple "ls" it shows the directory, but if I do a "ls -l" it doesn't show up, which is weird. This happens in the LDOM as well in the zone

root@server# ls
a                  bd3                  home               net                rhsgpmia           software           TT_DB
server             bda                dev                kernel             nohup.out          rodrigossaback     spool              usr
auditoria2012      bin                devices            lib                opt                root               sqlnet.log         var
backup             cdrom              DWH                licencias.lst      platform           rootdisk           state              vol
backup.log         core               etc                lost+found         proc               sapbp3             TEMPORAL           xfn
REMOTOScrontabderoot.txt  export             mnt                prueba.tar         sbin               TMP
bd                 d                  flar               nbu                respaldo           SIEPRO             tmp
root@server # ls -l
./REMOTOS: I/O error
total 668978
drwxr-xr-x   2 root     other        512 Feb 24  2013 a
lrwxrwxrwx   1 root     other          1 Oct 21  2015 server -> /
drwxr-xr-x   4 root     other        512 Oct 21  2015 auditoria2012
drwxr-xr-x   6 root     root           7 Oct  5 23:19 backup
-rw-r--r--   1 root     other       8793 Sep 24  2009 backup.log
drwxr-xr-x  27 root     root          27 Oct 28  2015 bd
drwxr-xr-x   2 root     other        512 Mar  6  2018 bd3
drwxr-xr-x  28 oracle9  dba           28 Dec 11  2015 bda
lrwxrwxrwx   1 root     root           9 Oct 21  2015 bin -> ./usr/bin
drwxr-xr-x   2 root     nobody       512 Jan 27  2013 cdrom
-rw-------   1 root     root     4285704 Jan 20  2008 core
-r--------   1 root     other      15360 Oct 21  2015 crontabderoot.txt
-rw-r--r--   1 root     other       1310 Oct 11  2013 d
-rwx------   1 root     other         70 Feb 22  2013
drwxr-xr-x  12 root     sys         1024 Apr 23 14:30 dev
drwxr-xr-x   2 root     sys          512 Jun 26  2006 devices

I tried to mount it back with zoneconfg but not avail

root@pro-ldom1 # zonecfg -z server
zonecfg:server> add fs
zonecfg:server:fs> set dir=/REMOTOS
zonecfg:server:fs> set special=/server/REMOTOS
zonecfg:server:fs> set type=lofs
zonecfg:server:fs> end
zonecfg:server> verify
zonecfg:server> commit
zonecfg:server> exit
root@ldom1 # mount -F lofs /REMOTOS/ /export/zonas/server/root/REMOTOS
mount: Cannot stat mount point /export/zonas/server/root/REMOTOS.
mount: I/O error
At this point I'm not sure what to do, I have looked up in the internet but everything that I've been doing doesn't work out.
I don't care about the data since I have it backup but we have to do same procedure on another server. As well I would like to fix the errors I'm getting about that FS. Hopefully no reboot required since is a production server that needs to be up 24x7.


Last edited by cees09; 10-18-2018 at 02:20 PM.


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
Mount filesystem separately on Solaris container running on 5.10 Sean1988 Solaris / OpenSolaris 3 09-12-2015 02:55 PM
LXer: SSHFS(Secure SHell FileSystem): Securely Mount remote filesystem over ssh LXer Syndicated Linux News 0 11-13-2013 07:30 PM
Can't mount device: mount you must specify the filesystem type elrodri Linux - Server 1 04-17-2012 04:52 AM
Mount SamFS filesystem on Linux (NFS mount ?) michalkm Linux - General 0 02-24-2009 06:35 AM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 09:48 AM.

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