- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Move Filesystem the VGx to VGy
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-10-2010 06:52 AM
03-10-2010 06:52 AM
there is a filesystem
/ usr / sap / audit
LV: / dev/vgECCprodr5/lvsapaudit
must move to another VG
New VG: / dev / VGaudit / lvsapaudit
as I do? what are the commands to be executed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 06:56 AM
03-10-2010 06:56 AM
Re: Move Filesystem the VGx to VGy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 07:02 AM
03-10-2010 07:02 AM
Re: Move Filesystem the VGx to VGy
/usr/sap/audit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 07:06 AM
03-10-2010 07:06 AM
Re: Move Filesystem the VGx to VGy
You need to create your new filesystem within your new logical volume within your new volume group.
Then, mount the new (empty) filesystem and do:
# cd /srcdir && pax -r -w -pe . /dstdir
...where '/srcdir' is your old filesystem ('lvsapaudit') and '/dstdir' is your new one ('newlvsapaudit'). You could do this when the filesystems are not in use.
When you are done and satisfied, rename your new filesystem to be the old name and edit your 'etc/fstab'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 07:14 AM
03-10-2010 07:14 AM
Re: Move Filesystem the VGx to VGy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 07:52 AM
03-10-2010 07:52 AM
Re: Move Filesystem the VGx to VGy
Yes, As mentioned by >>JRF
pvcreate /dev/rdsk/cxtxdx
mkdir /dev/VGaudit
mknod /dev/VGaudit/group c 64 0xMM0000
where MM is a unique identifier (ex 01 for vg01)
vgcreate -s 32 -n /dev/VGaudit (man vgcreate)
lvcreate -L
newfs -F vxfs -o largefiles /newfs -F vxfs -o largefiles /dev/VGaudit/rlvsapaudit
add entry in the /etc/fstab for new created file system
mount new file system
than,you use method suggested by >JRF
or
Example :-
# export PATH=$PATH:/usr/sbin
# cd /var/opt/omni; fbackup -f - -i . | (cd /var/opt/omni2; frecover -f - -r)
important . pls perform all steps while taking downtime from "Sap Application"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 08:02 AM
03-10-2010 08:02 AM
Re: Move Filesystem the VGx to VGy
There is no way to move the filesystem without moving the LV. And there is no way to move an LV between VGs.
You must copy the data to the new filesystem within the new LV.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 10:49 AM
03-10-2010 10:49 AM
Re: Move Filesystem the VGx to VGy
I think the new vg, lv and filesystem
I copy temporary files to the new filesystem??
it works?
LV need not move the file system only moving to a new VG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 03:36 PM
03-10-2010 03:36 PM
SolutionYes It would work, we can do it , hence its referring to SAP application FS, you may need help of your app's team to give hand on pointing the new file system location in app's settings. that beyond "Sys Admin" role - it's just a suggestions from my side.
>>it works?<<
Yes It works
>>>LV need not move the file system only moving to a new VG<<
yes . only trick, copy of the data from old lv to new VG.(You use HPUnix command like .tar,cpio,fbackup,pax) or Any Backup Software like (HP Data protector )backup and restore
As suggested on above posts we can't move "lv" from one (VG) another (VG-New)
man pvmove for more information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2010 04:28 PM
03-10-2010 04:28 PM
Re: Move Filesystem the VGx to VGy
>there is a filesystem
/ usr / sap / audit
LV: / dev/vgECCprodr5/lvsapaudit
must move to another VG
New VG: / dev / VGaudit / lvsapaudit
Ans:
A filesystem cannot be moved to another VG.
You have to create a new filesystem on the other VG , and copy the data.
Because the space can not be moved between VGs as they consists of different disks.
So the best way to do it,
- Check space requirement on the other VG.
- Create equal amount of filesystem with same filesystem naming like VGaudit/lvsapaudit
- newfs the lv, mount it, add in /etc/fstab if it is not under cluster.
- mount it.
- Copy the data using unix command , if you have rsync you can do it very well and it will faster and stable.
Ex: # rsync -avz /old_FS /new_fs/
- Once copy done , veryfy the size with source and you can unmount the source FS.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2010 06:08 AM
03-11-2010 06:08 AM
Re: Move Filesystem the VGx to VGy
backup data old fileSystem /usr/sap/audit (tar)
umount filesystem /usr/sap/audit
create new VG, LV and Filesystem:
LV: /dev/VGaudit/lvsapaudit
FileSystem: /usr/sap/audit
copy data to new FileSystem /usr/sap/audit
this correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2010 06:23 AM
03-11-2010 06:23 AM
Re: Move Filesystem the VGx to VGy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2010 06:48 AM
03-11-2010 06:48 AM