rjcab a écrit 14 commentaires

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    J'abandonne, et c'est rare :)
    Je vais acheter un autre SSD

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Bonjour,

    Désolé pour le retard, il y avait les vacances:)
    ```

    Disk /dev/sdc: 119.25 GiB, 128035676160 bytes, 250069680 sectors
    Disk model: External

    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: CC7EFCA8-8FFA-4721-A2FD-8CCAF0332BC4

    Device Start End Sectors Size Type
    /dev/sdc1 34 2047 2014 1007K BIOS boot
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# swapoff -v /dev/pve/swap
    swapoff /dev/pve/swap
    swapoff: /dev/pve/swap: swapoff failed: Invalid argument
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# swapoff -v /dev/pve/swap
    swapoff /dev/pve/swap
    swapoff: /dev/pve/swap: swapoff failed: Invalid argument
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# umount -v /dev/pve/root
    umount: /dev/pve/root: not mounted.
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# lvchange -v -a n pve/root
    Deactivating logical volume pve/root.
    Removing pve-root (253:1)
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# lvremove -v pve/root
    Do you really want to remove and DISCARD logical volume pve/root? [y/n]: y
    Accepted input: [y]
    Archiving volume group "pve" metadata (seqno 10).
    Releasing logical volume "root"
    Creating volume group backup "/etc/lvm/backup/pve" (seqno 11).
    Logical volume "root" successfully removed
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# lvchange -v -a n pve/swap
    Deactivating logical volume pve/swap.
    Removing pve-swap (253:0)
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# lvremove -v pve/swap
    Do you really want to remove and DISCARD logical volume pve/swap? [y/n]: y
    Accepted input: [y]
    Archiving volume group "pve" metadata (seqno 10).
    Releasing logical volume "swap"
    Creating volume group backup "/etc/lvm/backup/pve" (seqno 11).
    Logical volume "swap" successfully removed
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# lvs
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    root pve -wi------- <113.74g

    swap pve -wi------- 5.00g

    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# vgchange -v -a n pve
    Deactivating logical volume pve/swap.
    Deactivating logical volume pve/root.
    Deactivated 2 logical volumes in volume group pve.
    0 logical volume(s) in volume group "pve" now active
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# vgremove -v pve
    Do you really want to remove volume group "pve" containing 2 logical volumes? [y/n]: y
    Accepted input: [y]
    Do you really want to remove and DISCARD logical volume pve/swap? [y/n]: y
    Accepted input: [y]
    Archiving volume group "pve" metadata (seqno 10).
    Releasing logical volume "swap"
    Creating volume group backup "/etc/lvm/backup/pve" (seqno 11).
    Logical volume "swap" successfully removed
    Do you really want to remove and DISCARD logical volume pve/root? [y/n]: y
    Accepted input: [y]
    Releasing logical volume "root"
    Creating volume group backup "/etc/lvm/backup/pve" (seqno 12).
    Logical volume "root" successfully removed
    Removing physical volume "/dev/sdc3" from volume group "pve"
    Volume group "pve" successfully removed
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# vgs
    VG #PV #LV #SN Attr VSize VFree
    pve 1 2 0 wz--n- <118.74g 0
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# pvremove -v /dev/sdc3
    PV /dev/sdc3 is used by VG pve so please use vgreduce first.
    (If you are certain you need pvremove, then confirm by using --force twice.)
    /dev/sdc3: physical volume label not removed.
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# pvs
    PV VG Fmt Attr PSize PFree
    /dev/sdc3 pve lvm2 a-- <118.74g 0
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1# C
    root@ubuntu-linux-20-04-desktop:/media/parallels/Disque 1#
    ```

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Personne a d'autres idée ? :(

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Hello,

    root@ubuntu-linux-20-04-desktop:/home/parallels# pvs
    PV VG Fmt Attr PSize PFree
    /dev/sdb3 pve lvm2 a-- <118.74g 0
    root@ubuntu-linux-20-04-desktop:/home/parallels# vgs
    VG #PV #LV #SN Attr VSize VFree
    pve 1 2 0 wz--n- <118.74g 0
    root@ubuntu-linux-20-04-desktop:/home/parallels# lvs
    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
    root pve -wi-a----- <113.74g
    swap pve -wi-a----- 5.00g
    Cela revient à chaque fois et via gparted impossible, cela s'applique avec succès et revient toujours après actualisation. :(

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    fausse joie, je retente une install et impossible, de nouveau mes 3 partitions :./

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Merci de ton retour:

    root@ubuntu-linux-20-04-desktop:/home/parallels# pvremove -vv -ff /dev/sdb3
     devices/hints not found in config: defaulting to all
     metadata/record_lvs_history not found in config: defaulting to 0
     global/locking_type not found in config: defaulting to 1
     devices/md_component_checks not found in config: defaulting to auto
     Locking /run/lock/lvm/P_global WB
     /dev/loop0: size is 118432 sectors
     /dev/sda: size is 134217728 sectors
     /dev/loop1: size is 100352 sectors
     /dev/sda1: size is 1048576 sectors
     /dev/loop2: size is 117720 sectors
     /dev/sda2: size is 133165056 sectors
     /dev/loop3: size is 100296 sectors
     /dev/loop4: size is 124240 sectors
     /dev/loop5: size is 83208 sectors
     /dev/loop6: size is 124984 sectors
     /dev/loop7: size is 0 sectors
     /dev/sdb: size is 250069680 sectors
     /dev/sdb1: size is 2014 sectors
     /dev/sdb2: size is 1048576 sectors
     /dev/sdb3: size is 249019023 sectors
     /dev/loop0: using cached size 118432 sectors
     /dev/loop0: using cached size 118432 sectors
     /dev/loop0: No lvm label detected
     /dev/sda: using cached size 134217728 sectors
     /dev/sda: Not processing filtered
     /dev/loop1: using cached size 100352 sectors
     /dev/loop1: using cached size 100352 sectors
     /dev/loop1: No lvm label detected
     /dev/sda1: using cached size 1048576 sectors
     /dev/sda1: using cached size 1048576 sectors
     /dev/sda1: No lvm label detected
     /dev/loop2: using cached size 117720 sectors
     /dev/loop2: using cached size 117720 sectors
     /dev/loop2: No lvm label detected
     /dev/sda2: using cached size 133165056 sectors
     /dev/sda2: using cached size 133165056 sectors
     /dev/sda2: No lvm label detected
     /dev/loop3: using cached size 100296 sectors
     /dev/loop3: using cached size 100296 sectors
     /dev/loop3: No lvm label detected
     /dev/loop4: using cached size 124240 sectors
     /dev/loop4: using cached size 124240 sectors
     /dev/loop4: No lvm label detected
     /dev/loop5: using cached size 83208 sectors
     /dev/loop5: using cached size 83208 sectors
     /dev/loop5: No lvm label detected
     /dev/loop6: using cached size 124984 sectors
     /dev/loop6: using cached size 124984 sectors
     /dev/loop6: No lvm label detected
     /dev/sdb: using cached size 250069680 sectors
     /dev/sdb: Not processing filtered
     /dev/sdb2: using cached size 1048576 sectors
     /dev/sdb2: using cached size 1048576 sectors
     /dev/sdb2: No lvm label detected
     /dev/sdb3: using cached size 249019023 sectors
     /dev/sdb3: using cached size 249019023 sectors
     /dev/sdb3: lvm2 label detected at sector 1
     report/output_format not found in config: defaulting to basic
     log/report_command_log not found in config: defaulting to 0
     Locking /run/lock/lvm/V_pve RB
     metadata/lvs_history_retention_time not found in config: defaulting to 0
     /dev/sdb3: using cached size 249019023 sectors
     Processing PV /dev/sdb3 in VG pve.
     Unlocking /run/lock/lvm/V_pve
     Reading orphan VG #orphans_lvm2
     Processing device /dev/loop0.
     Processing device /dev/loop1.
     Processing device /dev/sda1.
     Processing device /dev/loop2.
     Processing device /dev/sda2.
     Processing device /dev/loop3.
     Processing device /dev/loop4.
     Processing device /dev/loop5.
     Processing device /dev/loop6.
     Processing device /dev/sdb2.
     Unlocking /run/lock/lvm/P_global
     WARNING: PV /dev/sdb3 is used by VG pve.
    Really WIPE LABELS from physical volume "/dev/sdb3" of volume group "pve" [y/n]? y
     Accepted input: [y]
     WARNING: Wiping physical volume label from /dev/sdb3 of volume group "pve".
     Locking /run/lock/lvm/P_global W 
     /dev/loop0: size is 118432 sectors
     /dev/loop0: using cached size 118432 sectors
     /dev/sda: size is 134217728 sectors
     /dev/loop1: size is 100352 sectors
     /dev/loop1: using cached size 100352 sectors
     /dev/sda1: size is 1048576 sectors
     /dev/sda1: using cached size 1048576 sectors
     /dev/loop2: size is 117720 sectors
     /dev/loop2: using cached size 117720 sectors
     /dev/sda2: size is 133165056 sectors
     /dev/sda2: using cached size 133165056 sectors
     /dev/loop3: size is 100296 sectors
     /dev/loop3: using cached size 100296 sectors
     /dev/loop4: size is 124240 sectors
     /dev/loop4: using cached size 124240 sectors
     /dev/loop5: size is 83208 sectors
     /dev/loop5: using cached size 83208 sectors
     /dev/loop6: size is 124984 sectors
     /dev/loop6: using cached size 124984 sectors
     /dev/loop7: size is 0 sectors
     /dev/sdb: size is 250069680 sectors
     /dev/sdb1: size is 2014 sectors
     /dev/sdb2: size is 1048576 sectors
     /dev/sdb2: using cached size 1048576 sectors
     /dev/sdb3: size is 249019023 sectors
     /dev/sdb3: using cached size 249019023 sectors
     /dev/loop0: No lvm label detected
     /dev/loop1: No lvm label detected
     /dev/sda1: No lvm label detected
     /dev/loop2: No lvm label detected
     /dev/sda2: No lvm label detected
     /dev/loop3: No lvm label detected
     /dev/loop4: No lvm label detected
     /dev/loop5: No lvm label detected
     /dev/loop6: No lvm label detected
     /dev/sdb2: No lvm label detected
     /dev/sdb3: lvm2 label detected at sector 1
     Locking /run/lock/lvm/V_pve RB
     metadata/lvs_history_retention_time not found in config: defaulting to 0
     /dev/sdb3: using cached size 249019023 sectors
     Processing PV /dev/sdb3 in VG pve.
     Unlocking /run/lock/lvm/V_pve
     Reading orphan VG #orphans_lvm2
     Processing device /dev/loop0.
     Processing device /dev/loop1.
     Processing device /dev/sda1.
     Processing device /dev/loop2.
     Processing device /dev/sda2.
     Processing device /dev/loop3.
     Processing device /dev/loop4.
     Processing device /dev/loop5.
     Processing device /dev/loop6.
     Processing device /dev/sdb2.
     /dev/sdb3: lvm2 label detected at sector 1
     Scanning for labels to wipe from /dev/sdb3
     /dev/sdb3: Wiping label at sector 1
     Labels on physical volume "/dev/sdb3" successfully wiped.
     Unlocking /run/lock/lvm/P_global
    root@ubuntu-linux-20-04-desktop:/home/parallels# 
    root@ubuntu-linux-20-04-desktop:/home/parallels# fdisk /dev/sdb
    Welcome to fdisk (util-linux 2.34).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
     Command (m for help): p
    

    Disk /dev/sdb: 119.25 GiB, 128035676160 bytes, 250069680 sectors
    Disk model: External

    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: CC7EFCA8-8FFA-4721-A2FD-8CCAF0332BC4

    Merci, je crois que la première commande a fonctionné et du coup apres un coup de fdisk pour tout delete.

    Grand merci

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Merci. mais toujours pas :(
    ```
    mint@mint:~$ sudo -i
    root@mint:~# lvremove pve/swap
    Do you really want to remove and DISCARD active logical volume pve/swap? [y/n]: y
    Logical volume "swap" successfully removed
    root@mint:~# lvremove pve/root
    Do you really want to remove and DISCARD active logical volume pve/root? [y/n]: y

    Logical volume "root" successfully removed
    root@mint:~# vgremove pve
    Do you really want to remove volume group "pve" containing 2 logical volumes? [y/n]: y
    Do you really want to remove and DISCARD logical volume pve/swap? [y/n]: y
    Logical volume "swap" successfully removed
    Do you really want to remove and DISCARD logical volume pve/root? [y/n]: y
    Logical volume "root" successfully removed
    Volume group "pve" successfully removed
    root@mint:~# pvremove pve
    Device pve not found.
    root@mint:~# pvdisplay
    --- Physical volume ---
    PV Name /dev/sdb3
    VG Name pve
    PV Size 118.74 GiB / not usable <3.32 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 30397
    Free PE 0
    Allocated PE 30397
    PV UUID 1sRobh-BrFz-W91F-EWRW-mjwI-dQUU-PLaoKH

    root@mint:~# pvremove /dev/sdb3
    PV /dev/sdb3 is used by VG pve so please use vgreduce first.
    (If you are certain you need pvremove, then confirm by using --force twice.)
    /dev/sdb3: physical volume label not removed.
    root@mint:~# vgdisplay
    --- Volume group ---
    VG Name pve
    System ID

    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 10
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 0
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size <118.74 GiB
    PE Size 4.00 MiB
    Total PE 30397
    Alloc PE / Size 30397 / <118.74 GiB
    Free PE / Size 0 / 0

    VG UUID gCPX7V-uESJ-4kOi-L7GY-kDJD-ZTow-P79sMy

    root@mint:~# vgremove pve
    Do you really want to remove volume group "pve" containing 2 logical volumes? [y/n]: y
    Do you really want to remove and DISCARD logical volume pve/swap? [y/n]: y
    Logical volume "swap" successfully removed
    Do you really want to remove and DISCARD logical volume pve/root? [y/n]: y
    Logical volume "root" successfully removed
    Volume group "pve" successfully removed
    root@mint:~# vgdisplay
    --- Volume group ---
    VG Name pve
    System ID

    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 10
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 0
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size <118.74 GiB
    PE Size 4.00 MiB
    Total PE 30397
    Alloc PE / Size 30397 / <118.74 GiB
    Free PE / Size 0 / 0

    VG UUID gCPX7V-uESJ-4kOi-L7GY-kDJD-ZTow-P79sMy

    ```J'ai l'impression que cela ne prends jamais en compte les modifications.

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1. Dernière modification le 15 juillet 2022 à 11:07.

    Je ne suis pas à la maison. Je testerai la gestion du lvm dimanche.

    pour la resintall par ex d’un proxmox même os qu’auparavant j’avais fait un screen: ( il m’indique avant en graphique que impossible de partionner sda) le détail:

    [Screen](Texte du lien](https://e1.pcloud.link/publink/show?code=XZ5IuLZ7XqwRQmR0BQsUjIhoWnNwBWVJ36V)
    Titre de l'image

  • [^] # Re: rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1. Dernière modification le 14 juillet 2022 à 09:52.

    Merci pour l'aide.
    Je démarre depuis le live cd mint puis:

     mint@mint:~$ sudo passwd root
     New password: 
     Retype new password: 
     passwd: password updated successfully
     mint@mint:~$ sudo -i
     root@mint:~# ^C
     root@mint:~# pvscan
     PV /dev/sda3 VG pve lvm2 [<118.74 GiB / 0 free]
     Total: 1 [<118.74 GiB] / in use: 1 [<118.74 GiB] / in no VG: 0 [0 ]
     root@mint:~# pvdisplay 
     --- Physical volume ---
     PV Name /dev/sda3
     VG Name pve
     PV Size 118.74 GiB / not usable <3.32 MiB
     Allocatable yes (but full)
     PE Size 4.00 MiB
     Total PE 30397
     Free PE 0
     Allocated PE 30397
     PV UUID 1sRobh-BrFz-W91F-EWRW-mjwI-dQUU-PLaoKH
     root@mint:~# vgdisplay 
     --- Volume group ---
     VG Name pve
     System ID 
     Format lvm2
     Metadata Areas 1
     Metadata Sequence No 10
     VG Access read/write
     VG Status resizable
     MAX LV 0
     Cur LV 2
     Open LV 0
     Max PV 0
     Cur PV 1
     Act PV 1
     VG Size <118.74 GiB
     PE Size 4.00 MiB
     Total PE 30397
     Alloc PE / Size 30397 / <118.74 GiB
     Free PE / Size 0 / 0 
     VG UUID gCPX7V-uESJ-4kOi-L7GY-kDJD-ZTow-P79sMy
     root@mint:~# lvdisplay 
     --- Logical volume ---
     LV Path /dev/pve/swap
     LV Name swap
     VG Name pve
     LV UUID g64WcJ-F9R5-fGRT-Pzzq-IWyJ-b5I8-FQm7p4
     LV Write Access read/write
     LV Creation host, time proxmox, 2022年04月20日 18:37:07 +0000
     LV Status available
     # open 0
     LV Size 5.00 GiB
     Current LE 1280
     Segments 1
     Allocation inherit
     Read ahead sectors auto
     - currently set to 256
     Block device 253:0
     --- Logical volume ---
     LV Path /dev/pve/root
     LV Name root
     VG Name pve
     LV UUID uPtlNC-kCK9-NNkc-iuOi-RZE2-SlP1-8qGo93
     LV Write Access read/write
     LV Creation host, time proxmox, 2022年04月20日 18:37:13 +0000
     LV Status available
     # open 0
     LV Size <113.74 GiB
     Current LE 29117
     Segments 3
     Allocation inherit
     Read ahead sectors auto
     - currently set to 256
     Block device 253:1
     root@mint:~# ls -l /dev/md*
     ls: cannot access '/dev/md*': No such file or directory
     root@mint:~#
    

    Tout semble ok sauf la dernière commande mais je ne sais pas à quoi cela sert :/

  • # rep

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1. Dernière modification le 13 juillet 2022 à 17:42.

    Merci. J'avais déja tenté:

    root@mint:~# wipefs -a -f /dev/sda
    /dev/sda1 8 bytes were ereased at offset 0x00000200 (gpt):45 46 49 20 50 41 52 54
    /dev/sda2 8 bytes were ereased at offset 0x1dcf855e00 (gpt): 45 46 49 20 50 41 52 54
    /dev/sda3 2 bytes were ereased at offset 0x000001fe (PMBR): 55 aa
    

    après un fdisk toujours pareil

    Device Start End Sectors Size Type
    /dev/sda1 34 2047 2014 1007K BIOS boot
    /dev/sda2 2048 1050623 1048576 512M EFI System
    /dev/sda3 1050624 250069646 249019023 118.8G Linux LVM

  • [^] # Re: montés ?

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    merci. J'ai fait un sudo -i
    puis

    root@mint:~# grep ^/dev/sda /etc/mtab
    root@mint:~# grep /dev/sda /etc/mtab
    root@mint:~#
    :(

  • [^] # Re: rép

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    root@mint:/home/mint# dd if=/dev/zero of=/dev/sda bs=65536
    dd: error writing '/dev/sda': No space left on device
    1953670+0 records in
    1953669+0 records out
    128035676160 bytes (128 GB, 119 GiB) copied, 242.605 s, 528 MB/s
    root@mint:/home/mint# 
    
  • [^] # Re: LVM

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Merci, et ci dessous

    root@mint:/home/mint# vgs
    VG #PV #LV #SN Attr VSize VFree
    pve 1 2 0 wz--n- <118.74g 0
    root@mint:/home/mint# vgchange -an pve
    0 logical volume(s) in volume group "pve" now active
    Si je repars après sur fdisk pour delete des paritions, tjs le meme pb :(

  • # rép

    Posté par . En réponse au message impossible de supprimer partition. Évalué à 1.

    Hello,

    Merci de ta réponse.

    J'ai fait wq en sortie mais tjs rien de changé sur le disque
    Pour la relecture j'ai fait:

    root@mint:/home/mint# partprobe
    Warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.
    root@mint:/home/mint# fdisk /dev/sda
    Welcome to fdisk (util-linux 2.34).
    Changes will remain in memory only, until you decide to write them.
    Be careful before using the write command.
    Command (m for help): p
    Disk /dev/sda: 119.25 GiB, 128035676160 bytes, 250069680 sectors
    Disk model: SSD 128GB 
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: CC7EFCA8-8FFA-4721-A2FD-8CCAF0332BC4
    Device Start End Sectors Size Type
    /dev/sda1 34 2047 2014 1007K BIOS boot
    /dev/sda2 2048 1050623 1048576 512M EFI System
    /dev/sda3 1050624 250069646 249019023 118.8G Linux LVM
    Command (m for help): 
    

    J'ai rebooté la machine et booté sur le livecd mais tjs les memes partitions :(