- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing a filesystem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 12:44 AM
тАО05-27-2005 12:44 AM
Removing a filesystem
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 12:52 AM
тАО05-27-2005 12:52 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 12:54 AM
тАО05-27-2005 12:54 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:01 AM
тАО05-27-2005 01:01 AM
Re: Removing a filesystem
> where did I get rmfs from?
I suppose that before week-end, you remembered hearing something alike...
Like rmsf?
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:03 AM
тАО05-27-2005 01:03 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:07 AM
тАО05-27-2005 01:07 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:16 AM
тАО05-27-2005 01:16 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:16 AM
тАО05-27-2005 01:16 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 01:30 AM
тАО05-27-2005 01:30 AM
Re: Removing a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 02:00 AM
тАО05-27-2005 02:00 AM
Re: Removing a filesystem
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 02:21 AM
тАО05-27-2005 02:21 AM
Re: Removing a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-27-2005 07:34 PM
тАО05-27-2005 07:34 PM
Re: Removing a filesystem
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