Pro/Forums

Pro/Forums (http://forums.procooling.com/vbb/index.php)
-   Snap Server / NAS / Storage Technical Goodies (http://forums.procooling.com/vbb/forumdisplay.php?f=82)
-   -   Unable to unmount share. (http://forums.procooling.com/vbb/showthread.php?t=14615)

BMF 01-19-2008 12:47 PM

Unable to unmount share.
 
Howdy, I realize this is a Snap 'hacking' forum but I assume someone must've run into this before.

We have over 100 shares on a Snap 4500. I have sent this ticket to adaptec 3 times now and have never gotten a response.

Any time we try to remove a share from our Snap 4500 in the web interface it says "Unable to unmount share" anytime we try to do it in the CLI this is what we get:

-----------------------------------------------------------
SnapCLI - Snap Server Command-line Utility, version 4.4.049 SP2
Copyright 2003-2007 Adaptec, Inc. All rights reserved.
-----------------------------------------------------------

[SNAPPA]>share delete share-name=share1
'Sys_ShareDelete(0x8064f38, 45)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share2
'Sys_ShareDelete(0x8064f38, 27)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share3
'Sys_ShareDelete(0x8064f38, 74)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share4
'Sys_ShareDelete(0x8064f38, 60)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share5
'Sys_ShareDelete(0x8064f38, 41)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share6
'Sys_ShareDelete(0x8064f38, 48)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share7
'Sys_ShareDelete(0x8064f38, 75)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).
[SNAPPA]>share delete share-name=share8
'Sys_ShareDelete(0x8064f38, 76)' failed: SYS_ERR_SHARE_UMOUNT_FAILED (102062).

as you can imagine this is pretty annoying as we pay for technical support from adaptec and the only answer we ever get from them is : format your snap and start over from scratch.

If anyone has any ideas, let me know.

BMF

blue68f100 01-20-2008 06:21 AM

Re: Unable to unmount share.
 
I don't know which OS version you are using. You must be the owner of the share to remove it. Everytime I delete a share, I remove all users access to it. Make sure it is clean of files. Change access to your ID as owner, then delete it using the gui. You must login as admin to delete shares. I do not think a user rights w/admin will allow it. So if users auto connect to it you may need to reboot the server after changing owner and removing access to get it clear of users.

If your on v 4.4, I have found a lot of cmds that no longer work by using SSH into the root. I have not tried using shell access to remove shares. I feel everything must be done through the gui to keep all pointers and process running correctly. If you are ssh into the shell, you should get a # prompt if root user. If you do not get this, you do not have root access. It allows you to snoop buts keep your hands tied. I think Adaptec did this to limit users from installing software, that is not on there list of supported programs.

If your paying for support I would pick up the phone and call them, and have your info ready on the email resuest you have send and have not got a satisfactory responce on. Formatting the snap is not an option, unless they want to pay for all the time required to restore all files and users access. Tell them an estimated time of $5k including lost services. Request for a supervisor or manager. Some time it works better going up the latter to rattle some heads.

BMF 01-20-2008 08:52 AM

Re: Unable to unmount share.
 
Quote:

Originally Posted by blue68f100
I don't know which OS version you are using. You must be the owner of the share to remove it. Everytime I delete a share, I remove all users access to it. Make sure it is clean of files. Change access to your ID as owner, then delete it using the gui. You must login as admin to delete shares. I do not think a user rights w/admin will allow it. So if users auto connect to it you may need to reboot the server after changing owner and removing access to get it clear of users.

If your on v 4.4, I have found a lot of cmds that no longer work by using SSH into the root. I have not tried using shell access to remove shares. I feel everything must be done through the gui to keep all pointers and process running correctly. If you are ssh into the shell, you should get a # prompt if root user. If you do not get this, you do not have root access. It allows you to snoop buts keep your hands tied. I think Adaptec did this to limit users from installing software, that is not on there list of supported programs.

If your paying for support I would pick up the phone and call them, and have your info ready on the email resuest you have send and have not got a satisfactory responce on. Formatting the snap is not an option, unless they want to pay for all the time required to restore all files and users access. Tell them an estimated time of $5k including lost services. Request for a supervisor or manager. Some time it works better going up the latter to rattle some heads.

Hi there,

it says in the OP what version its running:

SnapCLI - Snap Server Command-line Utility, version 4.4.049 SP2

Also in the recent versions of Guardian OS there is no longer a 'linux-like' shell. it looks like what I posted above.

I'm logged in as admin, and as I commented when I try to delete shares from the web gui it says 'cannot unmount share' (also as admin).

Thanks for the assistance thus far sir.

BMF

blue68f100 01-20-2008 09:25 AM

Re: Unable to unmount share.
 
Is any one else connected to the snap while you try to delete the share??? Can you delete the share from the windows finder?

Check your access rights and see if you have access. I most all cases root is added if you used the guide to add shares. The admin group is NOT added. Something to check.

Change the ownership of the share to root, reboot and try again.

I had mine mess up when I was testing and had a share listed but there was no share. Since I was testing I just reloaded the snap. I have discovered it best to create the parent share using the gui vs windows. After the share is created for the users they can add and delete all they want.

BMF 01-20-2008 09:48 AM

Re: Unable to unmount share.
 
Quote:

Originally Posted by blue68f100
Is any one else connected to the snap while you try to delete the share??? Can you delete the share from the windows finder?

Check your access rights and see if you have access. I most all cases root is added if you used the guide to add shares. The admin group is NOT added. Something to check.

Change the ownership of the share to root, reboot and try again.

I had mine mess up when I was testing and had a share listed but there was no share. Since I was testing I just reloaded the snap. I have discovered it best to create the parent share using the gui vs windows. After the share is created for the users they can add and delete all they want.

Oh, we always create the shares using the WEB GUI..

there is no such user called root on this system, just admin.

I noticed that on the one i am trying to delete now the permissions in the webgui is set to "Allusers" so i added admingrp and tried to delete it but it says "cannot unmount share" still.

Should I have a user called root?

keep in mind we got this snap 4500 when it first came out and have upgraded it from each release so im not real sure what the story is.

BMF

blue68f100 01-20-2008 12:39 PM

Re: Unable to unmount share.
 
Admin is the only one listed on v4. Some of the older OS version had root and administrator all under the admin group.

Change owner to root or to your self. All users is like a guest which in some cases prevent a single user from deleting it. Then restart the server, to force the change to take place. But only after waiting for 5 min. Rebooting before the owner takes place is what I did that lost it.

Make sure the share is empty.... Clear of all files and folders.

BMF 01-20-2008 05:49 PM

Re: Unable to unmount share.
 
Quote:

Originally Posted by blue68f100
Admin is the only one listed on v4. Some of the older OS version had root and administrator all under the admin group.

Change owner to root or to your self. All users is like a guest which in some cases prevent a single user from deleting it. Then restart the server, to force the change to take place. But only after waiting for 5 min. Rebooting before the owner takes place is what I did that lost it.

Make sure the share is empty.... Clear of all files and folders.

Hi there,

I always login as admin, the confusing part is I created a volume level share at / (i didnt have one before) and I could delete the shares in Windows just fine but not via the webgui or the SSH-CLI I looked at the owner on a few of the folders and they're all owned by admin but it still wouldnt let me delete it.

Also I had a quick question, do you know how to remove a share from the share list without actually deleting the share folder?

somehow we have like 3 shares that reference the same thing...

BMF

blue68f100 01-21-2008 06:33 AM

Re: Unable to unmount share.
 
I had that happen early on when I was testing,by not giving the unit time to create them.

In the /etc there should be a config file called hosts or networks (host.cfg). See if you can open it and see if there there. I will look when I get a chance. All of the settings and parameters are located in *.cfg files. But these can be in other locations beside the /etc directory. If I recall there is a folder at root for every mounting point. This is where the data on the snap resides.

When I get time that afternoon I will look. I think you will have to kill the process inorder to edit these files. This I have never done. With these on all 4 drives I don't know if it will detect a problem if one is different. I don't know if chkdsk will correct it.

Now that you have the problem located Adaptec's support should beable to help you. This is where actually having full root privilges would pay off. Maybe they will tell you a backdoor password to get root priviliges.

Megadeth4168 01-22-2008 05:49 AM

Re: Unable to unmount share.
 
You are not alone! We have a very similar problem.
We have a Snap 4500 with over 100 Shares that were set up for Windows 9x users at the time. We are running Guardian OS version 4.4.045

The issue we are having is slightly different. When we try to remove a share from the web, we lose the connection to the Snap. We can still use SSH but cannot access the Snap from the web browser anymore. After this happens, we use SSH to reboot the Snap server and we are then able to use the Web Browser again. However the Share still exists.

When we attempt to delete a share from Command Line the SSH session shuts down instantly. I can open up a new session, but again the share continues to exist.

blue68f100 01-24-2008 02:56 PM

Re: Unable to unmount share.
 
I had a chance to take a quick look at the file system. There are several folders/directories that keep folders name depending on mounting point. I would start looking under these /directories and see if you can locate where the extra names are located. I did not check for symbolic links. I used putty and ssh in to the shell.
ls / (will give you a directory of what is located under root)
ls /hd/vol_mnt0/...... (I think this is the root, and where all of the files are)
ls /shares/ ( this is all shares created)

Since mine is clean I did not want to do any thing to corrupt it.
As far as removing any may be a task since I can not get su rights.

Let me know what you find. I tried to copy some files from the /etc to my share on the snap and was un suscessful. May need to roll the OS back to v 4.1 to get su rights.

Megadeth4168 01-25-2008 05:05 AM

Re: Unable to unmount share.
 
Ok.... So, here is what I got right now.

Obviously the folders still exist and I can see them in the windows environment. So doing an
ls /hd/vol_mnt0/shares/SYS0/USERS
shows all the folders I see in Windows explorer, I get that.

When I do the share list command from CLI it shows all the shares that I see in the GUI. This includes the shares I've been trying to delete, but just seem to kick me out of the system when attempting to delete them.

Now the interesting thing, is that when I type ls /shares
I see all the shares that I see from the share list command except the ones that I have attempted to delete.

Maybe someone can make some sense of this for me. To me, it looks like it might have gotten through part of the delete process but was unable to remove all References to these shares.

blue68f100 01-25-2008 05:27 AM

Re: Unable to unmount share.
 
What I think happed is the share has been deleated but some of the symbolic links did not get removed. If you were able to get su in root from the ssh you would be able to remove them. But ever since I upgrade from v4.1 to v4.4 I have lost su rights. There may be some more in the /ect (config files) but when I tried to copy them to my folder I got an error.


Now that you know what happen, see if Adaptec Tech support can provide any help. Other wise I don't see what it is good for. You may need to request a higher level tech or supervisor to get it resolved.

Megadeth4168 01-25-2008 10:22 AM

Re: Unable to unmount share.
 
Thanks for the reply, I opened a case with Adaptec, I'll let you know how this gets resolved (if it gets resolved). Hopefully it will help out BMF as well.


All times are GMT -5. The time now is 11:12 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
(C) 2005 ProCooling.com
If we in some way offend you, insult you or your people, screw your mom, beat up your dad, or poop on your porch... we're sorry... we were probably really drunk...
Oh and dont steal our content bitches! Don't give us a reason to pee in your open car window this summer...