- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to create and move the LV from HPSAN to vg00 ?
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
07-09-2009 01:15 AM
07-09-2009 01:15 AM
I have the following filesystem which mount from HP-SAN,
/dev/vgBankHSBC/lv_bankHSBC 4012288 623909 017560 76% /bank1/opt
Which I have to create and move to Vg00, can anyone guide me the steps ?
Many thanks !!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 01:27 AM
07-09-2009 01:27 AM
Solutionyou need to create logical volume using lvcreate.no other way.
lvcreate -L size -n lvname vg00
newfs -F vxfs /dev/vg00/lvol
create mount point and mount the file system.copy the data from /bank1/opt to new mount point
BTW why you need to create data volume in vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 01:39 AM
07-09-2009 01:39 AM
Re: How to create and move the LV from HPSAN to vg00 ?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 01:46 AM
07-09-2009 01:46 AM
Re: How to create and move the LV from HPSAN to vg00 ?
usually it's good to keep vg00 only for system crucial filesystems, like /stand, /usr, /opt, etc.
Anyway if you are really interested to move data from a filesystem to another one, you can use the following command:
- create the new filesystem on vg00 by lvcreate and newfs;
- move data:
cd /bank1/opt
find . -xdev -print | cpio -pdmvux /
Otherwise you can backup data from /bank1/opt and restore them to new filesystem.
Definitely you have some possibilities.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 01:55 AM
07-09-2009 01:55 AM
Re: How to create and move the LV from HPSAN to vg00 ?
create a new lv under vg00
mount it and then move all data from this lv to new lv or
take a backup of existing lv create a new lv under vg00, mount it and restore all data from your backup.
before going to create lv into vg00 check you vg00 is having sufficient space to create new lv.
steps are
vgdisplay -v vg00
lvcreate -L 3920 -n myvolume /dev/vg00
newfs -F vxfs -o largfiles /dev/vg00/mymolume
mkdir /newmountpoint
mount /dev/vg00/myvolume /newmountpoint
then cipo to copy data
find . -print | cpio -pdl /newmountpoint
for more info on cpio see the below link
http://www.ncsa.illinois.edu/UserInfo/Resources/Hardware/IBMp690/IBM/usr/share/man/info/en_US/a_doc_lib/cmds/aixcmds1/cpio.htm
Suraj
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 02:35 AM
07-09-2009 02:35 AM
Re: How to create and move the LV from HPSAN to vg00 ?
but i have to mount to the same directory /bank1/opt....how can I do that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 02:40 AM
07-09-2009 02:40 AM
Re: How to create and move the LV from HPSAN to vg00 ?
/bank1/opt_new
copy the data, unmount the old and mount the new LVOL to the original mount point.
You need to stop the accessing application for that.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 02:54 AM
07-09-2009 02:54 AM
Re: How to create and move the LV from HPSAN to vg00 ?
Follow the Torsten's steps.
Regards
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 04:06 AM
07-09-2009 04:06 AM
Re: How to create and move the LV from HPSAN to vg00 ?
Follow Above procedure BUT
Make sure to update /etc/fstab with new changes
Regards
Sanjeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2009 08:26 PM
07-09-2009 08:26 PM
Re: How to create and move the LV from HPSAN to vg00 ?
>>but i have to mount to the same directory /bank1/opt....how can I do that
you already have this mount point on your system so no need to create, after creating new lv and copy or move old data into new lv just mount
mount /dev/vg00/myvolume /bank1/opt
and change your fstab with your new lv name.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2009 12:32 AM
07-10-2009 12:32 AM
Re: How to create and move the LV from HPSAN to vg00 ?
1. lvcreate -L 3072 -n lv_bankHSBC /dev/vg00
2. newFS -F vxfs /dev/vg00/rlv_bankHSBC
3. unmount /bank1/opt
4. cp all data from /bank1/opt to /bank1/new_opt/
5. rename /bank1/opt to /bank/opt_old
6. rename /bank1/new_opt to /bank1/opt
7. mount /dev/vg00/lv_bankHSBC /bank1/opt
right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2009 12:34 AM
07-10-2009 12:34 AM
Re: How to create and move the LV from HPSAN to vg00 ?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:19 AM
07-14-2009 12:19 AM
Re: How to create and move the LV from HPSAN to vg00 ?
steps are good however you don't need points 5 and 6 to rename mount points. You can change just the logical volume definition into /etc/fstab in order to have /dev/vg00/lv_bankHSBC. Then umount the old filesystem and mount the new one as follows:
mount /bank1/opt
This command reads into /etc/fstab and will mount the new filesystem for the lvol /dev/vg00/lv_bankHSBC.
HTH.
Best regards,
Fabio