command for List of logical volumes


 
Thread Tools Search this Thread
Operating Systems Solaris command for List of logical volumes
# 1  
Old 01-19-2010
Question command for List of logical volumes

On my solaris box, default Sun volume manager is running.

I want to check the list of logical volumes and following details for each logical volume:


freeSpace
usedSpace
type
isClustered
auxId
permissions
currentLogicalExtent
segmentCount
allocationType
isOpen


To know state of volume I found command metastat, but when I run the same, it shows:


bash-2.05# metastat
metastat: losak065: there are no existing databases

lvdisplay command is not working for sun solaris.


Is anyone can help what CLI I should use to get this information ??
# 2  
Old 01-19-2010
Your output shows that the system is not using SVM-Solaris Volume Manager
Can you provide df -h, echo |format ,iostat -En |grep Hard & raidctl outputs?
# 3  
Old 01-20-2010
Code:
bash-2.05# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      1.9G   1.8G    37M    99%    /
/proc                    0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
fd                       0K     0K     0K     0%    /dev/fd
swap                   1.2G    40K   1.2G     1%    /var/run
swap                   1.2G   5.0M   1.2G     1%    /tmp
/dev/dsk/c0t0d0s7       14G    11K    14G     1%    /export/home



---------- Post updated at 12:45 PM ---------- Previous update was at 12:42 PM ----------

Code:
bash-2.05# echo |format
Searching for disks...done

c2t0d0: configured with capacity of 2.29GB
c2t0d1: configured with capacity of 2.29GB
c2t0d2: configured with capacity of 2.29GB
c2t0d3: configured with capacity of 6.84GB
c2t0d4: configured with capacity of 6.88GB
c2t1d0: configured with capacity of 6.88GB
c2t1d1: configured with capacity of 6.88GB
c2t1d2: configured with capacity of 33.95GB
c2t1d3: configured with capacity of 6.88GB
c2t1d4: configured with capacity of 6.88GB
ppower0e: configured with capacity of 2.29GB
ppower1a: configured with capacity of 2.29GB
ppower2g: configured with capacity of 6.88GB
ppower3h: configured with capacity of 6.88GB
ppower4e: configured with capacity of 6.88GB
ppower5a: configured with capacity of 2.29GB
ppower6h: configured with capacity of 6.84GB
ppower44a: configured with capacity of 33.95GB
ppower45h: configured with capacity of 6.88GB
ppower46g: configured with capacity of 6.88GB


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <FUJITSU-MAN3184MC-3703 cyl 12435 alt 2 hd 5 sec 574>
          /pci@17,4000/scsi@3/sd@0,0
       1. c2t0d0 <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@0,0
       2. c2t0d1 <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@0,1
       3. c2t0d2 <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@0,2
       4. c2t0d3 <HITACHI-OPEN-8-SUN-2113 cyl 9964 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@0,3
       5. c2t0d4 <HITACHI-OPEN-9-SUN-2113 cyl 10014 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@0,4
       6. c2t1d0 <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@1,0
       7. c2t1d1 <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@1,1
       8. c2t1d2 <HP-OPEN-L-SUN-2114 cyl 49437 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@1,2
       9. c2t1d3 <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@1,3
      10. c2t1d4 <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pci@17,4000/fibre-channel@2/sd@1,4
      11. ppower0e <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pseudo/pp@0
      12. ppower1a <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pseudo/pp@1
      13. ppower2g <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pseudo/pp@2
      14. ppower3h <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pseudo/pp@3
      15. ppower4e <HITACHI-OPEN-9-SUN-2113 cyl 10014 alt 2 hd 15 sec 96>
          /pseudo/pp@4
      16. ppower5a <HITACHI-OPEN-3-SUN-2113 cyl 3336 alt 2 hd 15 sec 96>
          /pseudo/pp@5
      17. ppower6h <HITACHI-OPEN-8-SUN-2113 cyl 9964 alt 2 hd 15 sec 96>
          /pseudo/pp@6
      18. ppower44a <HP-OPEN-L-SUN-2114 cyl 49437 alt 2 hd 15 sec 96>
          /pseudo/pp@44
      19. ppower45h <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pseudo/pp@45
      20. ppower46g <HP-OPEN-9-SUN-2114 cyl 10014 alt 2 hd 15 sec 96>
          /pseudo/pp@46

Code:
bash-2.05# iostat -En |grep Hard
c0t0d0          Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
c0t4d0          Soft Errors: 2 Hard Errors: 0 Transport Errors: 0
c2t0d0          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t1d0          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t0d1          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t0d2          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t0d3          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t0d4          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t1d1          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t1d2          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t1d3          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0
c2t1d4          Soft Errors: 1 Hard Errors: 0 Transport Errors: 0


Code:
bash-2.05# vold
Wed Jan 20 01:41:33 2010 fatal: vol_init: already a daemon running


what volume manager is running here ?

Last edited by DukeNuke2; 01-20-2010 at 03:23 AM..
# 4  
Old 01-20-2010
From your above output, I can see that there's none.
# 5  
Old 01-20-2010
In case, there is SVM-Solaris Volume Manager running, then how to check the list of logical volumes and other details for each logical volume
# 6  
Old 01-20-2010
Quote:
Originally Posted by epriya2003
In case, there is SVM-Solaris Volume Manager running, then how to check the list of logical volumes and other details for each logical volume
if there are no metadbs, there is no volumemanager running. but if you need to check slvm volumes (on a system with slvm), all you need is "metastat". check out the manpage.
# 7  
Old 01-20-2010
I am able to run metastat commands once i created db replica and volumes.

Now metadb is giving output.

but when I run metastat i get only few information as follows:

-bash-3.00# metastat




d1: Mirror





Submirror 0: d20




State: Okay




Pass: 1




Read option: roundrobin (default)


Write option: parallel (default)



Size: 229376 blocks (112 MB)









d20: Submirror of d1




State: Okay




Size: 229376 blocks (112 MB)


Stripe 0:




Device Start Block Dbase State Reloc Hot Spare
c1t0d0s0 32768 Yes Okay Yes




How to get information like permissions,freeSpace, usedSpace, segmentCount, allocationType, readAheadSectors,blockDevice, isOpen etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Check Solaris VM Databases metadb does not have enough information about logical volumes

Check Solaris VM Databases metadb does not have enough information about logical volumes. Current value is 0% I have checked the SVM status, all disks are good state and synched perfectly. no errors in metadb -i. what is this alert exact mean? what we have to check for the value? Please... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

2. AIX

Does HACMP have bugs increasing filesystem or Logical volumes

Hello, Does HACMP have bugs ? I have version 5.4 on AIX 6.1 and when I try to increase filesystem space or logical volume partitions which are under HACMP VG it gives me error: # lsvg rootvg pr0oravg px0oravg pb0oravg pr0sapvg px0sapvg pb0sapvg pr1_pr2_vg pr2_px1_vg # #... (11 Replies)
Discussion started by: filosophizer
11 Replies

3. UNIX and Linux Applications

raw logical volumes to jfs2

Does anybody if it is possible to convert raw logical volumes to jfs2? If so how is it done or where can I find the information to make the conversion. We have an Oracle Db on AIX and it is using raw lv's which we want to convert to jfs2 because the raw devices don't restore correctly from our... (4 Replies)
Discussion started by: daveisme
4 Replies

4. UNIX for Dummies Questions & Answers

Move veritas filesystem space between Logical volumes

I have a veritas file system (fsA) that is nearing capacity. We have secondary file system (fsB). that is unused and would like to move some of it's disk space but I'm unsure as to how to do this with. /dev/vx/dsk/vg05/lvol05 25288704 21887258 3188911 88% ... (2 Replies)
Discussion started by: Steelysteel
2 Replies

5. HP-UX

Renaming logical volume group and volumes

Hi all, How do u rename a logical volume group and the logical volumes belonging to that? The logical volumes contain data and are in use. eg: Renaming dev/vgov to dev/ov-dg ? (6 Replies)
Discussion started by: Mr. Zer0
6 Replies

6. Linux

one nfs mount point for many logical volumes

hi i am wondering if it is possible to use one nfs mount point for several logical volumes. i have a top level directory /imaging with data1 - data50 below it. each dataX directory is a logical volume configured through LVM. if i mount them separately on the client (i.e. 50 lines in fstab... (1 Reply)
Discussion started by: user23
1 Replies

7. AIX

Used Space on Logical Volumes

Hi Everybody, Is there any way to know the used space on a specific Logical Volume? Note, my question related to the LVs that have no mount point & not belong to any FileSystem. Thanks in advance :rolleyes: (7 Replies)
Discussion started by: aldowsary
7 Replies

8. UNIX for Dummies Questions & Answers

Setting up Logical Volumes in Solaris 10

I have just created two RAID 0 ( Stripped ) devices through Storage Manager and can see them as d0 and d1 ( /dev/md/dsk/d0 and d1 appear to exist ) However how do I now mount these devices ? The manual talks about creating a UFS of LOFS filesystem. Do I need to do this ? I have create /u01... (3 Replies)
Discussion started by: jimthompson
3 Replies

9. News, Links, Events and Announcements

Did not know about logical volumes

I had just updated - reinstalled - my RH9 to a Fedore Core 3. I did not know about the Logical volumes that automatically combined partitions on drive 1 and 2 into one mounted volume. In my attempts to do something with the hdb2 partition - not knowing that it was already in use - I killed my... (2 Replies)
Discussion started by: gezi
2 Replies

10. UNIX for Dummies Questions & Answers

AIC logical volumes

Does anyone know where I can find good documentation on modifying AIX logical volumes. Basically, I have a box that has 2 file systems that rae 99% full. I would like to add another disk, and migrate a file system or 2 to it, then reclaim the space by adding it to other volumes. I understand that... (1 Reply)
Discussion started by: 98_1LE
1 Replies
Login or Register to Ask a Question