[EMAIL PROTECTED] # fstyp /dev/vx/rdsk/backupdg/backupvol vxfs
[EMAIL PROTECTED] # echo $?

[EMAIL PROTECTED] # fstyp /dev/vx/rdsk/oracledg/rawvol
Unknown_fstyp (no matches)
[EMAIL PROTECTED] # echo $?
1

So...

# for v in /dev/vx/rdsk/backupdg
do
fs=`fstyp $v`
if [ $? -ne 0 ]
then
echo "RAW $v"
else
echo "$fs $v"
fi
done


Ciao
seb



Quoting Munish Dhawan <[EMAIL PROTECTED]>:

> Hi Ronald/Biju,
>
>  I AmSure abt the Defination which you have given for Active and 
> Clean. But I have Checked in Solaris and vxvm 3.5 ,the state of 
> volume is Same (Active ,Clean) for Raw Volumes and File Systems.
>
>  state: state=ACTIVE kernel=ENABLED cdsrecovery=0/0 (Clean)
>
>  There Must be Some other way to know this.
>
>  "Ronald S. Karr" <[EMAIL PROTECTED]> wrote:
>  'active' means a volume has written to and has not been closed or
> unmounted since having been written. 'clean' means it has not been
> written to or has been unmounted or closed.
> --
> Ronald S. Karr
> tron |-<=>-| [EMAIL PROTECTED]
>
> On September 1, 2006, Doug Morgan wrote:
>> I am not sure this works across all OS's and all VxVM versions, but it seams
>> to work on Solaris and 3.1.1-3.5 at least. The state column in a "vxprint
>> -l " output shows if a RAW volume is in use by Sybase. If the
>> volume is in use by Sybase, the state will have "(active)" at the end of the
>> line. If not, it will show "(clean)" at the end.
>>
>> vxprint -l stab1
>>
>> Disk group: sybasedg
>>
>> Volume: stab1
>> info: len=1024000
>> type: usetype=fsgen
>> state: state=ACTIVE kernel=ENABLED cdsrecovery=0/0 (active)
>> assoc: plexes=stab1-03,stab1-01,stab1-02
>> policies: read=SELECT (round-robin) exceptions=GEN_DET_SPARSE
>> flags: open badlog writeback
>> comment: subase stab1 device
>> logging: type=REGION loglen=5 serial=0/0 (disabled)
>> apprecov: seqno=0
>> recov_id=0
>> device: minor=48007 bdev=155/48007 cdev=155/48007
>> path=/dev/vx/dsk/sybasedg/stab1
>> perms: user=sybase group=dba mode=0600
>>
>>
>> Douglas
>>
>>
>>> From: "Biju Krishnan"
>>> To: veritas-vx@mailman.eng.auburn.edu
>>> Subject: [Veritas-vx] How to identify a raw volume from vxprint or any
>>> othermeans
>>> Date: Sat, 2 Sep 2006 01:44:37 +0530
>>>
>>> Hi,
>>>
>>> I would like to know as to how we could find out whether a volume is RAW
>>> from the vxprint output.
>>>
>>> Secondly is there ANY method to assure that a volume is used RAW ??
>>> Suppose
>>> no filesystems are mounted.
>>>
>>> --
>>> Regards,
>>> PP BIJU KRISHNAN
>>> -------------------------------------------------------------------------------------
>>> B.E/SCSA/BCSD Navi Mumbai,India
>>
>>
>>> _______________________________________________
>>> Veritas-vx maillist - Veritas-vx@mailman.eng.auburn.edu
>>> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
>>
>>
>> _______________________________________________
>> Veritas-vx maillist - Veritas-vx@mailman.eng.auburn.edu
>> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
> _______________________________________________
> Veritas-vx maillist - Veritas-vx@mailman.eng.auburn.edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx
>
>
>
> Thanks & Regards,
> Munish Dhawan
>
> ---------------------------------
> Why keep checking for Mail? The all-new Yahoo! Mail shows you when 
> there are new messages.



-- 
Sebastian Schönwetter
Open2 BVBA
Steenweg op Brussel 149
1780 Wemmel
Belgium


Tel : 0485 / 844 368
Fax : 02 / 460 39 86

BTW. nr : 866.285.026
Ond. nr : 0866285026


_______________________________________________
Veritas-vx maillist  -  Veritas-vx@mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-vx

Reply via email to