@olivierlambert Sorry. I'm new to this. Can you point me to a description of how it should look? Thanks. I appreciate your patience.
Posts
-
RE: XCP-ng 8.1.0 beta now available!
-
RE: XCP-ng 8.1.0 beta now available!
@stormi
Your help is much appreciated!
I was able to yum install sm-additional-drivers. Excellent. I rebooted and the fstab was still saying ext3. This is shown below. To test further, I deleted my SR (a 6TB disk) which was EXT3; used parted and other commands to create a new partition which was EXT4 (shown below) and then used the following:
xe sr-create content-type=user name-label="Store1" shared=false device-config:device=/dev/sdc1 type=extIt created EXT3 LVM2_member type storage repository.
So, that's my question. How to create an EXT4 SR?
Thanks.
I hope my testing shown below is helpful.
You asked where I found the outdated docs. I found the outdated instructions I used the first time around at the top of the page in https://xcp-ng.org/forum/topic/839/new-ext4-driver-please-test-it
+++++++++++++++++++++++++++++++++++++++++++++++
(updated on 2019-02-07 to add installation of updated sm and sm-rawhba packages)We introduced in testing, a new extra driver, using ext4. Please test it and give your feedback. To install it:
yum install sm-additional-drivers sm sm-rawhba --enablerepo='xcp-ng-updates_testing' xe-toolstack-restart
My testing follows:
Removing the SR Storage Repository since it was installed as EXT3.[19:05 xcpng ~]# xe sr-list name-label=Store1
uuid ( RO) : d3f2dfbc-9682-cd51-79c2-be4e1d6c0923
name-label ( RW): Store1
name-description ( RW):
host ( RO): xcpng
type ( RO): ext
content-type ( RO): user[19:05 xcpng ~]# xe pbd-list sr-uuid=d3f2dfbc-9682-cd51-79c2-be4e1d6c0923
uuid ( RO) : 0bd2ecc8-78d4-4479-57db-45634b317bd3
host-uuid ( RO): 67782a24-14f6-4a91-bc53-23d1bb3bfb62
sr-uuid ( RO): d3f2dfbc-9682-cd51-79c2-be4e1d6c0923
device-config (MRO): device: /dev/sdc1
currently-attached ( RO): true[19:09 xcpng ~]# xe pbd-unplug uuid=0bd2ecc8-78d4-4479-57db-45634b317bd3
[19:12 xcpng ~]# xe sr-forget uuid=d3f2dfbc-9682-cd51-79c2-be4e1d6c0923
Rebooted server
[19:26 xcpng ~]# cat /etc/fstab
LABEL=root-glwhel / ext3 defaults 1 1
LABEL=BOOT-GLWHEL /boot/efi vfat defaults 0 2
LABEL=swap-glwhel swap swap defaults 0 0
LABEL=logs-glwhel /var/log ext3 defaults 0 2[19:31 xcpng ~]# parted /dev/sdc mklabel gpt
Warning: The existing disk label on /dev/sdc will be destroyed and all data on
this disk will be lost. Do you want to continue?
Yes/No? yes
Information: You may need to update /etc/fstab.[19:34 xcpng ~]# parted -a opt /dev/sdc mkpart primary ext4 0% 100%
Information: You may need to update /etc/fstab.[19:35 xcpng ~]# mkfs.ext4 -L STORE1 /dev/sdc1
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=STORE1
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
183144448 inodes, 1465130240 blocks
73256512 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3613392896
44713 block groups
32768 blocks per group, 32768 fragments per group
4096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done[19:36 xcpng ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
nvme0n1
??nvme0n1p1 LVM2_mem hmjtFc-J03x-cGWz-60no-nQMY-WAcs-yfYuCK
??XSLocalEXT--b64be29d--7b4e--4c35--23ad--c2835d6d68c9-b64be29d--7b4e--4c35--23ad--c2835d6d68c9
ext3 4932e44b-06ab-45d6-944c-f95c57aa40c0 /run/sr-mo
sdd
??sdd1 ext4 STORE2 d6b13b13-4066-4470-add7-ffe978b24a50sdc
??sdc1 ext4 STORE1 80901059-41fa-4089-aa8f-65e6929afea6
sda LVM2_mem DzdKkZ-zud3-MXhE-GFCS-hzB4-a6K5-NU2qoQ
??XSLocalEXT--dd84c28d--6d39--ac03--28d3--99c18c24aa68-dd84c28d--6d39--ac03--28d3--99c18c24aa68
ext3 ebd0226e-01da-4ec6-8dd4-1bdb007bcb92 /run/sr-mo
[19:37 xcpng ~]#
[19:40 xcpng ~]# lsblk -d -fs /dev/sdc1
NAME FSTYPE LABEL UUID MOUNTPOINT
sdc1 ext4 STORE1 80901059-41fa-4089-aa8f-65e6929afea6[19:45 xcpng ~]# xe sr-create content-type=user name-label="Store1" shared=false device-config:device=/dev/sdc1 type=ext
2cd1c746-c5aa-1376-66bb-5fb9d89ad689[19:48 xcpng ~]# lsblk -d -fs /dev/sdc1
NAME FSTYPE LABEL UUID MOUNTPOINT
sdc1 LVM2_member Oe9xwf-UqrZ-FeNI-CZwI-7Sn0-ua21-nvDPGy -
RE: XCP-ng 8.1.0 beta now available!
New to XCP-ng.
Upgraded from 8.0 to 8.1 Beta. No problems. Having problems with Local Storage and EXT4 though. I saw that sm-additional-drivers package is still required. Tried to get it via:
yum install sm-additional-drivers sm sm-rawhba --enablerepo='xcp-ng-updates_testing'
Loaded plugins: fastestmirror
Error getting repository data for xcp-ng-updates_testing, repository not found
Questions:- How to properly download/use sm-additional-drivers package?
- Should /etc/fstab be modified and EXT3 be replaced with EXT4?
- The command:
xe sr-create content-type=user name-label="Store1" shared=false device-config:device=/dev/sdc1 type=ext
works but creates an EXT3 filesystem even though the 6TB drive has an EXT4 partition. How to change the command to create EXT4?
Thanks!!!