Operating System - HP-UX
1829572 Members
4016 Online
109992 Solutions
New Discussion

Problems mounting filesystem

 
anoop_10
Frequent Advisor

Problems mounting filesystem

Hi Hasan,

I have tried these commands but I am stuck in mounting this file sysytem,
I am doing this exercise to implement a DR solution ,There will be two node CFS cluster at Primary site and data disk will be replicating to DR using CA (EVA).When disaster occurs I want present those disk to the server s at DR and try to bring up the File system usable. If I will use 2 node with CFS @ DR will it work?

Present the disk

# vxdctl enable
# vxdisk scandisks
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk - - online shared

# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk - (cfsdg1) online shared


# vxdg import cfsdg1
VxVM vxdg ERROR V-5-1-587 Disk group cfsdg1: import failed: Disk is sharable, operation not supported
#

# vxdg -Cs import cfsdg1
VxVM vxdg ERROR V-5-1-587 Disk group cfsdg1: import failed: Operation must be executed on master
# vxdctl -c mode
mode: enabled: cluster inactive

#vxdg -C import cfsdg1

#vxrecover -g cfsdg1 -sb

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk c7t0d2 cfsdg1 online
#
# mount -F vxfs /dev/vx/dsk/cfsdg1/vol1 /u01
vxfs mount: unrecognized vxfs version number
# fsck /dev/vx/dsk/cfsdg1/vol1
fsck: /etc/default/fs is used for determining the file system type
vxfs fsck: unrecognized vxfs version number
invalid super-block
vxfs fsck: cannot initialize aggregate
file system check failure, aborting ...
2 REPLIES 2
Stephen Doud
Honored Contributor

Re: Problems mounting filesystem

Your message shows that you discovered for yourself that an DR server that is outside of the CFS cluster cannot access a 'shared' disk group until the 'shared' flag is removed from the disk group, or until you create a seconf CFS-oriented cluster on the DR server(s).

# vxdisk list | grep shared
flags: online ready private autoconfig shared autoimport imported

(Note the 'shared' flag)

As for why the file system was unrecognized, that will take some more troubleshooting.

Do you have any further questions?
anoop_10
Frequent Advisor

Re: Problems mounting filesystem

Hi,
This issue has been resolved by installing Base vxfs package on single node .Now am able to mount the file system in single node.when we present this disk back to cluster node import the disk in share mode.

Install Base vxfs in single node
Present the disk

# vxdctl enable
# vxdisk scandisks
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk - - online shared
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk - (cfsdg1) online shared

#vxdg -C import cfsdg1 (impor with out share option)

#vxrecover -g cfsdg1 -sb

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:LVM - - LVM
c4t0d1 auto:cdsdisk c7t0d2 cfsdg1 online
#

# mount -F vxfs /dev/vx/dsk/cfsdg1/vol1 /u01

AFTER PESENTING BACK TO PR (cluster Nodes)



# cmviewcl

CLUSTER STATUS
HQ_NPS up

NODE STATUS STATE
HQ-NPS3 up running
HQ-NPS4 up running

MULTI_NODE_PACKAGES

PACKAGE STATUS STATE AUTO_RUN SYSTEM
SG-CFS-pkg starting starting enabled yes
SG-CFS-DG-1 down halted enabled no
SG-CFS-DG-2 up running enabled no
SG-CFS-MP-1 down halted enabled no
SG-CFS-MP-2 up running enabled no


# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c6t0d0s2 auto:LVM - - LVM
c7t0d1 auto:LVM - - LVM
c7t0d2 auto:cdsdisk - (cfsdg1) online
c7t0d3 auto:cdsdisk c7t0d3 cfsdg2 online shared
# vxdg -Cs import cfsdg1 (import in sahre mode)
#
# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
c6t0d0s2 auto:LVM - - LVM
c7t0d1 auto:LVM - - LVM
c7t0d2 auto:cdsdisk c7t0d2 cfsdg1 online shared
c7t0d3 auto:cdsdisk c7t0d3 cfsdg2 online shared

# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c6t0d0s2 auto:LVM - - LVM
c7t0d1 auto:LVM - - LVM
c7t0d2 auto:cdsdisk c7t0d2 cfsdg1 online shared
c7t0d3 auto:cdsdisk c7t0d3 cfsdg2 online shared


#cmhaltcl -f
#cmruncl -v

Thanks for your support

Thanks
Anoop