- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Rename the File System
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
Forums
Discussions
Discussions
Discussions
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
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
10-22-2007 05:09 AM
10-22-2007 05:09 AM
Rename the File System
I don´t have JFS, and i need rename one File System, how can i do this job, with command line ? how can i entrance in machine whit single user ?
Thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:15 AM
10-22-2007 05:15 AM
Re: Rename the File System
remount filesystem on new mount point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:18 AM
10-22-2007 05:18 AM
Re: Rename the File System
>> I don´t have JFS,
So what do you have? :-)
Why not share a the output for 'bdf filesystem' with us?
Or the fstab line involved?
>> nd i need rename one File System, how can i do this job, with command line ?
Uh... just
- umount
- mv /old_file_sysmtem_name /new_file_system
- mount...
Be sure to adapt /etc/fstab
You want to mv the old name away to make sure any stray application code does not start using it and 'land' on /
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:18 AM
10-22-2007 05:18 AM
Re: Rename the File System
What you have to do is trivially simple. Let's suppose that the existing filesystem is mounted as /old and we want to change that to /new.
1) Stop all applications that have /old in use. Lsof or fuser can be used to determine this.
2) umount /old
3) Edit /etc/fstab and change entry that contains /old to /new. Only the mountpoint in this line needs to be changed.
4) mv /old /new
5) mount /new
-----------------------------------------
To bring the box up in single-user mode:
1) Shutdown -r -y 0
2) At the console, interrupt the boot process.
3) BOOT PRIMARY
4) Interact with IPL/ISL? Y
5) ISL> hpux -is
This will bring you up in single-user logged in as root BUT this shouldn't be needed for your mount/umount task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 05:23 AM
10-22-2007 05:23 AM
Re: Rename the File System
You know this operation is a simple umount create a directory mount operation? Yes?
You don't need to go into single user mode to do this. However it might prevent people from using the filesystem during this operation.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2007 01:43 PM
10-22-2007 01:43 PM
Re: Rename the File System
hi,
to go to single user mode, you can use
#shutdown 0
to multi-user mode
#init 3
If you want to rename the mount point ?
which filesystem you want to rename?
may be bdf command will help to see which filesystem want to rename ?
WK