Showing posts with label VxVM. Show all posts
Showing posts with label VxVM. Show all posts

Thursday, May 6, 2010

ISSUE: Veritas file system mount issue

ISSUE: file system mount issue

STATUS:
- found disks failed in "vxdisk list"

- - rootdg03 rootdg failed was:c4t0d3s2
- - oracled09 oracledg failed was:c3t1d0s2
- - oracled10 oracledg failed was:c4t0d1s2
- - oracled11 oracledg failed was:c4t0d2s2
- - oracled12 oracledg failed was:c4t0d4s2

- found disks not available in "format" too

12. c4t0d0
/pci@6,4000/fibre-channel@4/sd@0,0
13. c4t0d1
/pci@6,4000/fibre-channel@4/sd@0,1
/pci@6,4000/fibre-channel@3/sd@0,1
18. c5t1d0
/pci@6,4000/fibre-channel@3/sd@1,0
19. c5t1d1
/pci@6,4000/fibre-channel@3/sd@1,1

- found volumes in recover states, recovered the volumes using below commands.

vxmend -g dg -o force off plex
vxmend -g dg on plex
vxmend -g dg fix clean plex
vxvol -g dg start vol

- fsck and mounted the volumes, its working fine
- to fix issue with stale entries for dmp and disks, went for device tree cleanup with reconfiguration reboot

Saturday, June 6, 2009

After Veritas Patch Update & before reboot : Solaris 10 - Tips

NOTE (Solaris 10 only): Run the following command
immediately after installation of the MP2 patch set for Veritas 4.1,
but before rebooting the server. Failure to do this will lead to the
server becoming unbootable.
# cp /usr/lib/libvxscsi.so /etc/vx/slib/

****************************

If the server is running Solaris 10 or higher, run the following
commands after the patch set installation completes and before
rebooting the server. Skip this step for all versions of Solaris prior to
Solaris 10. 

Check if the following entry exists in the boot-archive exclusion file
by running the command below.
# /bin/egrep emcp.conf /boot/solaris/filelist.safe
kernel/drv/emcp.conf
If the above entry is present, edit the file and remove it. Then run the
following command.
# /sbin/bootadm update-archive

Sunday, May 3, 2009

VxVM - Quick Reference

 

Disk Commands

 

Operation

Command

Example

 

 

 

Initialise disks

vxdisksetup

vxdisksetup -i c0t9d0

Un-initialise disks

vxdiskunsetup

vxdiskunsetup -C c0t9d0

Remove disk

vxdisk

vxdisk rm c1t0d0

Scan for new disks

vxdctl

vxdisk

vxdctl enable

vxdisk scandisks ŽŸv

List disks

vxdisk

vxdisk list

List disk header

vxdisk

vxdisk list disk1

List disk private region

vxprivutil list

vxprivutil list /dev/rdsk/c1t9d0s2

Move data to another disk

vxevac

vxevac –g my-dg old-disk new-disk

Reserve a disk

vxedit

vxedit -g my-dg set reserve=on my-disk

Disable relocation toŽŸu

vxedit

vxedit -g my-dg set nohotuse=on my-disk

Undo relocationŽŸu

vxunreloc

vxunreloc –g my_dg my_disk

 

Disk Group Commands

Operation

Command

Example

 

 

 

Create disk group

vxdg init

vxdg init my-dg  disk01=c4t4d0

Remove disk groupŽ

vxdg destroy

vxdg destroy my-dg

Add disk

vxdg adddisk

vxdg -g my-dg  adddisk disk02=c1t5d0

Remove disk

vxdg rmdisk

vxdg -g my-dg rmdisk disk02

Import disk group

vxdg import

vxdg import otherdg

Deport disk group

vxdg deport

vxdg deport my-dg

List disk groups

vxdg list

vxdg list

Dispay disk group info.

vxdg list

vxdg list my-dg

List free space

vxdg free

vxdg -g my-dg­ free

 

Subdisk Commands

 

Operation

Command

Example

 

 

 

Create subdisk

vxmake sd

vxmake -g my-dg sd my-sd disk1,0,5000

Remove subdisk

vxedit rm

vxedit -g my-dg rm my-sd

Display subdisk info.

vxprint –st

vxprint –st

Associate subdisk to plex

vxsd assoc

vxsd -g my-dg assoc my-plex my-sd

Disassociate subdisk

vxsd dis

vxsd -g my-dg dis my-sd

Move a subdisk.

vxsd mv

vxsd –g my-dg [ –o rm ] mv old-sd new-sd

 

Plex Commands

 

Operation

Command

Example

 

 

 

 

Create a plex

vxmake

vxmake -g my-dg plex my-plex sd=my-sd

Associate a plex

vxplex

vxplex -g my-dg att my-vol my-plex

Disassociate a plex.

vxplex

vxplex -g my-dg dis my-plex

Attach a plex

vxplex

vxplex -g my-dg att my-vol my-plex

Detach a plex (remains associated)

vxplex

vxplex -g my-dg det my-plex

List plexes

vxprint

vxprint –lp

Remove a plex

vxedit

vxedit -g my-dg rm my-plex


 

Volume Commands

Operation

Command

Example

 

 

 

Create a volume

vxassist

vxassist -g my-dg make my-vol 1G

vxassist make my-vol 1G layout=stripe

Delete a volume

vxedit

vxedit -g my-dg -r rm my-vol

Change owner of volume

vxedit

vxedit –g my­-dg set user=oracle my-vol

Change permissions of vol

vxedit

vxedit –g my-dg set mode=644 my-vol

Display volume info

vxprint

vxinfo

vxprint -g my-dg –hrt my-vol

vxinfo -g my-dg my-vol

Resize a volume only.

(does not resize file system )

vxassist

vxassist -g ­my-dg growto my-vol 2G

vxassist -g my-dg growby my-vol 600M

Resize volume & file system

vxresize

vxresize –g my_dg my_vol new_size

Start a volume

vxvol

vxvol -g my-dg­ start my-vol

Stop a volume

vxvol

vxvol -g my-dg­ stop my-vol

Initialise a volume

vxvol

vxvol -g my-dg init active my-vol

Recover a volume

vxrecover

vxrecover -g my-dg my-vol

Mirror a volume

vxassist

vxassist -g my-dg mirror my-vol

Remove mirror from volume

vxassist

vxassist –g my-dg remove mirror my-vol

Add log to a volume

vxassist

vxassist -g my-dg addlog my-vol

Remove log from a volume

vxassist

vxassist –g my-dg remove log my-vol

Snapshot a volume

vxassist

vxassist -g my-dg snapstart my-vol

vxassist -g my-dg snapshot my-vol my-snap

vxassist –g my-dg snapback my-vol my-snap ŽŸv

Change volume layoutŽ

vxassist

vxassist -g my-dg relayout my-vol layout=stripe

Convert volume typeŽ

vxassist

vxassist -g my-dg convert my-vol layout=stripe-mirror

 

stripe-mirror  & concat-mirror is RAID 1+0Ž ,mirror-stripe & mirror-concat is RAID 0+1

 

Mirroring System Disk

Operation

Command

Example

 

 

 

Initialise disk.

vxdisksetup  -i

vxdisksetup -i c0t8d0

Add disk to rootdg.

vxdg adddisk

vxdg adddisk rootmirror=c0t8d0

Create system disk mirror.

vxmirror

vxmirror rootdisk rootmirror

Enable devalias in eeprom.

vxeeprom

vxeeprom enable

Boot from mirror disk.

boot

boot vx-rootmirror (At eeprom prompt)

Show disk booted from.

prtconf

prtconf –vp | grep bootpath

Removing from VM.

vxunroot

vxunroot followed by a reboot.

 

Monitoring and Performance

Operation

Command

Example

 

 

 

List running tasks

vxtask

vxtask –g my_sg list

Pause running task.

vxtask

vxtask –g my_dg pause taskid

Display volume statistics

vxstat

vxstat –g my-dg –c 5 –i 10 –v (-s=sd, -p=plex)

Display volume operations

vxtrace

vxtrace –g my-dg –c 5 –t 30 –o v (-s=sd, -p=plex)