Scenario:
How to Mount the Os disk or any data disk in running hp-unix system .
--> Create a new mount point and group file for the OS disk/data disk
# mkdir /dev/VG NAME #mknod /dev/VG NAME /group c 64 0x0#0000
NOTE: The minor number above must be unique. Substitute a number where the # appears based on the next available number for all of your volume groups. The following command will help find what is already in use:
# ls -l /dev/*/group
--> Get the device file for the OS disk. The example below hardware path 0/1/1/1.2.0
# ioscan -fnC disk -H 0/1/1/1.2.0 Class I H/W Path Driver S/W State H/W Type Description ===========================================================================
disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC /dev/dsk/c3t2d0 /dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s2 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s2 /dev/rdsk/c3t2d0s3
NOTE: The disk device MUST use the s2 partition . For OS Disk.
Note : The disk device /dev/dsk/cxtxd0 used for data disk .
-->Import the OS disk /dev/dsk/c3t2d0s2 as /vg name
# vgimport /dev/vg name /dev/dsk/cxtxd0s2 For OS Disk
# vgimport /dev/vg name /dev/dsk/cxtxd0
--> Activate the volume group
# vgchange -a y /dev/vg name
-->Check the OS/data disk filesystems. Check the /stand filesystem on the OS disk
# fsck -F hfs /dev/vg name/rlvol1
Check the root filesystem on the OS disk
# fsck -F vxfs -o full /dev/vgname/rlvol3
Check other filesytems
# fsck -F vxfs -o full /dev/vgname/rlvol#
-->Same we can check the file system on data disk
#fsck –F vxfs -y /dev/vgname/rlvol#
--> Mount the OS /Data disk filesystems
# mkdir /dir name
# mount /dev/vg name/lvol1 /dir name
# mount /dev/vgname/lvol3 /dir name/stand
How to Mount the Os disk or any data disk in running hp-unix system .
--> Create a new mount point and group file for the OS disk/data disk
# mkdir /dev/VG NAME #mknod /dev/VG NAME /group c 64 0x0#0000
NOTE: The minor number above must be unique. Substitute a number where the # appears based on the next available number for all of your volume groups. The following command will help find what is already in use:
# ls -l /dev/*/group
--> Get the device file for the OS disk. The example below hardware path 0/1/1/1.2.0
# ioscan -fnC disk -H 0/1/1/1.2.0 Class I H/W Path Driver S/W State H/W Type Description ===========================================================================
disk 2 0/1/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GST336753LC /dev/dsk/c3t2d0 /dev/dsk/c3t2d0s1 /dev/dsk/c3t2d0s2 /dev/dsk/c3t2d0s3 /dev/rdsk/c3t2d0 /dev/rdsk/c3t2d0s1 /dev/rdsk/c3t2d0s2 /dev/rdsk/c3t2d0s3
NOTE: The disk device MUST use the s2 partition . For OS Disk.
Note : The disk device /dev/dsk/cxtxd0 used for data disk .
-->Import the OS disk /dev/dsk/c3t2d0s2 as /vg name
# vgimport /dev/vg name /dev/dsk/cxtxd0s2 For OS Disk
# vgimport /dev/vg name /dev/dsk/cxtxd0
--> Activate the volume group
# vgchange -a y /dev/vg name
-->Check the OS/data disk filesystems. Check the /stand filesystem on the OS disk
# fsck -F hfs /dev/vg name/rlvol1
Check the root filesystem on the OS disk
# fsck -F vxfs -o full /dev/vgname/rlvol3
Check other filesytems
# fsck -F vxfs -o full /dev/vgname/rlvol#
-->Same we can check the file system on data disk
#fsck –F vxfs -y /dev/vgname/rlvol#
--> Mount the OS /Data disk filesystems
# mkdir /dir name
# mount /dev/vg name/lvol1 /dir name
# mount /dev/vgname/lvol3 /dir name/stand
No comments:
Post a Comment