Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Had a problem booting from a disk, installed a newly imaged disk, booted fine. I'd like to try to mount the problem disk and using sam I can see the disk fine. However I cannot figure out how to mount the disk and retain the current data. Read Man pages and searched HP's forums found some mount instructions but nothing that directly applied to mounting an old lvm drive. If anyone has any ideas i'd sure appreciate it. Thanks!

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Turns out the commands I was looking for were vgimport and vgchange. Because I wanted to mount a drive that already had volume group info on it and didn't want that info to be over written.

So the steps ended up being.

  1. mkdir /somedir
  2. mknode /somedir/node
  3. vgimport /somedir /dev/dsk/disk
  4. vgchange -a y /somedir
  5. then use SAM to mount the logical volume.

    In my case SAM reported a corrupt disk error, so I also ran:

  6. fsck -F vxfs -o full -y /somedir/rlvol#

Then went back to SAM and it mounted fine. Recovered data, felt lucky, had a good day!

share|improve this answer
    
Since there were errors on the disk the data you recovered may be corrupt. If you have any way to check the integrity of the restored files I would recommend doing so. –  Amuck Oct 6 '09 at 21:03
    
I think the sections of the disk that were corrupt were boot sections. The data recovered are text files used to configure machines for testing so they must be compiled for each setup and corruption would show up during compile and should be pretty easily found and corrected. Thanks though. Also this disk will not be used in production setting really just needed to get data off. For some reason it missed a scheduled backup. –  Akers Oct 7 '09 at 3:02

Any case when there might be a HDD problem the best way is to create an image from the broken harddrive with dd and mount that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.