- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Understanding Linux/Linux LVM
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
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
тАО12-08-2010 07:25 AM
тАО12-08-2010 07:25 AM
1. what is the idea behild the mount -o remount /?
2. what if there is no filtering (defualt setting), I mean what do we lose other than some warning messages for duplicate paths (similar to HP-UX alternate link messages)?
3. since my linux LVM partition on /dev/sda7 was mounted on /opt/app why it would not boot the system fully (and e2fsck -b 8193
Please help me understand this better. I am fairly new to Linux and have previous HP-UX experience.
Thanks
Brian.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2010 09:47 AM
тАО12-08-2010 09:47 AM
SolutionAllows you to mount r/w your ever important / partition so you can make edits to your system files.
2. what if there is no filtering (defualt setting), I mean what do we lose other than some warning messages for duplicate paths (similar to HP-UX alternate link messages)?
By default, /etc/lvm/lvm.conf's "filter=" line WILL scan all disks and partitions on your system for LVM objects. For a system with large SAN connections or LVM on SAN devices -- it will mean longer boot times and those annoying Duplicate PVs messages.
3. since my linux LVM partition on /dev/sda7 was mounted on /opt/app why it would not boot the system fully (and e2fsck -b 8193
Because whatever changes you made in your lvm.conf - likely masked your LVM bits on the partition from beingrecognised/imported.
Hope this helps and clarificatory anough.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2010 09:50 AM
тАО12-08-2010 09:50 AM
Re: Understanding Linux/Linux LVM
filter = [ "a/mapper/.*p1$/", "a|/dev/cciss/*|", "a|/dev/sda[0-9]|", "a|/dev/sdb[0-9]|", "r/.*/" ]
Caveats:
Our SAN multipathed disks are always paritioned wholly and used under LVM so LVM should only scan the "p1's"
If you use whole disks - mapper or not in LVM sans paritioning -- adjust your filter accordingly.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2010 10:27 AM
тАО12-08-2010 10:27 AM
Re: Understanding Linux/Linux LVM
Unlike Linux, HP-UX has a convenient "mountall" command which will first execute "mount -o remount,rw /", and then attempt to mount all the remaining filesystems listed in /etc/fstab.
2.) Without filtering, if you have multipathed disks, you won't have absolute control on which devices the LVM system uses. Instead of using the multipath device, LVM might use the regular /dev/sd* device - which means it will be using a single path instead of the sum of all the available paths. If that single path would fail, you would experience filesystem errors.
If you don't have multipathed disks, the default (accept all disk devices) is usually good.
3.) Since the boot was stopped in single-user mode, your volume group was not activated yet. "vgchange -a y" would have fixed that.
In Linux, the LVM /dev/
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2010 01:14 PM
тАО12-08-2010 01:14 PM
Re: Understanding Linux/Linux LVM
Further Question..
In Linux, the LVM /dev/
But how will i know what VG's are there on the system. The command vgs does not list all the vg's (only activated VG's). so even after the server comes up if that particular LVM is not activated (say VG is not activated) even pvs command is not showing that particular volume (in my case /devsda7 which was LVM partition mounted on /opt/app)..so how would i know what VG's and PV's i am missing??
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2010 02:57 PM
тАО12-08-2010 02:57 PM
Re: Understanding Linux/Linux LVM
In Linux, vgscan is part of the standard boot procedure. It reads the lvm.conf files, then scans the disk devices according to the filter rules, and updates the LVM device cache: /etc/lvm/cache/.cache.
If you change the LVM filter rules, you should at least re-run vgscan afterwards. If you want to be really sure, you can delete the device cache file before running vgscan: the vgscan command will automatically re-create the cache file if the root filesystem is writeable.
The "pvscan" command could be used to detect all LVM PVs on the system, i.e. all disks that have been prepared for LVM use with pvcreate, no matter whether they're currently part of a VG or not. The pvscan command even identifies the VG to which the PV belongs to, if applicable.
The "vgs" command should certainly show all VGs detected by the latest vgscan, whether activated or not. I can only think of two reasons that would cause "vgs" to miss a VG: when the latest vgscan was run, all the PVs that contain the VG either were not available, or vgscan was told to ignore them using the LVM filter rules.
Rule of thumb: on Linux 2.6.* LVM, pvscan/vgscan/lvscan commands will scan the actual disks; pvs/vgs/lvs commands will use the cached information provided by previous scan commands. Vgscan scans everything; the other scan commands might be useful if you want a more limited scan.
By the way: on Linux, un-learn everything that you might have learned about exporting and importing volume groups on HP-UX.
Linux LVM *does* have commands called "vgexport" and "vgimport", but they won't work at all the same as in HP-UX. (There is no /etc/lvmtab; there are no map files, and you won't need them.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2010 07:08 AM
тАО12-09-2010 07:08 AM
Re: Understanding Linux/Linux LVM
"Linux LVM is similar to HP-UX LVM but not the same" ;^))
I tell them the commands are similar but not the same and simply "observe" and try and do and explore:
pvs
pvscan
vgs
vgscan
lvs
lvscan
vgmerge
vgremove
vgrename
vgerduce
pvextend
pvremove
pvcreate
pvmove
lvcreate
lvextend
lvrename
lvreduce
... notice the "genericness" of the commands?
Now if Only ZFS can get into mainstream Linux -- we all simply need to be familiar with 2 commands for volume and filesystem manageent: zpool ans zfs. But that's a different thread - ;))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2010 09:28 AM
тАО12-09-2010 09:28 AM
Re: Understanding Linux/Linux LVM
FYI you can run "mount -a" to mount all unmounted file systems, though it won't automatically remount / in rw mode.
Josh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2010 05:45 AM
тАО12-13-2010 05:45 AM
Re: Understanding Linux/Linux LVM
Regards
Brian.