======================
CREATE A FILE SYSTEM:
======================
Check the disks and DG:
======================
[root@server1 ~]# vxdisk -o alldgs list
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk dga01 dga online
emc0_dd2 auto:cdsdisk - - online
emc0_dd3 auto:cdsdisk - - online
emc0_dd4 auto:none - - online invalid
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
DEVICE TYPE DISK GROUP STATUS
emc0_dd1 auto:cdsdisk dga01 dga online
emc0_dd2 auto:cdsdisk - - online
emc0_dd3 auto:cdsdisk - - online
emc0_dd4 auto:none - - online invalid
emc0_dd5 auto:none - - online invalid
emc0_dd6 auto:none - - online invalid
emc0_dd7 auto:none - - online invalid
emc0_dd8 auto:none - - online invalid
emc0_dd9 auto:none - - online invalid
emc0_d10 auto:none - - online invalid
emc0_d11 auto:none - - online invalid
emc0_d12 auto:none - - online invalid
sda auto:none - - online invalid
sdb auto:none - - online invalid
[root@server1 ~]# vxprint -g dga -htu h
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
[root@server1 ~]#
Create a Volume:
================
[root@server1 ~]# vxassist -g dga make appvol 1g
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# // volume created
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# // volume created
[root@server1 ~]#
[root@server1 ~]#
Check whether volume has been created:
=====================================
[root@server1 ~]# vxprint -g dga -htu h
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
DG NAME NCONFIG NLOG MINORS GROUP-ID
ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL
RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK
CO NAME CACHEVOL KSTATE STATE
VT NAME RVG KSTATE STATE NVOLUME
V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE
SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE
SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE
SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE
DC NAME PARENTVOL LOGVOL
SP NAME SNAPVOL DCO
EX NAME ASSOC VC PERMS MODE STATE
SR NAME KSTATE
dg dga default default 0 1422359166.56.sym1
dm dga01 emc0_dd1 auto 32.00m 1.96g -
v appvol - ENABLED ACTIVE 1.00g SELECT - fsgen
pl appvol-01 appvol ENABLED ACTIVE 1.00g CONCAT - RW
sd dga01-01 appvol-01 dga01 0.00 1.00g 0.00 emc0_dd1 ENA
pl appvol-01 appvol ENABLED ACTIVE 1.00g CONCAT - RW
sd dga01-01 appvol-01 dga01 0.00 1.00g 0.00 emc0_dd1 ENA
Create a file system:
====================
====================
[root@server1 ~]# mkfs -t vxfs /dev/vx/rdsk/dga/appvol
version 9 layout
2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks
rcq size 1024 blocks
largefiles supported
version 9 layout
2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks
rcq size 1024 blocks
largefiles supported
Mount the file system:
======================
======================
[root@server1 ~]# mkdir /app
[root@server1 ~]#
[root@server1 ~]# mount -t vxfs /dev/vx/dsk/dga/appvol /app
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# df -k | egrep -i app
/dev/vx/dsk/dga/appvol
1048576 18773 965448 2% /app
In case of linux OS, make an entry in /etc/fstab as mentioned below:
====================================================================
Entry to be made:-
----------------
/dev/vx/dsk/dga/appvol /app vxfs rw,largefiles,delaylog 0 2
----------------
/dev/vx/dsk/dga/appvol /app vxfs rw,largefiles,delaylog 0 2
Verify the entry:
----------------
[root@server1 ~]# cat /etc/fstab | egrep -i app
/dev/vx/dsk/dga/appvol /app vxfs rw,largefiles,delaylog 0 2
/dev/vx/dsk/dga/appvol /app vxfs rw,largefiles,delaylog 0 2
[root@server1 ~]# umount /app
[root@server1 ~]#
[root@server1 ~]# df -k | egrep -i app
[root@server1 ~]#
[root@server1 ~]# mount -a
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# df -k | egrep -i app
/dev/vx/dsk/dga/appvol
1048576 18773 965448 2% /app
[root@server1 ~]#
[root@server1 ~]#
[root@server1 ~]# mount | grep app
/dev/vx/dsk/dga/appvol on /app type vxfs (rw,delaylog,largefiles,ioerror=mwdisable)
[root@server1 ~]#
[root@server1 ~]#
No comments:
Post a Comment