Monday 17 December 2012

Add/Remove mount point in Sun Cluster 3.2

File system mount point list
scha_resource_get -O extension -R <HAStoragePlus resource> -G <resource group> FileSystemMountPoints

example:
# scha_resource_get -O extension -R testdb-disk -G testdb-rg FileSystemMountPoints

STRINGARRAY
/testdb/u01
/testdb/b01
/testdb/r01
/testdb/b02

Remove mount point

Before removing a file system from an online HAStoragePlus resource, ensure that no applications are using the file system. When you remove a file system from an online HAStoragePlus resource, the file system might be forcibly unmounted. If a file system that an application is using is forcibly unmounted, the application might fail or hang.

scrgadm -c -j <HAStoragePlus resource> -x FileSystemMountPoints="<mount point list>"

example:
scrgadm -c -j testdb-disk -x FileSystemMountPoints="/testdb/u01,/testdb/b01,/testdb/r01"

scha_resource_get -O extension -R testdb-disk -G testdb-rg FileSystemMountPoints
STRINGARRAY
/testdb/u01
/testdb/b01
/testdb/r01

Add mount point

Before adding mount point insure that, necessary record exist in /etc/vfstab


scrgadm -c -j <HAStoragePlus resource> -x FileSystemMountPoints="<mount point list>"

example:
scrgadm -c -j testdb-disk -x FileSystemMountPoints="/testdb/u01,/testdb/b01,/testdb/r01,/testdb/b02"


# scha_resource_get -O extension -R testdb-disk -G testdb-rg FileSystemMountPoints
STRINGARRAY
/testdb/u01
/testdb/b01
/testdb/r01
/testdb/b02


No comments:

Post a Comment