Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Content of external disk 1

Status
Not open for further replies.

cipaera

Technical User
May 14, 2007
24
NL
Hello people,

I hope somebody can help me with this.

The system is p5 9110-510 with AIX 5.3.
I want to copy one big directory (about 10-30GB) to an unpluggable harddisk on system A,
which later will be attached to system B. And this system B should see the directory.

What I think I should do on system A:
1. attach the HDD to the system A -> cfgmgr
2. make logical volume transportlv (vg: rootvg) & filesystem jfs
& directory "/dir_to_transport" & mount it
3. recursively copy the local directory to "/dir_to_transport"
4. umount "/dir_to_transport" (HOW?) & rmdev -l HDD -d & unplugge HDD

On system B:
1. attach the HDD to the system A -> cfgmgr
2. ?
3. ?
... ?


And this is what I want to reach:
"Voila... system B can see "/dir_to_transport" on HDD."

Thanks in advance.

Best regards,
cipaera
 
1. You'd need to create a separate VG on the disk, as AIX won't be very happy with you unplugging a disk that is a member of a live VG.

2. I'm not sure about USB attached disk being recognized in AIX 5.3 - could exist but I have no knowledge of it...

3. Then you'd go like this
initially:
- connect disk
- cfgmgr => hdiskXX
- make transvg on hdiskXX
- make lv and jfs2 (jfs is kind of limited in size)
then:
systemA
- use disk by copying whatever you want to /transport_dir
- unmount /transport_dir
- varyoffvg transvg
- exportvg transvg
- rmdev -l hdiskXX
- disconnect the disk, move over to other system
systemB
- cfgmgr => hdiskYY
- importvg -y transvg hdiskYY
- mount /transport_dir
- get to data in /transport_dir
- ...
- unmount, varyoffvg, exportvg, rmdev -l hdiskYY
- disconnect, move over to other system
...



HTH,

p5wizard
 
Wow, this is what I'm looking for!

p5wizard...thank you very much!

Best regards,
cipaera
 
p5wizard..
Don't I have to varyon the disk first on systemB after the importvg command?

systemB
- cfgmgr => hdiskYY
- importvg -y transvg hdiskYY
- varyon hdiskYY <================ ???

BR, cipaera
 
This is from the manual page of importvg

Code:
 An imported volume group is automatically varied unless the volume group is Concurrent Capable. You must use the varyonvg command to activate Concurrent Capable volume groups before you access them.

So you don't need the varyon hdiskYY!

Regards,
Khalid
 
And for completeness sake, you don't varyon a disk, you varyonvg a VG (but not after an importvg, where it is already done under the covers...)


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top