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

Mounting a block device

Status
Not open for further replies.

dohanlon

Technical User
Jul 26, 2001
8
IE
Hi Everyone,
I have a Compaq StorageWorks system connected to my HP_UX Server, which was not mounted during boot time. Therefore I need to physically mount the disks. I have tried

# mount /dev/dsk/c4t15d0 /storage

(where storage is a directory I created for mounting on), but I get error: No such device or address. However, it is listed in the /dev/dsk directory as a block device.
Can anyone help me out with this.

Thanks for your help.
 
Hi Dohanlon,
When you run ioscan -funCdisk is your disk says CLAIMED. If not run insf -ev(install special file). then run ioscan again. Once you have this.
you have to create logical volume on it.
procedure:
#pvcreate /dev/rdsk/c4t15d0 (don't forger /rdsk/. This will remove anything from the disk so make sure you doing on right disk

Then you have to create volume group Says you will name vg03 is your volume group
#mkdir /dev/vg03
#mknod /dev/vg03/group c 64 0x030000 (64=major number for disk)
#chmod 644 /dev/vg03/group

Then you have to create logical volume group say you want three partition /video /audio /movie
#lvcreate -L sizeofpartition1 vg03 (this will be lvol1)
#lvcreate -L sizeofpartation2 vg03 (this will be lvol2)
#lvcreate -L size???????????3 vg03 (this will be lvol3)

Now if you see you will have couple files under /dev/vg03 directory

#cd /
#mkdir /video /audio /movie
#mount /dev/vg03/lvol1 /video
#mount /dev/vg03/lvol2 /audio
#mount /dev/vg03/lvol3 /movie

At final put this in your /etc/fstab file so next time when you reboot HPux machine this all disk will mount automatic.
/dev/vg03/lvlo1 /video
/dev/vg03/lvol2 /audio
/dev/vg03/lvol3 /movie

Patel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top