Sunday, January 23, 2011

Mounting and Unmouting the external Harddisk or Harddrive on HP-UX Server

login as root and run:

#ioscan -fnC disk To check for new hardware

o/p will be like this

Class     I  H/W Path     Driver S/W State   H/W Type     Description
disk      8  255/1/0.1.0  sdisk   CLAIMED     DEVICE       Seagate FreeAgent Go (External hardrive)
                                                 /dev/dsk/c1t1d0    /dev/rdsk/c1t1d0

/dev/dsk/c1t1d0 is called LUN Paths.

Make directory where you will mount external harddisk or harddrive

#cd /u01
#mkdir segate
#pwd
/u01/segate

Mounting the external Harddisk or Harddrive

#mount /dev/dsk/c1t1d0 /u01/segate

Unmounting the external Harddisk

#umount /u01/segate

Issues While Mounting the external Hard Disk.

While mounting if you get error

UX:vxfs mount: ERROR: V-3-21268 /dev/dsk/c1t1d0 is corrupted. needs checking

 #fsck -F vxfs /dev/dsk/c1t1d0

If this command gives error or after doing it you are still getting the same error, then try with full fsck. ie.

#fsck -F vxfs -o full,nolog /dev/dsk/c1t1d0

If this command does not solve your purpose then try the following one (performs all the log replys)

#fsck -F vxfs -o full -y /dev/dsk/c1t1d0

If you run ioscan -fnC disk and you are not getting LUN path for it.

#ioscan -m lun  (Display lun to lunpath mapping)

Issues while unmounting the external harddisk


# umount /mountpoint    e.g # umount /backup/segate
umount: cannot unmount /dev/disk/disk23 : Device busy
umount: return error 1.


First Run fuser then try umount
$ fuser -kuc /mountpoint e.g # fuser -kuc /backup/segate

#umount /backup/segate







2 comments:

  1. Hi Waseem,
    I tried to mount 1TB external drive WD My Passport to my HPUX 11i but with no luck. I suspect it was caused by NTFS used on my external, as it reply with error unrecognized file system. Any suggestion ? Thx b4

    ReplyDelete
  2. Hi,

    NTFS file system will not be detected.
    You need to change the filesystem of your external harddrive to ext.
    then mount the harddrive.

    Thanks,
    Waseem

    ReplyDelete