VXVM-11
[Encapsulation-root disk]
What we will learn
in Next Few Pages,
·
How
to encapsulate root disk with VXVM
root@pr-01:>/#
vxdiskadm
Volume Manager
Support Operations
Menu: VolumeManager/Disk
1
Add or initialize one or more disks
2
Encapsulate one or more disks
3
Remove a disk
4
Remove a disk for replacement
==========removed=============
23 Dynamic Reconfiguration Operations
list
List disk information
?
Display help about menu
??
Display help about the menuing system
q
Exit from menus
Select an operation
to perform: 2
Encapsulate one or
more disks
Menu:
VolumeManager/Disk/Encapsulate
Use this operation to convert one or more
disks to use the Volume Manager.
This adds the disks to a disk group and
replaces existing partitions
with volumes.
Disk encapsulation requires a reboot for the changes
to take effect.
More than one disk or pattern may be entered
at the prompt. Here are
some disk selection examples:
all:
all disks
c3 c4t2:
all disks on both controller 3 and controller 4, target 2
c3t4d2:
a single disk (in the c#t#d# naming scheme)
xyz_0 :
a single disk (in the enclosure based naming scheme)
xyz_ :
all disks on the enclosure whose name is xyz
Select disk devices
to encapsulate:
[<pattern-list>,all,list,q,?]
list
DEVICE DISK GROUP STATUS
c1t0d0 - - online invalid
c2t2d0 d2 mdg online
c2t3d0 d3 mdg online
c2t4d0 d4 mdg online
c2t5d0 d5 mdg online
Select disk devices
to encapsulate:
[<pattern-list>,all,list,q,?]
c1t0d0
Here is the disk selected. Output format: [Device_Name]
c1t0d0
Continue operation?
[y,n,q,?] (default: y) y
You can choose to add this disk to an
existing disk group or to
a new disk group. To create a new disk group, select a disk
group
name that does not yet exist.
Which disk group
[<group>,list,q,?] rootdg
Create a new group
named rootdg? [y,n,q,?] (default: y) y
Use a default disk
name for the disk? [y,n,q,?] (default:
y) n
disk names that will be specified
interactively.
c1t0d0
Continue with
operation? [y,n,q,?] (default: y) y
The following disk has been selected for
encapsulation.
Output format: [Device_Name]
c1t0d0
Continue with
encapsulation? [y,n,q,?] (default: y) y
Enter disk name for
c1t0d0 [<name>,q,?] (default:
rootdg01) rootdg01
A new disk group rootdg will be created and
the disk device c1t0d0 will
automatically after the next reboot. To reboot execute the command:
shutdown -g0 -y -i6
Encapsulate other
disks? [y,n,q,?] (default: n) n
Volume Manager
Support Operations
Menu:
VolumeManager/Disk
1
Add or initialize one or more disks
========removed==============
23
Dynamic Reconfiguration Operations
list
List disk information
?
Display help about menu
??
Display help about the menuing system
q
Exit from menus
Select an operation
to perform: q
Goodbye.
root@pr-01:>/#
shutdown -g0 -y -i6
it will reboot twice
WHAT?
DONE YAAR, NJOY…
root@pr-01:>/# df
-kh
Filesystem size used
avail capacity Mounted on
/dev/vx/dsk/bootdg/rootvol
9.8G 6.1G
3.6G 63% /
/devices 0K 0K
0K 0% /devices
ctfs 0K 0K
0K 0% /system/contract
proc 0K 0K
0K 0% /proc
mnttab 0K 0K
0K 0% /etc/mnttab
swap 2.2G 1.1M
2.2G 1% /etc/svc/volatile
objfs 0K 0K
0K 0% /system/object
sharefs 0K 0K
0K 0% /etc/dfs/sharetab
swap 2.2G 0K
2.2G 0% /dev/vx/dmp
swap 2.2G 0K
2.2G 0% /dev/vx/rdmp
/usr/lib/libc/libc_hwcap1.so.1
9.8G 6.1G
3.6G 63% /lib/libc.so.1
fd 0K 0K
0K 0% /dev/fd
swap 2.2G 40K
2.2G 1% /tmp
swap 2.2G 32K
2.2G 1% /var/run
/hgfs 16G 4.0M
16G 1% /hgfs
/tmp/VMwareDnD 0K 0K
0K 0% /var/run/vmblock
/dev/odm 0K 0K
0K 0% /dev/odm
root@pr-01:>/#
cat /etc/vfstab
#device device mount FS fsck
mount mount
#to mount to fsck point type pass
at boot options
#
fd -
/dev/fd fd - no
-
/proc -
/proc proc -
no -
/dev/vx/dsk/bootdg/swapvol -
- swap
- no -
/dev/vx/dsk/bootdg/rootvol /dev/vx/rdsk/bootdg/rootvol /
ufs 1 no
-
/devices -
/devices devfs -
no -
sharefs - /etc/dfs/sharetab sharefs - no
-
ctfs -
/system/contract ctfs -
no -
objfs -
/system/object objfs -
no -
swap -
/tmp tmpfs -
yes -
#NOTE: volume
rootvol (/) encapsulated partition c1t0d0s0
#NOTE: volume swapvol
(swap) encapsulated partition c1t0d0s1
No comments:
Post a Comment