- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Renaming 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
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
03-12-2002 01:36 PM
03-12-2002 01:36 PM
Thanks in advance for any help
Paul
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:48 PM
03-12-2002 01:48 PM
Re: Renaming a filesystem
Mount (b) on /tmp/abcd
cp * from (a) (b)
unmount (b)
unmount (a)
vi /etc/fstab for doing the required change for lvname
then
mount -a
Hope this helps,
Sandip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:48 PM
03-12-2002 01:48 PM
Re: Renaming a filesystem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:48 PM
03-12-2002 01:48 PM
Re: Renaming a filesystem
Say fsa is the original fs and
fsb is the new one with the correct size.
Create fsb with the correct size
copy over the data from fsa to fsb
unmount fsa
edit /etc/fstab
You should just need to change the lv# for fsa to the lv# you created for fsb.
Mount fsa backup up.
Hope this makes sense
nancy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:53 PM
03-12-2002 01:53 PM
Re: Renaming a filesystem
You have /dev/vg01/lvol1 mounted as /test. You configure /dev/vg01/lvol2 and you want that to be your new /test area with all data from /test. How do you do it?
1) mkdir /new_test
2) mount /dev/vg01/lvol2 /new_test
3) cp -Rp /test/* /new_test
4) umount /new_test
5) umount /test
6) mount /dev/vg01/lvol2 /test
(/dev/vg01/lvol2 just became your new /test area)
7) vi /etc/fstab
(change the line '/dev/vg01/lvol1 /test .....' so that it is now '/dev/vg01/lvol2 /test ....' so that the correct LV mounts as /test when the machine reboots.)
8) lvremove /dev/vg01/lvol1
(If you want to now get rid of it, that is)
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:53 PM
03-12-2002 01:53 PM
Re: Renaming a filesystem
Doing some cleanup here.
# remove the old logical volume, using lvremove or sam.
# remove the entry for (a) from /etc/fstab.
then proceed as above.
Sorry if I caused any confusion.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2002 01:57 PM
03-12-2002 01:57 PM
Re: Renaming a filesystem
Paul