Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-03-2012, 12:33 PM   #1
rstartree
Prospect
 
Join Date: Nov 2012
Posts: 5
My iSCSI drive got renamed. Need to restore old name

I use a NAS for my Mac OS X Server system. I've dedicated one of the iSCSI LUNs to store all my user home directories. Today, for some inexplicable reason, the iSCSI drive got renamed from Foobar to 00

The mount point also got renamed to from /Volumes/Foobar to /Volumes/00.

I manually renamed /Volumes/00 back to /Volumes/Foobar by opening a Terminal window and typing 'mv 00 Foobar', but I would like to restore the old name for the iSCSI drive.

Can someone show me how to do this?
rstartree is offline   Reply With Quote
Old 11-03-2012, 03:32 PM   #2
cpragman
All Star
 
Join Date: Jan 2004
Location: Limerick, PA
Posts: 693
Not sure why it got renamed, but you can force it to have a particular volume name using fstab.
https://developer.apple.com/library/...5/fstab.5.html
cpragman is offline   Reply With Quote
Old 11-03-2012, 06:13 PM   #3
rstartree
Prospect
 
Join Date: Nov 2012
Posts: 5
Quote:
Originally Posted by cpragman
Not sure why it got renamed, but you can force it to have a particular volume name using fstab.
https://developer.apple.com/library/...5/fstab.5.html

Thanks. I tried to edit the /etc/fstab file, but I am running Mac OS X Server 10.6.8, and there is no /etc/fstab file. The closest is a file called /etc/fstab.hd, which contains the following:
IGNORE THIS FILE.
This file does nothing, contains no useful data, and might go away in
future releases. Do not depend on this file or its contents.
Is there a away to fix an iSCSI volume name in Mac OS X Server?
rstartree is offline   Reply With Quote
Old 11-04-2012, 03:34 AM   #4
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,957
I have no experience with OS X Server, but normally you just rename the drive in Finder the way you would rename any file/folder.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 11-04-2012, 01:14 PM   #5
rstartree
Prospect
 
Join Date: Nov 2012
Posts: 5
Quote:
Originally Posted by hayne
I have no experience with OS X Server, but normally you just rename the drive in Finder the way you would rename any file/folder.

I tried to rename it in the Finder by right-clicking the drive and selecting 'Get Info'. I then tried to change back to the earlier name by typing 'Foobar' in Name & Extension. When I try to save it (by enterring the carriage return), I get the message:
The name "Foobar" can't be used.

Try using a name with fewer characters, or with no punctuation marks.
I gather that some part of the file system got corrupted, so that I cannot rename the iSCSI drive Volume using the Finder. Perhaps I can circumvent this problem by trying to rename the drive in the command line instead of the Finder. Is there a way to do this in the command line?

Last edited by rstartree; 11-04-2012 at 01:26 PM.
rstartree is offline   Reply With Quote
Old 11-04-2012, 06:04 PM   #6
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,957
First off, try renaming it to something other than "Foobar" - i.e. try a name that hasn't been used before.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 11-04-2012, 09:02 PM   #7
rstartree
Prospect
 
Join Date: Nov 2012
Posts: 5
Quote:
Originally Posted by hayne
First off, try renaming it to something other than "Foobar" - i.e. try a name that hasn't been used before.

I tried that, but I get the same error message. Renaming that iSCSI drive volume via the Finder seems to be inoperative in the current circumstances.
rstartree is offline   Reply With Quote
Old 11-04-2012, 09:32 PM   #8
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 31,957
I assume you've tried rebooting that Mac
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 11-04-2012, 11:17 PM   #9
rstartree
Prospect
 
Join Date: Nov 2012
Posts: 5
Quote:
Originally Posted by hayne
I assume you've tried rebooting that Mac

That would be giving me more credit than I deserve.

I was apprehensive about rebooting the machine, fearing that something worse would happen to the filesystem. After your message, though, I thought: What the hell...

So I rebooted, and tried to rename the iSCSI drive volume using the Finder again. This time it worked!

Problem solved!

I don't know what caused the iSCSI drive to get renamed, but I'm glad that a reboot cleared it up. Many thanks for you help and your suggestions. it's much appreciated.
rstartree is offline   Reply With Quote
Old 11-05-2012, 04:19 AM   #10
agentx
Hall of Famer
 
Join Date: Feb 2003
Location: Brighton, UK
Posts: 3,832
iSCSI on OS X is far from perfect and there are certainly issues relating to mount points going bad. I am glad that a restart "fixed" the issue but expect it to happen again as Apple do not provide the iSCSI protocol stack which SHOULD be part of the kernel not a bolt on to OS which will be prone to issues.

Are you using the GlobalSAN driver ?
agentx is offline   Reply With Quote
Old 12-06-2012, 04:31 PM   #11
cpragman
All Star
 
Join Date: Jan 2004
Location: Limerick, PA
Posts: 693
if /etc/fstab doesn't exist, you can always create it yourself.
cpragman is offline   Reply With Quote
Reply

Tags
iscsi drive

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump



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


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.