What is the way to specify a RAID by uuid in Fedora-21?
Anders Blomdell
anders.blomdell at control.lth.se
Mon Jan 12 11:01:28 UTC 2015
In previous versions, I could specify it with:
raid /boot --device=UUID=34206d90:7e6a035e:8660b1b3:62cca315 --fstype=ext4 --label=/boot --useexisting
that does not work in F-21, neither does:
raid /boot --device=/dev/disk/by-id/md-uuid-34206d90:7e6a035e:8660b1b3:62cca315 --fstype=ext4 --label=/boot --useexisting
which fails with:
RAID volume "/dev/disk/by-id/md-uuid-34206d90:7e6a035e:8660b1b3:62cca315" specified with --useexisting does not exist.
even though storage.log contains:
10:43:01,654 DEBUG blivet: DeviceTree.addUdevDevice: info: {'DEVLINKS': '/dev/disk/by-id/md-uuid-34206d90:7e6a035e:8660b1b3:62cca315 /dev/disk/by-label/\\x2fboot /dev/disk/by-uuid/2b1ad073-26ff-44ae-8adf-1a13990d0dbc /dev/md/0',
'DEVNAME': 'md0',
'DEVPATH': '/devices/virtual/block/md0',
'DEVTYPE': 'disk',
'DM_MULTIPATH_TIMESTAMP': '1421059320',
'ID_FS_LABEL': '/boot',
'ID_FS_LABEL_ENC': '\\x2fboot',
'ID_FS_TYPE': 'ext4',
'ID_FS_USAGE': 'filesystem',
'ID_FS_UUID': '2b1ad073-26ff-44ae-8adf-1a13990d0dbc',
'ID_FS_UUID_ENC': '2b1ad073-26ff-44ae-8adf-1a13990d0dbc',
'ID_FS_VERSION': '1.0',
'MAJOR': '9',
'MD_DEVICES': '2',
'MD_DEVICE_vda1_DEV': '/dev/vda1',
'MD_DEVICE_vda1_ROLE': '0',
'MD_DEVICE_vdb1_DEV': '/dev/vdb1',
'MD_DEVICE_vdb1_ROLE': '1',
'MD_DEVNAME': '0',
'MD_LEVEL': 'raid1',
'MD_METADATA': '0.90',
'MD_UUID': '34206d90:7e6a035e:8660b1b3:62cca315',
'MINOR': '0',
'MPATH_SBIN_PATH': '/sbin',
'SUBSYSTEM': 'block',
'SYSTEMD_WANTS': 'mdmonitor.service',
'TAGS': ':systemd:',
'USEC_INITIALIZED': '16422',
'name': 'md0',
'symlinks': ['/dev/disk/by-id/md-uuid-34206d90:7e6a035e:8660b1b3:62cca315',
'/dev/disk/by-label/\\x2fboot',
'/dev/disk/by-uuid/2b1ad073-26ff-44ae-8adf-1a13990d0dbc',
'/dev/md/0'],
'sysfs_path': '/devices/virtual/block/md0'} ; name: md0 ;
10:43:01,655 INFO blivet: scanning md0 (/devices/virtual/block/md0)...
10:43:01,656 DEBUG blivet: DeviceTree.getDeviceByName: hidden: False ; name: md0 ; incomplete: False ;
10:43:01,657 DEBUG blivet: DeviceTree.getDeviceByName returned None
10:43:01,658 DEBUG blivet: DeviceTree.getDeviceByName: hidden: False ; name: 0 ; incomplete: False ;
10:43:01,660 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,659 DEBUG blivet: DeviceTree.getDeviceByName returned existing 1023.94 MiB mdarray 0 (10)
10:43:01,675 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,690 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,714 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,705 INFO blivet: got device: MDRaidArrayDevice instance (0x7f125366fe10) --
name = 0 status = True kids = 0 id = 10
parents = ['existing 1024 MiB partition vda1 (6) with existing mdmember',
'existing 1024 MiB partition vdb1 (27) with existing mdmember']
uuid = 34206d90-7e6a-035e-8660-b1b362cca315 size = 1023.94 MiB
format = existing None
major = 0 minor = 0 exists = True protected = False
sysfs path = /devices/virtual/block/md0 partedDevice = parted.Device instance --
model: Linux Software RAID Array path: /dev/md/0 type: 17
sectorSize: 512 physicalSectorSize: 512
length: 2097024 openCount: 0 readOnly: False
externalMode: False dirty: False bootDirty: False
host: 13107 did: 13107 busy: False
hardwareGeometry: (262128, 2, 4) biosGeometry: (130, 255, 63)
PedDevice: <_ped.Device object at 0x7f1258a907a0>
target size = 0 B path = /dev/md/0
format args = [] originalFormat = None level = raid1 spares = 0
members = 2
total devices = 2 metadata version = 0.90
10:43:01,738 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,762 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
10:43:01,786 DEBUG blivet: existing RAID raid1 size == 1023.94 MiB
Anybody that could give some useful pointers?
Regards
Anders Blomdell
--
Anders Blomdell Email: anders.blomdell at control.lth.se
Department of Automatic Control
Lund University Phone: +46 46 222 4625
P.O. Box 118 Fax: +46 46 138118
SE-221 00 Lund, Sweden
More information about the Kickstart-list
mailing list