- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- vgextend Linux FS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 01:11 AM
тАО04-13-2010 01:11 AM
vgextend Linux FS
I have got a RH Linux FS (listed below) that has been created from space presented from an EVA. I need to extend this FS by creating another LUN (of 50G) from the EVA, presenting it to the server and then extending the VG and FS accordingly.
/dev/mapper/vg02-lvol0
145G 131G 6.5G 96% /cuar2
My problem however is that when I run a vgdisplay on the FS I get the following:
# vgdisplay vg02
Volume group "vg02" not found
It is not present in the 'vgdisplay -v' yet the FS appears fine:
ll /dev/mapper/vg02-lvol0
brw-rw---- 1 root disk 253, 11 Jul 29 2009 /dev/mapper/vg02-lvol0
Is there any way of re-scanning the vg so it can be seen from the vgdisplay in order for me to extend this FS?
R,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 01:38 AM
тАО04-13-2010 01:38 AM
Re: vgextend Linux FS
Does vg02 appear whe running vgs or pvscan ?
Is data in /cuar2 FS still available ?
Jean-Yves
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2010 01:44 AM
тАО04-13-2010 01:44 AM
Re: vgextend Linux FS
No, vg02 does not appear when vgs or pvscan are run but the data on /cuar2 is fine.
R,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 06:14 AM
тАО04-14-2010 06:14 AM
Re: vgextend Linux FS
I think you need to do a:
vgdisplay -v /dev/mapper/vg02-lvol0
also try vgdisplay -v
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 06:18 AM
тАО04-14-2010 06:18 AM
Re: vgextend Linux FS
# vgdisplay -v /dev/mapper/vg02-lvol0
Using volume group(s) on command line
Invalid volume group name: mapper/vg02-lvol0
.....and as I mentioned in my above post the 'vgdisplay -v' does not show the vg either.
R,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 07:49 AM
тАО04-14-2010 07:49 AM
Re: vgextend Linux FS
try strings /etc/lvmtab
If the vg in not in lvmtab
Try mv /etc/lvmtab /etc/lvmtab.BCK
And then vgscan -a
This is risky command.
Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 11:27 PM
тАО04-14-2010 11:27 PM
Re: vgextend Linux FS
In Linux, vgscan is not so risky operation as in HP-UX. Try running "vgscan -vvv" to get a lot of information about the scan process. If it says it's filtering out some devices, check the /etc/lvm/lvm.conf file for customizations.
You might also check the state of the device-mapper, the low-level system service that is used by LVM:
dmsetup info /dev/mapper/vg02-lvol0
dmsetup table /dev/mapper/vg02-lvol0
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2010 06:52 AM
тАО04-15-2010 06:52 AM
Re: vgextend Linux FS
as Matti wrote, often applied filters are the cause for seemingly undetected PVs.
But you wouldn't have to grep for "filter"
but rather for "skip".
e.g.
I needed to deliberately apply such a filter in order to use a DRBD and to prevent LVM from grabbing the sub meta devices that form the DRBD.
# grep ^\ *filter /etc/lvm/lvm.conf
filter = [ "a|^/dev/md[145]$|", "a|/dev/drbd0|", "r/.*/" ]
Because of the trailing catch all "remove" pattern "r/.*/" I get lots of devices that are ignored by LVM scans.
# pvscan -vvv 2>&1|grep -i skip|tail
/dev/ram14: Skipping (regex)
/dev/ram15: Skipping (regex)
/dev/sdb: Skipping (regex)
/dev/sdb1: Skipping (regex)
/dev/sdb2: Skipping (regex)
/dev/sdb3: Skipping (regex)
/dev/sdb4: Skipping (regex)
/dev/sdb5: Skipping (regex)
/dev/sdb6: Skipping (regex)
/dev/sdb7: Skipping (regex)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2010 06:52 AM
тАО04-21-2010 06:52 AM
Re: vgextend Linux FS
Thanks for the feedback but I am still unable to see the vg although the state of the lvol appears active:
[root@rhmidlog ~]# dmsetup info /dev/mapper/vg02-lvol0
Name: vg02-lvol0
State: ACTIVE
Tables present: LIVE
Open count: 1
Event number: 0
Major, minor: 253, 11
Number of targets: 1
UUID: LVM-Yr9KH40fpQcgL3nhStugbwo0vd4uNpCQb38gQP1NGItXEsFHDzTkpaXDbi7y0S2H
[root@rhmidlog ~]# dmsetup table /dev/mapper/vg02-lvol0
0 307200000 linear 8:32 384
[root@rhmidlog ~]#
[root@rhmidlog ~]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 2 9 0 wz--n- 184.81G 928.00M
VolGroup01 1 1 0 wz--n- 100.00G 99.02G
pvscan -vvv 2>&1|grep -i skip|tail
/dev/md25: Skipping (sysfs)
/dev/md26: Skipping (sysfs)
/dev/md27: Skipping (sysfs)
/dev/md28: Skipping (sysfs)
/dev/md29: Skipping (sysfs)
/dev/md30: Skipping (sysfs)
/dev/md31: Skipping (sysfs)
/dev/sdc: Skipping: Partition table signature found
/dev/sdd: Skipping: Partition table signature found
/dev/sde: Skipping: Partition table signature found
R,
D.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2010 10:15 AM
тАО04-21-2010 10:15 AM
Re: vgextend Linux FS
Suggest: vgchange -a y /dev/vg02
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com