Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Disks and Volumes, Veritas

VxVM Recovery Cheatsheet for Solaris

Submitted by on May 15, 2008 – 6:22 pm 9 Comments

This is a quick-and-dirty guide to recovering VxVM volumes and filesystems on a Solaris server. These instructions are not intended to be an in-depth troubleshooting guide for the Veritas Volume Manager. This is just something to try if your VxVM volumes did not come up. A possible scenario would be: you rebooted your Sun box and some or all VxVM-based filesystems are missing.

So, without further ado, here are the steps:

  1. First things first: check the physical status of your disks and/or storage array. If you are using PowerPath with Symmetrix or CLARiiON SAN, use the powermt command:
    # powermt display
    Symmetrix logical device count=6
    CLARiiON logical device count=0
    ==============================================================================
    ----- Host Bus Adapters ---------  ------ I/O Paths -----  ------ Stats ------
    ### HW Path                        Summary   Total   Dead  IO/Sec Q-IOs Errors
    ==============================================================================
    3072 pci@1e/SUNW,qlc@2/fp@0         optimal       5      0       -     0      0
    3073 pci@1e/SUNW,qlc@3/fp@0         optimal       5      0       -     0      0

    If everything checks out, proceed to step 2 and if not – call your storage guru.

  2. Use vxprint to see the status of your VxVM volumes:
    #vxprint
    v  V8           -            DISABLED ACTIVE   20971520 SELECT    -        fsgen
    pl V8-01        V8           DISABLED ACTIVE   20971520 CONCAT    -        RW
    sd doorsDG04-01 V8-01        doorsDG04 0       20971520 0         emcpower1 ENA

    In this example the diskgroup name is “doorsDG”, the volume name is “V8”, plex name is “V8-01”, and subdisk name is “doorsDG04-01”. For a more detailed status of a particular diskgroup use the following syntax:

    #vxprint -ht -g doorsDG

    A disabled volume may have plexes in several different states: DISABLED-RECOVER, DISABLED-STALE, and DISABLED-CLEAN.

  3. If your plex is DISABLED-RECOVER, change it to STALE using vxmend:
    #vxmend -g doorsDG fix stale V8-01
  4. If your plex is in DISABLED-STALE, change it to DISABLED-CLEAN:
    #vxmend -g doorsDG fix clean V8-01
  5. Once all plexes in a volume are listed as DISABLED-CLEAN, you can try to start the volume:
    #vxvol -g doorsDG start V8

    To verify the status of your volume, run this command:

    #vxprint -ht -g doorsDG
    v  V8           fsgen        ENABLED  20971520 -        ACTIVE   -       -
    pl V8-01        V8           ENABLED  20971520 -        ACTIVE   -       -
    sd doorsDG04-01 V8-01        ENABLED  20971520 0        -        -       -
  6. The next step would be to mount your filesystems. However, chances are that there is some disk corruption that needs to be fixed first. So, run fsck on the VxVM disks:
    #fsck -F vxfs -y /dev/vx/dsk/doorsDG/V8
    log replay in progress
    replay complete - marking super-block as CLEAN

    If everything comes up as CLEAN, then run mount -a or mountall and you are back in business.

Print Friendly, PDF & Email

9 Comments »

  • R. Karen says:

    Thanks for this post!

  • xLittle21Yaox says:

    What is linux file system?And what are the types of linux file system?

    plz..list a websites if you can..

    thank u
    :)

  • PIE BOY says:

    I was just hired at my college to be an English tutor, as I was recommended by an English professor for the class after ranking 1st in my advanced Composition class.

    What can I do to prepare?

  • HASTHEANSWERS says:

    hi i’m looking for a seagate scsi HD that has 16mb cache, 15k rpm, and is ultra 320 and 5 year warranty. then i need to find a way to create a raid 5 array with this HD. does anyone know of any software i will need to do this or any other additional Hardware. we are using an IBM X225 server. any help would be great.

  • wwwavid360gamercom says:

    I know about RAID levels and what they do but is there such thing as default RAID for a hard disk? For example, if i bought a hard disk, does it come with predefined RAID level? Also, if I want to use RAID 5 on my hard disk, does it create volumes in the hard disk?

  • XplicitzZ says:

    I find if so time consuming to go to the brush panel everytime I want to resize a brush in photoshop using my MAC. I think if I remember correctly there was a short cut key for this. Thanks.

  • Johnky J says:

    Types of things that happen at my community college.

    I’ve had one math professor who lets you bring a cheatsheet to every exam – one piece of paper, front and back, for you to write anything on.

    Another math professor lets you bring formula sheets to the exam so you don’t need to memorize them. You need to know how to use them though.

    I’ve had a history professor who gives you 5 essay questions 2 weeks before the exam. Two of them, word for word, will be the ones on your exam. It does force you learn all the possible ques though. In the same course, there was a textbook, but you didn’t need to touch it as long as you went to class and took good notes.

    I’ve had a psychology professor whose final is composed of nothing but questions from previous quizzes.

    All these profs are experienced, so its not like they’re rooks out of school.

  • Terrence says:

    I’m thinking about going on a trip to London from Oklahoma. I’ve never traveled before and I’m pretty intimidated by the prices and all the info I have no ideal what they’re talking about. Anyone have any sites that would make planning the trip any easier?

  • Dr Dorian says:

    I need a weekly cheatsheet that takes into account the players performance and opponent and ranks them.

    I was using FF Toolbox but they are whacked, not even ranking the Texans defense, when they are a top 5 D in my league and playing the Falcons this week….
    Or should I just come here to visit you guys?

    Thanks for all the help so far, I beat the two loudmouths last week and boy is it fun!

Leave a Reply to XplicitzZ Cancel reply

%d bloggers like this: