Operating System - HP-UX
1753710 Members
4369 Online
108799 Solutions
New Discussion юеВ

How to find whether the logical volume is formatted or not formatted

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to find whether the logical volume is formatted or not formatted

Hi All,

I have one logical volume, i want to find if that is formatted or not formatted.
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: How to find whether the logical volume is formatted or not formatted

Run the 'fstyp' command against the LV.

For example:

# fstyp /dev/vg00/lvol6
vxfs

This output means that /dev/vg00/lvol6 has a vxfs file system on it.
TTr
Honored Contributor

Re: How to find whether the logical volume is formatted or not formatted

If by "formatted" you mean a filesystem structure, you can use the "fstyp /dev/vgXX/lvolYY" command

There is no other formatting on logical volumes.
Viveki
Trusted Contributor

Re: How to find whether the logical volume is formatted or not formatted

You can issue the command fstyp against that logical volume and it will give the file system type you have.

But I feel you want to know how to find out the logical volume is empty or not. Am I right?
Steven E. Protter
Exalted Contributor

Re: How to find whether the logical volume is formatted or not formatted

Shalom,

format is not a useful term here.

lvdisplay lvol_name
#or
lvdispaly -v lvol_name

To see if anything is on it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vishu
Trusted Contributor

Re: How to find whether the logical volume is formatted or not formatted

Hey Senthil,

formated is a windows Term. In unix, you can say if it has an FS on it or not.

to find that you can use command

# fstyp /dev//

or

# lvdisplay /dev//
Johnson Punniyalingam
Honored Contributor

Re: How to find whether the logical volume is formatted or not formatted

>>I have one logical volume, i want to find if that is formatted or not formatted.<<

No such thing in UNIX

lvdisplay -v /dev/vgxx/lvolxx

or fstype -v

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
senthil_kumar_1
Super Advisor

Re: How to find whether the logical volume is formatted or not formatted

I am closing this ticket.