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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dd problems

Status
Not open for further replies.

widget08

Technical User
Jan 28, 2002
3
US

I'm running the following command in a script that performs a disk-to-disk backup;

dd if=/dev/hdiskx of=/dev/hdiskX bs=1024k

The problems is the disks must be the same size. You cannot go from say a 4.5 GB to a 9GB drive. Is there a
work around for this ?
 
I'll reply in this thread too: What exactly are you trying to accomplish by doing that?

iirc, dd'ing the entire hdisk like that also results in the pvid area being duplicated. pvid's are supposed to be unique, so you might cause ODM confusion.
 
I'm trying to copy (mirror) from one drive to another so they are identical.
 
Hi,
If you want to mirror to make then identical, you can use "mirrovg", as you can make identical copies. The only problem that you might have is about your physical partitions size. If the PP size of your 4.5 Gb is 8Mb, you will be unable to add the 9Gb disk to the same VG, and then you will not be able to use mirrorvg. If your PP size is 16Mb or greater there will be no ploblem.
The real problem is a limitation about LVM's maximum number of PP's per PV's (1016). If your AIX box is lower than 4.3.2(I think), then there's a workaround (change the "factor" of the VG, using "chvg -t 2". Note that you will have some free PP's in all PV's of your VG). If you use chvg, the limit of PP's in each PV of the VG will be 2032. When ypou get the two disks in the same VG, you will be able to use mirrorvg ("mirrorvg –c 2 –m –S VGname PVname"). I must advise you: do not use chvg if you are unsure about what you are doing. After doing this you will be unable to import this VG in AIX 4.3.1 or earlier.
Any questions, please ask
regards,
HTT
 
Right.

However,dd also does the job,taking a snap of a good system disk at certain point.

What we do in such a case -we keep the other disk phisically disconnected till the originall one crashes.
Then we connect the other disk back and boot from it.

Only one PVID is active at a time. "Long live king Moshiach !"
h
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top