1826279 Members
4046 Online
109692 Solutions
New Discussion

importing root disk

 
SOLVED
Go to solution
Shankar_6
Regular Advisor

importing root disk

Hi All,

I would like to know whether is it possible to import a vg00 disk of one server into another server.
Also need to know will there be any problem if we mount the root,boot file systems of old disk(after vgimport) and run file system check?

Because we need this to check the old vg00 disk for corruption which is not bootable now.

Regards
Shankar.B
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: importing root disk

Yes, it's very possible.

1) Install the disk.
2) ioscan -fn # detect the new disk, if you hot-plugged it
3) insf # this will create new device nodes
let's pretend the new disk is /dev/dsk/c5t5d0
4) mkdir /dev/vg10 #assume vg10
5) mknod /dev/vg10 c 64 0x 0a0000
6) vgimport -v /dev/vg10 /dev/dsk/c5t6d0
7) vgchange -a y /dev/vg10
8) mkdir /oldroot
9) mount -F vxfs /dev/vg10/lvol3 /oldroot
Note: You may need to fsck the LVOL before being able to mount it.

You can create mountpoints for as many LVOL's and filesystems as are on the disk and mount them as well.
If it ain't broke, I can fix that.
Shankar_6
Regular Advisor

Re: importing root disk

Hi Clay,

Thank u very much for your faster reply.

I assume that after fsck,we can boot the server from old vg00 disk since the above steps are not changing the LVM structures on the old vg00 disk..right?

Regards
Shankar.B
A. Clay Stephenson
Acclaimed Contributor

Re: importing root disk

I assume that after fsck,we can boot the server from old vg00 disk since the above steps are not changing the LVM structures on the old vg00 disk..right?

Hold on there. If you mean can you boot the new server from the old disk, the answer is maybe but I doubt it -- the drivers would have to be the same and the vg00 disk would have to be the same. If you mean after you run an fsck or something on the old disk to fix the filesystems, and then put it back in the old box, will it boot? Beats me. It depends upon how bad things are. In any event, you are not changing any underlying LVM data by the vgimport but obviously, if you modify data on the old disk --- that could be bad or good.


If it ain't broke, I can fix that.
Shankar_6
Regular Advisor

Re: importing root disk

Hi Clay,

U r right..! We r trying to boot the old system with old vg00 disk after fsck.I hope based on the severity of error old system may boot or may not..

We will check that..

Thanks for your valuable reply.

REgards
Shankar.B
Shankar_6
Regular Advisor

Re: importing root disk

Thanks for your reply.