https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • r

    ramnad

    07/07/2023, 7:13 PM
    Hello, I am trying to understand how lvm module works in Puppet? I have a requirement to expand one of the partitions and don't see the partition table for device /dev/sdc. Usually, when I manually create something using fdisk/parted, it will create it as /dev/sdc1 and then I create pv/vg and lv etc... Why in the lvm module example, it was mentioned /dev/sdc? Also if I wanted to expand the file system looking for your recommendation on how I can proceed?
    Copy code
    [root@testsrv~]# fdisk -l /dev/sdc
    
    Disk /dev/sdc: 322.1 GB, 322122547200 bytes, 629145600 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    
    [root@testsrv~]#
    
    [root@testsrv ~]# pvs
      PV         VG        Fmt  Attr PSize   PFree
      /dev/sdc   spacewalk lvm2 a--  250.00g    0
  • v

    vchepkov

    07/07/2023, 7:41 PM
    It's quote normal to not have partition on non-boot disk
  • v

    vchepkov

    07/07/2023, 7:42 PM
    that's why you use the whole device as your pv
  • v

    vchepkov

    07/07/2023, 7:43 PM
    Copy code
    lvm::volume_group { 'spacewalk':
        physical_volumes => '/dev/sdc',
      }
  • r

    ramnad

    07/07/2023, 7:43 PM
    Okay... what if we need to expand? Any alternate?
  • v

    vchepkov

    07/07/2023, 7:44 PM
    expand what? the disk?
  • r

    ramnad

    07/07/2023, 7:44 PM
    yes. I have expanded the disk to 300GB, but in LVM its showing only 250GB
  • r

    ramnad

    07/07/2023, 7:44 PM
    how should I expand it?
  • v

    vchepkov

    07/07/2023, 7:45 PM
    you need to re-scan your scsi bus, probably and then pvresize
  • v

    vchepkov

    07/07/2023, 7:46 PM
    nothing to do with puppet though, imho. it's too low level
  • r

    ramnad

    07/07/2023, 7:46 PM
    thanks. that's it, pvresize worked. Thanks @vchepkov.
    šŸ‘ 1
  • v

    vchepkov

    07/07/2023, 7:48 PM
    lvm::logical_volume
    can increase FS if space is available
    šŸ™Œ 1
  • b

    binford2k

    07/07/2023, 11:06 PM
    https://fosstodon.org/@puppet/110675302616305141
  • s

    Slackbot

    07/08/2023, 7:43 PM
    This message was deleted.
    y
    b
    a
    • 4
    • 6
  • s

    Slackbot

    07/09/2023, 4:00 PM
    This message was deleted.
    y
    v
    a
    • 4
    • 7
  • s

    Slackbot

    07/10/2023, 5:58 AM
    This message was deleted.
    b
    j
    v
    • 4
    • 66
  • m

    Markus Zilch

    07/10/2023, 1:47 PM
    Hey guys, does someone know how to set a fact as default value for a custom type (type/provider pattern). I know how to do it for a defined type but i am stumped about how to do it for the provider pattern.
  • s

    Slackbot

    07/10/2023, 2:06 PM
    This message was deleted.
    c
    c
    +4
    • 7
    • 49
  • s

    Slackbot

    07/10/2023, 5:18 PM
    This message was deleted.
    b
    r
    y
    • 4
    • 19
  • s

    Slackbot

    07/10/2023, 7:37 PM
    This message was deleted.
    šŸ‘ 1
    b
    y
    +2
    • 5
    • 5
  • b

    binford2k

    07/11/2023, 12:03 AM
    @glee++
    thankyou 1
  • d

    Dr Bunsen Honeydew

    07/11/2023, 12:03 AM
    grace.lee is on the rise! (Karma: 1)
  • s

    Slackbot

    07/11/2023, 9:34 AM
    This message was deleted.
    āš ļø 1
    b
    e
    h
    • 4
    • 4
  • s

    Slackbot

    07/11/2023, 11:43 AM
    This message was deleted.
    d
    • 2
    • 1
  • d

    Dr Bunsen Honeydew

    07/11/2023, 1:45 PM
    businessparrot Content and Tooling is about to start up in #CFD8Z9A4T
  • d

    Dr Bunsen Honeydew

    07/11/2023, 2:45 PM
    the more you know _🦊Vox Pupuli monthly sync; see calendar event for info_ is about to start up in #CFD8Z9A4T
  • j

    Jason Grammenos

    07/11/2023, 3:03 PM
    does anyone know if this works:
    Copy code
    if (a){
     $my_var = undef
    }else{
     $my_var = 'myuser'
    }
    
            File { '/usr/local/myfolder' :
              ensure => 'directory',
              owner  => $my_var,
              group  => $my_var,
            }
  • s

    Slackbot

    07/11/2023, 3:04 PM
    This message was deleted.
    s
    j
    • 3
    • 5
  • s

    Slackbot

    07/11/2023, 3:04 PM
    This message was deleted.
    c
    m
    • 3
    • 5
  • d

    Dr Bunsen Honeydew

    07/11/2023, 3:45 PM
    allthethings šŸ§‘ā€šŸ« Bolt is about to start up in #CFD8Z9A4T
1...390391392...428Latest