1820695 Members
2731 Online
109627 Solutions
New Discussion юеВ

Removing a filesystem

 
MarkSyder
Honored Contributor

Removing a filesystem

Hi everybody.

I'm setting up a new filesystem on a new disc.

I've copied the contents of the old filesystem to a spare filesystem and tried to remove the old filesystem in sam - cannot unmount as the fs is busy. fuser doesn't show anything for the fs.

I thought the command to remove a filesystem was rmfs, but when I boot into single user mode that command isn't recognized. I've brought the server back up normally and searched for rmfs and it doesn't appear to be there.

Guidance on how to remove the old filesystem will be appreciated (provided I'm allowed to make this post).

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
11 REPLIES 11
Pete Randall
Outstanding Contributor

Re: Removing a filesystem

Mark,

There is no special command for removing the file system - you just "rm" the mount point and lvremove the lv. That should be all there is to it!


Pete

Pete
MarkSyder
Honored Contributor

Re: Removing a filesystem

Pete,

That makes sense - where did I get rmfs from? Perhaps I made it up!

A colleague suggested I remove the entry from /etc/fstab, so I've done that and am rebooting now. I'll let you know how I get on.

Mark
The triumph of evil requires only that good men do nothing
Victor BERRIDGE
Honored Contributor

Re: Removing a filesystem

Hi Mark!
> where did I get rmfs from?
I suppose that before week-end, you remembered hearing something alike...
Like rmsf?


All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: Removing a filesystem

I know now!

HAve you been working on AIX lately?
-------------------------------------------------------------------------------
Commands Reference, Volume 4
-------------------------------------------------------------------------------

rmfs Command

Purpose

Removes a file system.

Syntax

rmfs [ -r ] FileSystem

Description

The rmfs command removes a file system. If the file system is a journaled file
system (JFS), the rmfs command removes both the logical volume on which the file
system resides and the associated stanza in the /etc/filesystems file...


All the best
Victor
MarkSyder
Honored Contributor

Re: Removing a filesystem

Victor,

I was going to wait till I'd finished before I awarded points, but you've successfully rumbled me and earned seven points! I worked in tech support on AIX systems for several years before joining the wonderful world of HP UX.

But it's over two years since I worked on an AIX box. Bizarre that rmfs would stick with me. At least I haven't typed smit when I mean sam!

Mark
The triumph of evil requires only that good men do nothing
Victor BERRIDGE
Honored Contributor

Re: Removing a filesystem

You know Mark,
Im happy to hear Im not the only who gets lost on system he believe he knows well...I remembered suddenly I too used to type rmfs so it made me think more ( when I was in charge of a SP2...).
How many times I ended with commands not working like lsvg on HPUX and vgdisplay on AIX, the worst beeing of course stuck in front of hardware issu in AIX and just cant remember ioscan equivalent...

Have a nice week-end

All the best
Victor
MarkSyder
Honored Contributor

Re: Removing a filesystem

Well that went remarkably smoothly. Now I've just got to sit here while the system creates a mirror of the new filesystem - watch paint dry anyone?

Pete, I'm sure your answer was worth 10 points, but as I didn't get the chance to try it I'm giving 7.

Mark
The triumph of evil requires only that good men do nothing
Stephen Keane
Honored Contributor

Re: Removing a filesystem

And there's always the rmsf command to really confuse you! I used to do AIX as well and that caused all sorts of confusion when switching to HP.
Victor BERRIDGE
Honored Contributor

Re: Removing a filesystem

Hey Mark,
We are not alone:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=887353

Look at the last post
A nice one thanks to Gopy

All the best
Victor

TwoProc
Honored Contributor

Re: Removing a filesystem

I think this whole thread (including and especially the owner) should be given comedy points! :-) :-)
We are the people our parents warned us about --Jimmy Buffett
Devender Khatana
Honored Contributor

Re: Removing a filesystem

Hi Everybody,
Allthough never had a opportunity to work on AIX,I too have some similar problems sometime back when I used to use ls and clear on windows and dir and cls on Unix boxes. The solution for some time I found was to link clear to cls & dir to ls in unix box and recreating a few batch files in windows box which intern were executing windows equivalent for unix commands. But this can be done only for commands which do not have any other similar command.

Mark :-

Recreating a file system can be achived by creating a new file system on the LVOL which allready had a file system. Or lvremove will remove the LVOL on which the file system was created. Afterwards you can recreate LVOL and file system.

HTH,
Devender
Impossible itself mentions "I m possible"