- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Renaming of LV
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
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
тАО12-15-2005 01:38 AM
тАО12-15-2005 01:38 AM
I need to change the name of some logical volume,
how can i do that?
My file system details are:
/dev/vg10/bunty_data_tmp01
4096000 373912 3489465 10% /bunty/data/tmp01
will i loose the data if i rename these LV.
I need to make it:
/dev/vg10/bunty_oracle_tmp01
4096000 373912 3489465 10% /bunty/oracle/tmp01
Note : I have online JFS.
Thanks
vipin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:42 AM
тАО12-15-2005 01:42 AM
SolutionThere is no way to rename an LV that I ever recall seeing. You have to create a new one, create a new file system on it, copy the data to it, and mount it in place of the old one.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:44 AM
тАО12-15-2005 01:44 AM
Re: Renaming of LV
Your steps would be:
1) Stop Oracle -- You need to do this because we are going to unmount the filesystem.
2) umount /bunty/data/tmp01
3) cd /dev/vg10
4) mv bunty_data_tmp01 bunty_oracle_tmp01
5) mv rbunty_data_tmp01 rbunty_oracle_tmp01
6) mkdir /bunty/oracle -- If it does not already exist.
7) vi /etc/fstab -- Change the LV name and the mountpoint to their new values.
8) mount /bunty/oracle/tmp01
9) If you have more to do -- Go to Step 2 -- Else --
10) Make whatever changes to Oracle that are necessary to point to the new file locations.
11) Start Oracle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:44 AM
тАО12-15-2005 01:44 AM
Re: Renaming of LV
Dear Bunty,
Irrespective of the lvol name you can mount the lvols in any directory.
You can unmount and mount the filesystem in you required directory ( of the new name) and start using it, this wont cause any data lose.
Anyway the OS will access using the mount point only.
With Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:44 AM
тАО12-15-2005 01:44 AM
Re: Renaming of LV
To rename a logical volume do this:
# unmount /mountpoint
# mv /dev/vgXX/oldname /dev/vgXX/newname
# mv /dev/vgXX/roldname /dev/vgxx/rnewname #...note the raw device...
# mkdir /newmountpoint #...optional...
# modify /etc/fstab to reflect
# mount /dev/vgXX/newname /mountpoint #...or /newmountpoint
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:45 AM
тАО12-15-2005 01:45 AM
Re: Renaming of LV
you have to copy your files..
and recreate a new lvol one.
then mount it to new mount point.
regds
LF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:49 AM
тАО12-15-2005 01:49 AM
Re: Renaming of LV
1) umount /bunty/data/tmp01
2) rmdir /bunty/data/tmp01
3) mkdir -p -m 750 /bunty/oracle/tmp01
4) edit /etc/fstab and change the existing entry to use the new mointpoint.
5) mount /bunty/oracle/tmp01
If you also wish to rename the LVOL (not necessary) then after step 3 above:
3a) mv /dev/vg10/bunty_data_tmp01 /dev/vg10/bunty_oracle_tmp01 and make this change in /etc/fstab as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 01:52 AM
тАО12-15-2005 01:52 AM
Re: Renaming of LV
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 02:00 AM
тАО12-15-2005 02:00 AM
Re: Renaming of LV
The question as posted asks how to change the name of a *logical volume* and repeats it its body "...rename these LV".
Clay is correct, Geoff. The post is ambiguous.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2005 04:23 AM
тАО12-16-2005 04:23 AM
Re: Renaming of LV
To rename a lvol I would do it this way;
lets say that you want to rename logical volume /dev/vg01/lvol2 to /dev/vg01/lvolold
and the volume group uses /dev/dsk/c1t0d0
/dev/dsk/c2t0d0
and you have for lvol1 lvol2 lvol3
with fstab entries:
/dev/vg01/lvol1 /mnt1 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg01/lvol2 /mnt2 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg01/lvol3 /mnt3 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
1. cp /etc/fstab /etc/fstab.back
2. vi /etc/fstab.back change lvol2 to lvolold
3. Unmount /mnt1 /mnt2 /mnt3
4. vgchange -a n /dev/vg01
5. vgexport -v -m /tmp/vg01.map /dev/vg01 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
6. vi /tmp/vg00.map and change lvol2 to lvolold
7. mkdir /dev/vg01
8. mknod /dev/vg01/group c 64 0x010000
9. vgimport -v -m /tmp/vg01.map /dev/vg01 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0
10. vgchange -a y /dev/vg01
11. cp /etc/fstab.back /etc/fstab
12. mountall
Rory