:: ý ߿ Ͽ rootdg ũ ν Ҵ Ǿ Ҷ...
E3500 ũ 6
rootdg 0,4 ũ mirror
datadg 1,5 ũ mirror
oracledg 2,6 ũ mirror
dg .
rootdg ϳ ̽ Ƽǿ 뷮 rootdg datadg
oracledg Ʈ Ҽ ִ ְ ũ ü rootdg ũ
ȭ ִ. datadg,oracledg rootdg 쿡 ۵
Ѵ.
:: ⼭ dg , datadg,oracledg ũ rootdg
̴.
rootdg ʿ datadg oracledg ִ ʿ Ұ
÷ ýۿ ̰Ͽ dg Ҽ ְ ũ
Ͽ ش ũ Ƽ ϳ Ͽ rootdg dg datadg,oracledg
ִ.
ٸ ýۿ ̰ ũ dg Ұ ش ý
hostname dg datadg,oracledg ִ hostname ؾѴ.
hostname datadg,oracledg Ʈ Ҽ .
######################################################
1. ù° rootdg ϵ ũ ü rootdg ʰ
ũ Ѻκп rootdg Ͽ dg datadg,oracledg Ʈ ϴ ̴.
ũ ....
ֶ 缳ġ , ̿Ͽ ̴.
ֶ 缳ġ veritas volume manager ġ ؾ Ѵ.
######################################################
2. ũ ü rootdg ϴ .
ok>boot cdrom -s
cd ̿Ͽ cd Ѵ.
1. restore
#ok mode > boot cdrom -s
cdrom
#format
ũ Ƽ / , swap , data
#newfs /dev/dsk/c0t0d0s0
ufs Ͻý
#newfs /dev/dsk/c0t0d0s5
#mount /dev/dsk/c0t0d0s0 /a
#cd /a
#mt -f /dev/rmt/0 rewind
#ufsrestore rvf /dev/rmt/0n ./*
/a Ʈ ũ restore
#cd /
#umount /a
#mount /dev/dsk/c0t0d0s6 /a
#cd /a
#ufsrestore rvf /dev/rmt/0n ./*
data restore
#cd /
#umount /a
#mount /dev/dsk/c0t0d0s0 /a
#drvconfig -r /a/devices -p /a/etc/path_to_inst
#cd /devices
#find . -print | cpio -pduVm /a/devices
#disks -r /a
#devlinks -r /a
#cd /
#cd /usr/platform/sun4u/lib/fs/ufs
#installboot ./bootblk /dev/rdsk/c0t0d0s0
#luxadm set_boot_dev /dev/dsk/c0t0d0s0
#cd /a/etc
#TERM=sun;export TERM
#cp system system_old_2007
#vi system
NOTE: There might be a file /a/etc/system.prevm
That could be used. The lines look like the following:
rootdev:/pseudo/vxio@0:0
set vxio:vol_rootdev_is_volume=1
.
Ʈ ̺갡 ٽ ĸȭǸ ڵ ˴ϴ.
̿ ٸ κе ϰų ּ ó ʽϴ.
#cp /a/etc/vfstab /a/etc/vfstab_old
#cp /a/etc/vfstab.prevm /a/etc/vfstab
vfstab ִ mount volume vfstab
#reboot -- -r
SunOS 5.8
login: root
Password:
Last login: Wed Jun 2 21:24:38 from 192.168.0.11
Sun Microsystems Inc. SunOS 5.8 Generic Patch February 2004
You have new mail.
(E3500>root)/data# vxconfigd -k -r reset -d
(E3500>root)/data# touch /etc/vx/reconfig.d/state.d/install-db
(E3500>root)/data# vxinstall
VxVM uses license keys to control access. If you have a SPARCstorage
Array (SSA) controller or a Sun Enterprise Network Array (SENA) controller
attached to your system, then VxVM will grant you a limited use license
automatically. The SSA and/or SENA license grants you unrestricted use
of disks attached to an SSA or SENA controller, but disallows striping,
RAID-5, and DMP on non-SSA and non-SENA disks. If you are not running an
SSA or SENA controller, then you must obtain a license key to operate.
Licensing information:
System host ID: 809db59d
Host type: SUNW,Ultra-Enterprise
SPARCstorage Array or Sun Enterprise Network Array: No arrays found
Some licenses are already installed. Do you wish to review them
[y,n,q,?] (default: y)
vrts:vxlicense::Feature name: VxVM [95]
vrts:vxlicense::Number of licenses: 1 (non-floating)
vrts:vxlicense::Expiration date: 2004 6 27 Ͽ (24.8 days from now)
vrts:vxlicense::Release Level: 25
vrts:vxlicense::Machine Class: All
vrts:vxlicense::Feature name: PHOTON [98]
vrts:vxlicense::Number of licenses: 99
vrts:vxlicense::Expiration date: No expiration date
vrts:vxlicense::Release Level: 20
vrts:vxlicense::Machine Class: 334147806
Do you wish to enter another license key [y,n,q,?] (default: n)
Generating list of attached controllers....
/
Volume Manager Installation
Menu: VolumeManager/Install
The Volume Manager names disks on your system using the controller
and disk number of the disk, substituting them into the following
pattern:
c<controller>t<disk>d<disk>
If the Multipathing driver is installed on the system then for the
disk devices with multiple access paths, the controller number
represents a multipath pseudo controller number. For example, if a
disk has 2 paths from controllers c0 and c1, then the Volume Manager
displays only one of them such as c0 to represent both the
controllers.
Some examples would be:
c0t0d0 - first controller, first target, first disk
c1t0d0 - second controller, first target, first disk
c1t1d0 - second controller, second target, first disk
The Volume Manager has detected the following controllers on your system:
c0:
c1:
Hit RETURN to continue.
Volume Manager Installation
Menu: VolumeManager/Install
You will now be asked if you wish to use Quick Installation or
Custom Installation. Custom Installation allows you to select how
the Volume Manager will handle the installation of each disk
attached to your system.
Quick Installation examines each disk attached to your system and
attempts to create volumes to cover all disk partitions that might
be used for file systems or for other similar purposes.
If you do not wish to use some disks with the Volume Manager, or if
you wish to reinitialize some disks, use the Custom Installation
option Otherwise, we suggest that you use the Quick Installation
option.
Hit RETURN to continue.
Volume Manager Installation Options
Menu: VolumeManager/Install
1 Quick Installation
2 Custom Installation
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 2
Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom
The c0t0d0 disk is your Boot Disk. You can not add it as a new
disk. If you encapsulate it, you will make your root file system
and other system areas on the Boot Disk into volumes. This is
required if you wish to mirror your root file system or system
swap area.
Encapsulate Boot Disk [y,n,q,?] (default: n) y
Enter disk name for [<name>,q,?] (default: rootdisk)
The c0t0d0 disk has been configured for encapsulation.
Hit RETURN to continue.
Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom/c0
Generating list of attached disks on c0....
<excluding root disk c0t0d0>
No disks were found attached to controller c0 !
Hit RETURN to continue.
Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom/c1
Generating list of attached disks on c1....
The Volume Manager has detected the following disks on controller c1:
c1t4d0
Hit RETURN to continue.
Installation options for controller c1
Menu: VolumeManager/Install/Custom/c1
1 Install all disks as pre-existing disks. (encapsulate)
2 Install all disks as new disks. (discards data on disks!)
3 Install one disk at a time.
4 Leave these disks alone.
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 2
Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom/c1/Init
Use default disk names for these disks? [y,n,q,?] (default: y)
The c1t4d0 disk will be given disk name disk01
Hit RETURN to continue.
Volume Manager Custom Installation
Menu: VolumeManager/Install/Custom
The following is a summary of your choices.
c0t0d0 Encapsulate
c1t4d0 New Disk
Is this correct [y,n,q,?] (default: y)
The system now must be shut down and rebooted in order to continue
the reconfiguration.
Shutdown and reboot now [y,n,q,?] (default: n) y
Shutdown started. 2004 6 2 09 54 34
Changing to init state 6 - please wait
Broadcast Message from root (pts/1) on E3500 6 2 21:54:34...
THE SYSTEM E3500 IS BEING SHUT DOWN NOW ! ! !
Log off now or risk your files being damaged
showmount: E3500: RPC: α ϵ
(E3500>root)/data#
(E3500>root)/data# 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
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
list List disk information
? Display help about menu
?? Display help about the menuing system
q Exit from menus
Select an operation to perform: 6
Mirror volumes on a disk
Menu: VolumeManager/Disk/Mirror
This operation can be used to mirror volumes on a disk. These
volumes can be be mirrored onto another disk or onto any
available disk space. Volumes will not be mirrored if they are
already mirrored. Also, volumes that are comprised of more than
one subdisk will not be mirrored.
Mirroring volumes from the boot disk will produce a disk that
can be used as an alternate boot disk.
At the prompt below, supply the name of the disk containing the
volumes to be mirrored.
Enter disk name [<disk>,list,q,?] list
Disk group: rootdg
DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE
dm disk01 c1t4d0s2 sliced 2888 71124291 -
dm rootdisk c0t0d0s2 sliced 2888 71124291 -
Enter disk name [<disk>,list,q,?] rootdisk
You can choose to mirror volumes from disk rootdisk onto any
available disk space, or you can choose to mirror onto a specific
disk. To mirror to a specific disk, select the name of that disk.
To mirror to any available disk space, select "any".
Enter destination disk [<disk>,list,q,?] (default: any)
The requested operation is to mirror all volumes on disk rootdisk
in disk group rootdg onto any available disk space.
NOTE: This operation can take a long time to complete.
Continue with operation? [y,n,q,?] (default: y)
Mirror volume data ...
Mirror volume rootdisk1vol ...
Mirror volume rootvol ...
Mirroring of disk rootdisk is complete.
Mirror volumes on another disk? [y,n,q,?] (default: n) n
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
5 Replace a failed or removed disk
6 Mirror volumes on a disk
7 Move volumes from a disk
8 Enable access to (import) a disk group
9 Remove access to (deport) a disk group
10 Enable (online) a disk device
11 Disable (offline) a disk device
12 Mark a disk as a spare for a disk group
13 Turn off the spare flag on a disk
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.
(E3500>root)/data#reboot -- -r
(E3500>root)/#vxdisk list
(E3500>root)/etc# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced rootdisk rootdg online
c0t1d0s2 sliced datadg02 datadg online
c0t2d0s2 sliced oracledg02 oracledg online
c1t4d0s2 sliced disk01 rootdg online
c1t5d0s2 sliced datadg01 datadg online
c0t6d0s2 sliced oracledg01 oracledg online
(E3500>root)/etc#df -k
Ͻý KƮ 뷮 ġ
/dev/vx/dsk/rootvol 10323610 1318531 8901843 13% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 5845816 16 5845800 1% /var/run
swap 5845864 64 5845800 1% /tmp
/dev/vx/dsk/datadg/datadg1 10323610 1318531 8901843 13% /
/dev/vx/dsk/oracledg/oracledg1 10323610 1318531 8901843 13% /
(E3500>root)/etc#
̷ ϸ ջ rootdg Ҽ ְ ̹ Ǿ ִ datadg oracledg
ʴ´. rootdg Ҷ... ̻ ũ ýۿ ν ʰ
۾ Ѵ.