Modify

Opened 7 years ago

Last modified 5 years ago

#74 accepted task

state of SALI and LVM

Reported by: dlefevre@purdue.edu Owned by: bas
Priority: major Milestone: SALI 1.7.0
Component: sali Version: 1.6.0
Keywords: Cc:

Description

Hi..

Sorry to email you directly, but I did look at the mailing lists and saw no
posts there for a couple of years.

What is the state of LVM in SALI?  I found an enhancement ticket
(https://oss.trac.surfsara.nl/sali/ticket/9) mentioning a couple of script
commands:

    lvm_create_vg <name> <disk/partition> [<disk/partitions}*
    lvm_create_lv <volumge_group_name>
size:format:mountpoint:name:strip:stripsize

Neither command seems to be implemented (given file not found errors), at
least not in my version of the bootdisk which is based on the binary
download.  To use LVM in SALI, are the actual LVM commands still needed like
are shown in some of the old versions of the master scripts?


Thanks!

-dcl
Dave LeFevre

M.S. New Media, A+, Linux+, Network+, Project+, Security+, i-Net+
Unix/Mac Support Specialist
Purdue University College of Science
(765) 496-2202

As of November 1, 2013, send your CoS I.T. related support requests to
sciencehelp@purdue.edu or call 49-44488 for your immediate needs.

Attachments (0)

Change History (8)

comment:1 Changed 7 years ago by bas

Dave,

Sorry for the late response. which SALI version did you download? the LVM commands must be present in the initrd. Just checked for version 1.6.6

13:09 install2.lisa.surfsara.nl:/var/tmp
root# cpio -tv < initrd.img | grep -i lvm
-r-xr-xr-x   1 root     root       925576 Mar  7 12:07 sbin/lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvchange -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvconvert -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvcreate -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvdisplay -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvextend -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvmchange -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvmdiskscan -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvmsadc -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvmsar -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvreduce -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvremove -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvrename -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvresize -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvs -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/lvscan -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvchange -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvresize -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvck -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvcreate -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvdisplay -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvmove -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvremove -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvs -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/pvscan -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgcfgbackup -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgcfgrestore -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgchange -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgck -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgconvert -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgcreate -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgdisplay -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgexport -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgextend -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgimport -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgmerge -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgmknodes -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgreduce -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgremove -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgrename -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgs -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgscan -> lvm
lrwxrwxrwx   1 root     root            3 Mar  7 12:06 sbin/vgsplit -> lvm
-r-xr-xr-x   1 root     root         7301 Mar  7 12:06 sbin/lvmdump
-r-xr-xr-x   1 root     root         6691 Mar  7 12:06 sbin/lvmconf
drwxr-xr-x   2 root     root            0 Mar  7 12:06 etc/lvm
-rw-r--r--   1 root     root        36403 Mar  7 12:05 etc/lvm/lvm.conf
-r--r--r--   1 root     root         1273 Mar  7 12:06 lib/udev/rules.d/11-dm-lvm.rules
-r--r--r--   1 root     root        24642 Mar  7 12:05 usr/share/man/man5/lvm.conf.5
-r--r--r--   1 root     root        15743 Mar  7 12:05 usr/share/man/man8/lvm.8
-r--r--r--   1 root     root          339 Mar  7 12:05 usr/share/man/man8/lvmchange.8
-r--r--r--   1 root     root         1018 Mar  7 12:05 usr/share/man/man8/lvmconf.8
-r--r--r--   1 root     root          772 Mar  7 12:05 usr/share/man/man8/lvmdiskscan.8
-r--r--r--   1 root     root         2075 Mar  7 12:05 usr/share/man/man8/lvmdump.8
-r--r--r--   1 root     root          253 Mar  7 12:05 usr/share/man/man8/lvmsadc.8
-r--r--r--   1 root     root          243 Mar  7 12:05 usr/share/man/man8/lvmsar.8

we did not make wrapper functions for it yet. So you can use the 'raw' lvm commands

comment:2 Changed 7 years ago by bas

  • Owner changed from somebody to bas
  • Status changed from new to accepted
  • Type changed from defect to task

comment:3 Changed 7 years ago by bas

  • Milestone SALI 2.0.0 deleted

comment:4 follow-up: Changed 7 years ago by anonymous

I was using 1.6.3, but your response answers the question. I was trying to use to the wrappers that ticket #9 mentions.

Therefore the proper course of action, as you mention, is to use the 'raw' lvm commands. That answers my query.

Thanks for getting back to me. I appreciate it much.

--dcl
Dave LeFevre, Purdue University College of Science

comment:5 in reply to: ↑ 4 Changed 7 years ago by bas

Replying to anonymous:

I was using 1.6.3, but your response answers the question. I was trying to use to the wrappers that ticket #9 mentions.

Therefore the proper course of action, as you mention, is to use the 'raw' lvm commands. That answers my query.

Do you have suggestions for LVM wrappers to make life easy?

comment:6 follow-up: Changed 7 years ago by anonymous

I actually like those suggested in the original ticket:

lvm_create_vg <name> <disk/partition> [<disk/partitions>]
lvm_create_lv <volumge_group_name> size:format:mountpoint:name[:strip:stripsize]

In other words, make the command "SALI-like" and similar to how SALI sets up other partitions as much as possible. I am not enough of an lvm guru to suggest any other wrappers (at least not yet!).

Thanks again for your help and the opportunity to give feedback! I appreciate it.

comment:7 in reply to: ↑ 6 Changed 7 years ago by dennis

Replying to anonymous:

I actually like those suggested in the original ticket:

lvm_create_vg <name> <disk/partition> [<disk/partitions>]
lvm_create_lv <volumge_group_name> size:format:mountpoint:name[:strip:stripsize]

In other words, make the command "SALI-like" and similar to how SALI sets up other partitions as much as possible. I am not enough of an lvm guru to suggest any other wrappers (at least not yet!).

Thanks again for your help and the opportunity to give feedback! I appreciate it.

Thanks for your feedback.

We are thinking of implementing more functions like this. Such as for mdadm raid sets. And as inspiration we have looked a lot at the Anaconda kickstart.

comment:8 Changed 5 years ago by dennis

  • Milestone set to SALI 1.7.0

These wrapper commands will be available in version 1.7.0 of SALI.

Add Comment

Modify Ticket

Change Properties
Action
as accepted The owner will remain bas.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from bas to the specified user. Next status will be 'assigned'.
The owner will be changed from bas to anonymous. Next status will be 'accepted'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.