Operating System - HP-UX
1833730 Members
2540 Online
110063 Solutions
New Discussion

Re: Some question about logical volumes and acl's

 
Peer-Joachim Koch
Occasional Advisor

Some question about logical volumes and acl's

He,

I have to move some lv from our current file server (hpux 11.0) to a newer machine (also 11.0). For most file systems rsync is doing a nice job, but all acl settings are lost ... :(
All acl are from windows user (using samba).

1) Is there a way to transfer all acl's ?
(getacl -> setacl for each file ??)

2) A question more related to the VG.
Can I export a lv one a single pv from a vg and import everything on the other machine ?

Thanks for your help!

Bye, Peer
6 REPLIES 6
Cem Tugrul
Esteemed Contributor

Re: Some question about logical volumes and acl's

Hi,

i think this attachment will guide
what you need..

good luck,
Our greatest duty in this life is to help others. And please, if you can't
Steven E. Protter
Exalted Contributor

Re: Some question about logical volumes and acl's

As far as loving logical volume's go:

Section 2 of your question.

You can use vgexport on an entire volume group and then use vgimport and take the entire volume group to another machine if:

IF the volume group is on disk that can be accessed by both machines.

Otherwise your alternative is to back up the data, create the volume group from scratch on the new machine and restore the data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peer-Joachim Koch
Occasional Advisor

Re: Some question about logical volumes and acl's

Hi,

well most part's of the LVM manual
do I know. I have a small file server
with ~20 pv and 40 lv with 10TB disk space :)

I wanted to move the whole VG, but my boss
wanted everything to be transfer in smaller
units and put together into a new order ....

So if a "lvsplit" is not possible I have
to use rsync. I'm currently trying to build
a rsync with +DA2.0W +DS2.0W -D_LARGEFILE64_SOURCE
to prevent the "out of memory" error for
large folders. (HP will not fix the wrong working function).
However, this is already working. Now I
have to look for ACL's ....

And I have a couple of large lv to transfer
(500G -> 1TB), but my disk pool is not sooo big.

Bye, Peer
Ermin Borovac
Honored Contributor

Re: Some question about logical volumes and acl's

fbackup/frecover can deal with large files (> 2G) and ACLs.

# fbackup -i -f - | remsh "/usr/sbin/frecover -rv -f -"
Devender Khatana
Honored Contributor

Re: Some question about logical volumes and acl's

Hi,

Yes , a LV which is allocated on a single PV can be accessed on other host. This can be achived by importing that VG on the second host and then activating VG with "vgchange -a y -q n /dev/vgname". This shall give you access to all those lvols which were on that PV.

HTH,
Devender
Impossible itself mentions "I m possible"
Tim D Fulford
Honored Contributor

Re: Some question about logical volumes and acl's

Whoooo slow down.

You certainly DO NOT want to have the same volume group actie on two machines at the same time. You will corrupt teh data. You CAN move the disks, or disconeect them from one host but please do not try to create some form of clusered file system. If this is what you wnat use NFS.

Regards

Tim
-