How to add new file system in to cluster
# /usr/sbin/metainit -s oraset d200 1 1 /dev/did/dsk/d5s0
# /usr/sbin/metainit -s oraset d300 1 1 /dev/did/dsk/d4s0
# /usr/sbin/metainit -s oraset d100 -m d200
# /usr/sbin/metattach -s oraset d100 d300
# metainit -s sap-set d134 -p /dev/did/dsk/d34s0 1g
newfs /dev/md/sap-set/rdsk/d134
create new mount points, Create it on both the nodes
Edit the /etc/vfstab file and add the new file systems. Make the mount at boot option as “no”
1)./scgdevs
2)./scdidadm -L -h |grep -i LUN name
nlnehvdcs1sx895:a537069>./cldev list and check last did
nlnehvdcs1sx895:a537069>./cldev show -v and check device list.
nlnehvdcs1sx895:a537069>./scgdevs it will configure new dids for newly added disks
nlnehvdcs1sx895:a537069>./scdidadm -r it will do reconfigure of DID device number
nlnehvdcs1sx895:a537069>./scdidadm -L -h will show clear details of disk.
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602677533033453644d0
30 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602677533033453644d0 /dev/did/rdsk/d30
30 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602677533033453644d0 /dev/did/rdsk/d30
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602677533033453731d0
29 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602677533033453731d0 /dev/did/rdsk/d29
29 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602677533033453731d0 /dev/did/rdsk/d29
nlnehvdcs1sx895:a537069>
metaset -s nlnehvdcs1cl897-prod-ds01 -a /dev/did/rdsk/d64
/usr/sbin/metainit -s nlnehvdcs1cl897-prod-ds01 d107 1 1 /dev/did/dsk/d64s0
/usr/sbin/metattach -s nlnehvdcs1cl897-prod-ds01 d100 d107
metastat -s nlnehvdcs1cl897-prod-ds01 -p
=================================================================================================================================
adding new fileystems in to cluster
nlnehvdcs1sx895:a537069>./cldev list and check last did
nlnehvdcs1sx895:a537069>./cldev show -v and check device list.
nlnehvdcs1sx895:a537069>./scgdevs it will configure new dids for newly added disks
nlnehvdcs1sx895:a537069>./scdidadm -r it will do reconfigure of DID device number
nlnehvdcs1sx895:a537069>./scdidadm -L -h will show clear details of disk.
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602677533033453644d0
30 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602677533033453644d0 /dev/did/rdsk/d30
30 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602677533033453644d0 /dev/did/rdsk/d30
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602677533033453731d0
29 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602677533033453731d0 /dev/did/rdsk/d29
29 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602677533033453731d0 /dev/did/rdsk/d29
nlnehvdcs1sx895:a537069>
metaset -s nlnehvdcs1cl897-prod-ds01 -a /dev/did/rdsk/d62 /dev/did/rdsk/d63
# /usr/sbin/metainit -s nlnehvdcs1cl897-prod-ds01 d801 1 1 /dev/did/dsk/d62s0
# /usr/sbin/metainit -s nlnehvdcs1cl897-prod-ds01 d802 1 1 /dev/did/dsk/d63s0
# /usr/sbin/metainit -s nlnehvdcs1cl897-prod-ds01 d800 -m d801
/usr/sbin/metattach -s nlnehvdcs1cl897-prod-ds01 d800 d802
newfs /dev/md/nlnehvdcs1cl897-prod-ds01/rdsk/d800
mount /dev/md/nlnehvdcs1cl897-prod-ds01/dsk/d800 /mnt
=========================================================================================================================
nlnehvdcs1sx896:a537069> echo |format |more
Searching for disks...done
c4t60000970000292602650533032463135d0: configured with capacity of 350.03GB
c4t60000970000292602762533032433435d0: configured with capacity of 360.03GB
c4t60000970000292602762533032414635d0: configured with capacity of 350.03GB
nlnehvdcs1sx895:a537069> echo |format |more
Searching for disks...done
c4t60000970000292602650533032463135d0: configured with capacity of 350.03GB
c4t60000970000292602762533032433435d0: configured with capacity of 360.03GB
c4t60000970000292602762533032414635d0: configured with capacity of 350.03GB
350GB
nlnehvdcs1sx895:a537069> ./scdidadm -r
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602650533032463135d0
62 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602650533032463135d0 /dev/did/rdsk/d62
62 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602650533032463135d0 /dev/did/rdsk/d62
360GB LUN
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602762533032433435d0
64 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602762533032433435d0 /dev/did/rdsk/d64
64 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602762533032433435d0 /dev/did/rdsk/d64
350GB LUN
nlnehvdcs1sx895:a537069> ./scdidadm -L -h |grep -i c4t60000970000292602762533032414635d0
63 nlnehvdcs1sx896:/dev/rdsk/c4t60000970000292602762533032414635d0 /dev/did/rdsk/d63
63 nlnehvdcs1sx895:/dev/rdsk/c4t60000970000292602762533032414635d0 /dev/did/rdsk/d63
nlnehvdcs1sx895:a537069>
metaset -s nlnehvdcs1cl897-prod-ds01
====================================================================================================================
ON 896
/volumes/v0/fra 87G 65G 21G 76% /volumes/fra
/dev/md/nlnehvdcs1cl897-prod-ds01/dsk/d800
345G 130G 211G 39% /volumes/franew
umount /volumes/fra ----this is LOFS filesystem
umount /volumes/franew --this needs to be mounted as /volumes/fra
mount /dev/md/nlnehvdcs1cl897-prod-ds01/dsk/d800 /volumes/fra
0n 895
umount /volumes/fra ---this needs to be mounted as /volumes/fraold
mount /dev/md/dsk/d160 /volumes/fraold
Now adding fileystem into cluster
/volumes/prod-ora01 /volumes/prod-ora02 /volumes/prod-ora03 /volumes/prod-ora04 already in cluster
Resource:nlnehvdcs1cl897-prod-has
Group:nlnehvdcs1cl897-prod-rg
./clresource set -p FilesystemMountPoints="/volumes/prod-ora01,/volumes/prod-ora02,/volumes/prod-ora03,/volumes/prod-ora04,/volumes/fra" nlnehvdcs1cl897-prod-has
./clrs show -v --see here whether fileystem is added into cluster
nlnehvdcs1sx896:a537069> ./clrg status
=== Cluster Resource Groups ===
Group Name Node Name Suspended Status
---------- --------- --------- ------
nlnehvdcs1cl897-prod-rg nlnehvdcs1sx895 Yes Offline
nlnehvdcs1sx896 Yes Online
nlnehvdcs1cl89b-qa-rg nlnehvdcs1sx896 Yes Offline
nlnehvdcs1sx896:a537069>
./clrg resume nlnehvdcs1cl897-prod-rg
./clrg resume nlnehvdcs1cl89b-qa-rg
nlnehvdcs1sx896:a537069> ./clrg status --check status should be suspended should be no
switching resource Groups from 896 to 895
nlnehvdcs1sx896:a537069> ./clrg switch -n nlnehvdcs1sx895 nlnehvdcs1cl897-prod-rg
nlnehvdcs1sx896:a537069> ./clrg online -n nlnehvdcs1sx896 nlnehvdcs1cl89b-qa-rg
nlnehvdcs1sx896:a537069> ./clrg status
No comments:
Post a Comment