HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- data move
Operating System - HP-UX
1832280
Members
1841
Online
110041
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
11-02-2004 01:37 PM
11-02-2004 01:37 PM
hello everyone
I have a subdirectory /data/esm that resides in the root file system. I need to get the data in it's own filesystem. I figured the best way to do this would be to shut the app down,
1. create a new lvol and filesystem,
2. create a temporary mount point,
3. mount it on the new filesystem,
4. mv the /data/esm directory and all it's files into the temp mount point
5. unmount the temp mount point
6. mount the filesystem on the /data/esm mount point
7. Bring up the app
That should just about cover it ?
Thanks in advance
I have a subdirectory /data/esm that resides in the root file system. I need to get the data in it's own filesystem. I figured the best way to do this would be to shut the app down,
1. create a new lvol and filesystem,
2. create a temporary mount point,
3. mount it on the new filesystem,
4. mv the /data/esm directory and all it's files into the temp mount point
5. unmount the temp mount point
6. mount the filesystem on the /data/esm mount point
7. Bring up the app
That should just about cover it ?
Thanks in advance
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 01:45 PM
11-02-2004 01:45 PM
Solution
Hi,
Yes. Except do not mount it manually. Add the entry in /etc/fstab and use the command 'mount /data/esm'. That will ensure integrity of your fstab entries. Also do not 'mv' the data. "cp" the data. That way your backout is ensured.
-Sri
Yes. Except do not mount it manually. Add the entry in /etc/fstab and use the command 'mount /data/esm'. That will ensure integrity of your fstab entries. Also do not 'mv' the data. "cp" the data. That way your backout is ensured.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 01:48 PM
11-02-2004 01:48 PM
Re: data move
Hi,
Thanks for the reply. I will tar the data for a backup. If I don't mv it out of the root filesystem it won't free up any space ?
Ian
Thanks for the reply. I will tar the data for a backup. If I don't mv it out of the root filesystem it won't free up any space ?
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 02:07 PM
11-02-2004 02:07 PM
Re: data move
If you don't have files over 2GB (which I don't assume), you can directory use tar to copy the files.
cd /data/esm; tar cf - .|( cd /newfilesystem; tar xvf - )
I meant do not move the data first. Copy it. Start the application. Make sure everything works fine and then remove the old directory after taking a good backup.
-Sri
cd /data/esm; tar cf - .|( cd /newfilesystem; tar xvf - )
I meant do not move the data first. Copy it. Start the application. Make sure everything works fine and then remove the old directory after taking a good backup.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP